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.

Convert all tests to pytest

See original GitHub issue

Currently 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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
n2ygkcommented, Sep 4, 2018

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…

0reactions
auvipycommented, Oct 21, 2021

ok.

Read more comments on GitHub >

github_iconTop 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 >

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