Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

warning when running tests if have "import dash" run beforehand

See original GitHub issue

If I run import dash before running any tests, the following warning will appear: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: dash

I assume this is enough to reproduce this issue. Feel free to contact if you need more information 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

astrojuanlucommented, Jul 11, 2022

Sorry I spoke too soon: ipytest.autoconfig(addopts=['-q', '--assert=plain', '--color=yes']) works 🎉

astrojuanlucommented, Jul 11, 2022

Too bad that with this configuration the fancy coloring is gone, would be cool to find an alternative solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

importing dash causes running of any in same folder as ...
I bumped up to a little bit unexpected behaviour: If you import dash, any file called in the same folder will be...
Read more >
Logging in Dash - LogTransform - Plotly Community Forum
While creating apps, I am often faced with the desire to route some kind of logs and/or notifications to the UI.
Read more >
Dash User Guide and Documentation
Running tests with an accelerometer? Dash DAQ gives you the components you need to write rich, flexible GUIs for interfacing with your instruments...
Read more >
Plotly Dash application not running - Stack Overflow
You can't run dash in debug mode on a jupyter notebook, ... work on jupyter. import JupyterDash and use JupyterDash instead of dash.Dash...
Read more >
Mocha - the fun, simple, flexible JavaScript test framework
Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun. Mocha tests run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found