@scythargon wrote:
Hello!
I’m adding tests for my Dash application as described here https://dash.plot.ly/testing
I need to pass additional argument to chromedriver to make it work inside Docker ---no-sandbox
.
The docs say thatthere is a back door for browser option customization by a
pytest_setup_options
hook defined inplugin.py
I’ve found where it is defined in the dash.testing source code, but can’t figure out how to override it (some dark magic with pytest’s hooks which I’m not familiar with and fail to understand through pytest docs).
Thank you.UPD:
https://docs.pytest.org/en/latest/writing_plugins.html#writing-hook-functions says:Now your hook is ready to be used. To register a function at the hook, other plugins or users must now simply define the function
pytest_my_hook
with the correct signature in theirconftest.py
.I tried it:
But I only see ‘1111’ in the output later. And my
pytest_setup_options
does not get called.
Posts: 1
Participants: 1