Exemple #1
0
 def test_main_no_py(self):
     argv = ["module_name", "main_test_collision"]
     try:
         main.main(argv)
         pytest.fail()
     except SystemExit:
         pass
Exemple #2
0
 def test_main_too_many_module(self):
     argv = ["module_name", "main_test_collision.py"]
     try:
         main.main(argv)
         pytest.fail()
     except SystemExit:
         pass
Exemple #3
0
 def test_main_no_module(self):
     argv = ["modulename", "main_test_module_not_found.py"]
     try:
         main.main(argv)
         pytest.fail()
     except SystemExit:
         pass
Exemple #4
0
 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
Exemple #5
0
 def test_main_no_args(self):
     argv = ["module_name"]
     try:
         main.main(argv)
         pytest.fail()
     except SystemExit:
         pass
Exemple #6
0
#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)
Exemple #7
0
 def test_main_pass(self):
     argv = ["module_name", "main_test_pass.py"]
     try:
         main.main(argv)
     except SystemExit:
         pytest.fail()