-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: [RLOS2023][WIP] add option for storing output and grid language…
… redefinition (#4627) * test: redesign grid lang * test: add option for store output * test: change list to dict for config vars
- Loading branch information
Showing
6 changed files
with
239 additions
and
346 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,18 @@ | ||
import pytest | ||
|
||
# conftest.py | ||
def pytest_addoption(parser): | ||
parser.addoption( | ||
"--store_output", | ||
action="store", | ||
default=False, | ||
help="Store output file for tests.", | ||
) | ||
|
||
|
||
def pytest_configure(config): | ||
_store_output = config.getoption("--store_output") | ||
# Store the custom_arg_value in a global variable or a custom configuration object. | ||
# For example, you can store it in a global variable like this: | ||
global STORE_OUTPUT | ||
STORE_OUTPUT = _store_output |
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
Oops, something went wrong.