Skip to content

How to access command line arguments from nonpython tests #8936

Discussion options

You must be logged in to vote

I finally found how to access the config, with this block of text here https://docs.pytest.org/en/6.2.x/deprecations.html#pytest-config-global.
I'm guessing fixtures aren't supported with plugins. You're able to access the config through the pytest.Item that YamlItem is based on. It's just a self.config.getoption inside the runtest method.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@The-Compiler
Comment options

Answer selected by Cameronsplaze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants