diff --git a/scripts/gen_individual_importing_tests.py b/scripts/gen_individual_importing_tests.py index edccc3f4..31d98c7e 100644 --- a/scripts/gen_individual_importing_tests.py +++ b/scripts/gen_individual_importing_tests.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# Written by Shlomi Fish, under the MIT Expat License. + import os.path for module_name in \ [ @@ -212,6 +214,7 @@ print('ok 1 - imported') for ver in [2, 3]: for mod in [ + 'pysol_tests.acard_unit', 'pysol_tests.import_file1', 'pysol_tests.ms_deals1', ]: diff --git a/tests/unit/acard_unit.py b/tests/lib/pysol_tests/acard_unit.py similarity index 93% rename from tests/unit/acard_unit.py rename to tests/lib/pysol_tests/acard_unit.py index 91668987..4b490753 100644 --- a/tests/unit/acard_unit.py +++ b/tests/lib/pysol_tests/acard_unit.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 # Written by Shlomi Fish, under the MIT Expat License. import unittest @@ -22,7 +21,7 @@ class MyTests(unittest.TestCase): self.assertEqual(card2.rank, 7, 'card2.rank') -if __name__ == '__main__': +def mymain(): from pycotap import TAPTestRunner suite = unittest.TestLoader().loadTestsFromTestCase(MyTests) TAPTestRunner().run(suite)