Page MenuHome

Bring back the usual way of running tests
ClosedPublic

Authored by Anna Sirota (railla) on Feb 11 2021, 4:10 PM.

Details

Summary

Goal

There should be a way to run a single test or tests that match a pattern, or whatever is supported by python modules that do test discovery in the project.
E.g. this should work as expected:

$ ./manage.py test -k test_pay_for_failed_order
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
.
----------------------------------------------------------------------
Ran 1 test in 2.289s

OK
Destroying test database for alias 'default'...

What it does

  • Moves example project settings used in tests into the obvious looper_example_project;
  • Moves test modules into the application they are testing, namely looper (this also happens to match DevFund's looper structure);
  • Updates mypy to make it fail on slightly fewer false-positives.

Branch move-tests

Diff Detail

Repository
rL Looper