Skip to content

Commit

Permalink
Merge pull request #40 from WillemNicolas/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
WillemNicolas committed May 5, 2023
2 parents ccbbc35 + 04aece6 commit dc4b003
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions run_unit_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import unittest
from unit_tests.test import Test
import sys

test_classes = [Test]


loader = unittest.TestLoader()
tests = [
loader.loadTestsFromTestCase(test)
for test in (Test,)
]
suite = unittest.TestSuite(tests)

runner = unittest.TextTestRunner(verbosity=2)
res = runner.run(suite)

sys.exit(0 if res.wasSuccessful() else 1)
13 changes: 13 additions & 0 deletions unit_tests/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import unittest


class Test(unittest.TestCase):

def setUp(self) -> None:
return super().setUp()

def test(self):
print("here")
assert(True)


0 comments on commit dc4b003

Please sign in to comment.