question-mark
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.

[Unified Fides] Slow Speeds Running Pytest in Shell

See original GitHub issue

Is your feature request related to a specific problem?

Running pytest within the fides shell feels too slow to be usable

  • Running nox -s dev -- postgres shell
  • Wait awhile for this to come up, 3-5 minutes
  • Target a specific test within the shell, for example: pytest tests/ops/api/v1/endpoints/test_user_permission_endpoints.py::TestCreateUserPermissions::test_create_user_permissions_not_authenticated
  • Wait 3+ minutes for the test session to start and test to be collected before I get results.

Describe the solution you’d like

A description of what you want to happen.

Describe alternatives you’ve considered, if any

A description of any alternative solutions or features you’ve considered.

Additional context

I’m on an M1 mac but previously didn’t experience these sorts of delays when running pytest in the shell.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ThomasLaPianacommented, Sep 30, 2022

@pattisdr good to hear that helped! We’ve got an issue open I’m going to tackle today if possible, monday at the latest that will remove that line as a default since I know it really hurts M1 performance!

Thanks for helping me confirm!

0reactions
ThomasLaPianacommented, Sep 30, 2022

related to #1051

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to speed up pytest - python - Stack Overflow
In the special case where you are running under cygwin's python, its unix-style file handling is slow. See pytest.py test very slow startup ......
Read more >
Usage and Invocations — pytest documentation
pytest -m slow. Will run all tests which are decorated with the @pytest.mark.slow decorator. For more information see marks. Run tests from packages....
Read more >
Pytest | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA supports pytest, a fully functional testing framework. The following features are available: The dedicated test runner.
Read more >
10 Posts Tagged 'pytest' - Adam Johnson
Shell Tricks for Repeatedly Running Flaky Tests ... Investigating flaky tests is a dull necessity of testing. At least it is (in the...
Read more >
Effective Python Testing With Pytest
As with most frameworks, some development patterns that make sense when you first start using pytest can start causing pains as your test...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found