Advertisement
vsokoltsov

Untitled

Jan 5th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. @manager.command
  2. def test(test_name=None):
  3. """ Run tests without coverage """
  4.  
  5. if test_name is None:
  6. tests = unittest.TestLoader().discover('tests')
  7. else:
  8. tests = unittest.TestLoader().loadTestsFromName(test_name)
  9. ColourTextTestRunner(verbosity=2).run(tests)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement