Closed vfilimonov closed 1 year ago
Good point @vfilimonov - thanks for bringing it up, I think you're right that we only want the pytest plugin installed with dash[testing]
.
Unfortunately the solution isn't so clear to me. pytest-dash
isn't used anymore, dash.testing
is part of the main dash
package now. So the pytest plugin is registered in the setup.py
for dash
itself, and it's not obvious to me how to supply entry points based on requested extras. This question was asked https://stackoverflow.com/questions/36005886/conditional-setuptools-entry-points, with no simple solutions given. Maybe @byronz will have some ideas when he's back from vacation?
Hi, any news on that or at least way to disable the warning?
@nylocx @vfilimonov I will take a look at the issue, and find out a way for that. sorry for the delay, this was not on my radar before.
Could we move all imports in dash/testing/plugin.py
inside the fixtures themselves? This might delay the bulk of the imports until the fixtures are actually invoked.
Any updates on this issue? We have a monorepo where dash is a dependency and we need to add some seleniumbase tests, but they have a conflict argument (--headless
) that prevent us to do that. We are not using the plugin in dash[testing]
.
Any updates on this issue? We have a monorepo where dash is a dependency and we need to add some seleniumbase tests, but they have a conflict argument (
--headless
) that prevent us to do that. We are not using the plugin indash[testing]
.
I have the same issue and just work around it like this:
sed -i 's/--headless/--headless_/g' /venv/lib/python3.9/site-packages/dash/testing/plugin.py
(called during container build time).
Alternatively, you can add -pno:dash
as an argument when running pytest to disable the plugin altogether.
Hello
I suggest that the pytest plugin should not be registered by default on dash installation.
A clean install of pytest without any plugins automatically activates
dash-1.3.1
plugin (which increases the time of test suite by unnecessary import of the module and also annoys with the warning).On a clean virtual environment:
an empty run of pytest results in
Though the
pytest-dash
plugin was never installed: