-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip the full file check if the rntuple file has not been produced (#369
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 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
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 |
---|---|---|
@@ -1,8 +1,18 @@ | ||
#!/usr/bin/env python3 | ||
"""pytest config module to make passing of input file name possible""" | ||
|
||
"""The pytest options after configuration""" | ||
options = None | ||
|
||
|
||
def pytest_addoption(parser): | ||
"""Hook to add an inputfile argument to pytest for checking EDM4hep file | ||
contents""" | ||
parser.addoption("--inputfile", action="store") | ||
|
||
|
||
def pytest_configure(config): | ||
"""This is a slighty hacky solution to make the pytest configuration | ||
available in test modules outside of fixtures""" | ||
global options | ||
options = config.option |
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