Skip to content

Commit

Permalink
Split wrappers and non-wrappers in test_load_initial_conftest_last_or…
Browse files Browse the repository at this point in the history
…dering

Seems better to test which one is which explicitly.
  • Loading branch information
nicoddemus committed Jan 4, 2022
1 parent 4038752 commit 696f955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/test_config.py
Expand Up @@ -1264,16 +1264,16 @@ def pytest_load_initial_conftests(self):
m = My()
pm.register(m)
hc = pm.hook.pytest_load_initial_conftests
values = hc._nonwrappers + hc._wrappers
expected = [
assert [x.function.__module__ for x in hc._nonwrappers] == [
"_pytest.config",
m.__module__,
"_pytest.legacypath",
"_pytest.pythonpath",
]
assert [x.function.__module__ for x in hc._wrappers] == [
"_pytest.capture",
"_pytest.warnings",
]
assert [x.function.__module__ for x in values] == expected


def test_get_plugin_specs_as_list() -> None:
Expand Down

0 comments on commit 696f955

Please sign in to comment.