summaryrefslogtreecommitdiffstats
path: root/library/python/pytest/ut/conftest_local/initial_conftests/foo/bar/conftest.py
blob: 6d73e246689f3a378d2b7fed6adf478efb25d9e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
This conftest should NOT be counted an initial conftest, see
https://docs.pytest.org/en/stable/how-to/writing_plugins.html#pluginorder

This is because this conftest is located in a subdirectory of the test module.
"""

import pytest

sessionstart_called = False


def pytest_sessionstart(session):
    global sessionstart_called
    sessionstart_called = True


@pytest.fixture
def is_sessionstart_called_bar():
    return sessionstart_called