File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ lint: ## check style with flake8
20
20
flake8 django_readonly_field tests
21
21
22
22
test : # # run tests quickly with the default Python
23
- python runtests.py tests
23
+ python runtests.py
24
24
25
25
test-all : # # run tests on every Python version with tox
26
26
tox
27
27
28
28
coverage : # # check code coverage quickly with the default Python
29
- coverage run --source django_readonly_field runtests.py tests
29
+ coverage run --source django_readonly_field runtests.py
30
30
coverage report -m
31
31
coverage html
32
32
Original file line number Diff line number Diff line change 17
17
18
18
19
19
def run_tests (* test_args ):
20
- if not test_args :
21
- test_args = ['tests' ]
22
-
23
- # Run tests
24
- TestRunner = get_runner (settings )
25
- test_runner = TestRunner ()
26
-
27
- failures = test_runner .run_tests (test_args )
28
-
29
- if failures :
30
- sys .exit (bool (failures ))
20
+ from django .core .management import execute_from_command_line
21
+ execute_from_command_line (["" , "test" , ] + sys .argv [1 :])
31
22
32
23
33
24
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments