mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Add py2 tests.
This commit is contained in:
parent
7860f47363
commit
6ec197daaf
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# Written by Shlomi Fish, under the MIT Expat License.
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
for module_name in \
|
for module_name in \
|
||||||
[
|
[
|
||||||
|
@ -212,6 +214,7 @@ print('ok 1 - imported')
|
||||||
|
|
||||||
for ver in [2, 3]:
|
for ver in [2, 3]:
|
||||||
for mod in [
|
for mod in [
|
||||||
|
'pysol_tests.acard_unit',
|
||||||
'pysol_tests.import_file1',
|
'pysol_tests.import_file1',
|
||||||
'pysol_tests.ms_deals1',
|
'pysol_tests.ms_deals1',
|
||||||
]:
|
]:
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
# Written by Shlomi Fish, under the MIT Expat License.
|
# Written by Shlomi Fish, under the MIT Expat License.
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
@ -22,7 +21,7 @@ class MyTests(unittest.TestCase):
|
||||||
self.assertEqual(card2.rank, 7, 'card2.rank')
|
self.assertEqual(card2.rank, 7, 'card2.rank')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def mymain():
|
||||||
from pycotap import TAPTestRunner
|
from pycotap import TAPTestRunner
|
||||||
suite = unittest.TestLoader().loadTestsFromTestCase(MyTests)
|
suite = unittest.TestLoader().loadTestsFromTestCase(MyTests)
|
||||||
TAPTestRunner().run(suite)
|
TAPTestRunner().run(suite)
|
Loading…
Add table
Reference in a new issue