-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78999ec
commit aaad8b8
Showing
3 changed files
with
32,509 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pytest | ||
|
||
ALL_TEST_NAMES = set() | ||
|
||
|
||
def pytest_collection_modifyitems(config, items): | ||
for item in items: | ||
if not hasattr(item, "module"): | ||
# for doctests just use name (since it contains the module) | ||
name = item.name | ||
else: | ||
# otherwise add module | ||
name = ".".join((item.module.__name__, item.name)) | ||
ALL_TEST_NAMES.add(name) | ||
|
||
|
||
@pytest.fixture | ||
def all_test_names(): | ||
return ALL_TEST_NAMES |
Oops, something went wrong.