Skip to content

Pytest test, headless mode differences? #2569

Answered by mdmintz
iceman8420 asked this question in Q&A
Discussion options

You must be logged in to vote

The BaseCase.main(__name__, __file__) line is only read when running the script with pure python.
(It's there in case people forget to use pytest instead.)

If you're running the script directly with pytest, add the options you need as command-line options. Eg:

pytest --uc --headless2

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iceman8420
Comment options

Answer selected by mdmintz
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