def test_main_no_py(self): argv = ["module_name", "main_test_collision"] try: main.main(argv) pytest.fail() except SystemExit: pass
def test_main_too_many_module(self): argv = ["module_name", "main_test_collision.py"] try: main.main(argv) pytest.fail() except SystemExit: pass
def test_main_no_module(self): argv = ["modulename", "main_test_module_not_found.py"] try: main.main(argv) pytest.fail() except SystemExit: pass
def test_main_too_many_args(self): argv = ["module_name", "main_test_module1.py", "main_test_module2.py"] try: main.main(argv) pytest.fail() except SystemExit: pass
def test_main_no_args(self): argv = ["module_name"] try: main.main(argv) pytest.fail() except SystemExit: pass
#Created By: Logan Fillo #Created On: 2019-03-14 # See README.md name = "pysimtest" # Public interface __all__ = ([ "SimTestSuite", "forall", "test", ]) from _pysimtest.suite import SimTestSuite from _pysimtest.suite import forall from _pysimtest.suite import test from _pysimtest.main import main # Run program if __name__ == "__main__": import sys main(sys.argv)
def test_main_pass(self): argv = ["module_name", "main_test_pass.py"] try: main.main(argv) except SystemExit: pytest.fail()