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.

name-tests-test isn't Django-friendly

See original GitHub issue

https://docs.djangoproject.com/en/1.7/topics/testing/advanced/#using-different-testing-frameworks

Django’s built-in test runner defaults to searching for test*.py. It would be nice if name-tests-test either allowed both the test*.py and *_test.py patterns or if there was a separate hook for the Django-style test naming pattern.

I’d be happy to submit a PR for the preferred solution/implementation.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
asottilecommented, Sep 17, 2019

that output makes sense if you’re using the --django flag

1reaction
oladharicommented, Sep 13, 2019

anyway I resolved the problem that I have through pytest.ini thank you for your fast reply @asottile

Read more comments on GitHub >

github_iconTop Results From Across the Web

Some modelling advice - Using Django
A test is exclusively in a single category, and whilst it isn't the case today, there is no reason why a Category cannot...
Read more >
Supported hooks - pre-commit
name-tests -test - verifies that test files are named correctly. no-commit-to-branch - don't commit to branch; requirements-txt-fixer - sorts entries in ...
Read more >
Why Most Unit Testing is Waste [pdf] - Hacker News
Throwing away unit tests is like saying "This ship has been sailing for years and has never sunk - let's throw away the...
Read more >
Save the logs generated during a pytest run as a job artifact ...
We will retrieve the module, class and function name from the request object. log_path = Path("tests") / "logs" : loguru accepts File-like ...
Read more >
Mocking Context Managers in Python - Jeremy Satterfield
testing. I've often found Python's context managers to be pretty useful. They make a nice interface that can handle starting and ending of ......
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