Skip to content

Commit 3e936ea

Browse files
authored
Merge pull request #80 from zodman/params_onruntests
add a params to run tests only for single test (faster development)
2 parents b16e2b4 + f34c952 commit 3e936ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@
2121
django.setup()
2222

2323
if __name__ == "__main__":
24-
call_command('test', 'widget_tweaks', verbosity=2)
24+
param = "" if not len(sys.argv) >= 2 else "." +str(sys.argv[1])
25+
call_command('test', 'widget_tweaks{}'.format(param), verbosity=2)

0 commit comments

Comments
 (0)