spotfm/scripts.py

17 lines
333 B
Python
Raw Permalink Normal View History

2021-02-07 15:03:26 +00:00
import subprocess
def test():
"""
Run all unittests.
"""
subprocess.run(
['python', '-u', '-m', 'unittest', 'discover', "-s", "tests"]
)
def testv():
"""
Run all unittests with verbose.
"""
subprocess.run(
['python', '-u', '-m', 'unittest', 'discover', "-v", "-s", "tests"]
)