Convert all tests to pytest
See original GitHub issueCurrently some tests are written in unit test and some in pytest.
As pytest is more flexible all tests should be converted to use pytest to be consistent.
It also needs to be considered whether pytest_runner
in setup.py is really a good thing or whether just simply running pytest
would not be more “pytesty”.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Convert all tests to pytest · Issue #99 - GitHub
Convert from unittest classes to classes using pytest first. · One test file per PR. · Run tox -re autoformat before committing to...
Read more >How to go about converting a test-suite from unittest to pytest?
There seems to be a conversion tool, though I haven't tested it. Generally, I would do this incrementally - if you want to...
Read more >Effective Python Testing With Pytest
In this tutorial, you'll learn how to take your testing to the next level with pytest. You'll cover intermediate and advanced pytest ......
Read more >How to use unittest-based tests with pytest
pytest supports running Python unittest -based tests out of the box. It's meant for leveraging existing unittest -based test suites to use pytest...
Read more >Converting unittest suites to pytest - Packt Subscription
In the previous chapter, we have seen how the flexible pytest architecture has created a ... to large in-house-grown test suites that contain...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I guess my point is that as a “Django developer” I would prefer to use the Django core mechanism for testing unless there’s a strong reason to do otherwise. I have found the tests in DJA to be quite confusing given the mixture of styles. But I don’t have a lot of experience with python testing frameworks…
ok.