Pytest test, headless mode differences? #2569
-
|
Hi all, Running into a weird issue. My tests work just fine here:
But not launching like this (or --headless): Any behavioral differences or suggestions on what to look into? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The If you're running the script directly with pytest --uc --headless2 |
Beta Was this translation helpful? Give feedback.
The
BaseCase.main(__name__, __file__)line is only read when running the script with purepython.(It's there in case people forget to use
pytestinstead.)If you're running the script directly with
pytest, add the options you need as command-line options. Eg: