Skip to content

Commit

Permalink
Merge pull request #80 from takkii/develop
Browse files Browse the repository at this point in the history
Update.
  • Loading branch information
takkii committed Apr 3, 2024
2 parents 4a687e2 + 88f8086 commit bc47910
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unit/unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# Python Version Check.
class Checker:

def version(self):
major: Optional[int] = sys.version_info[0]
minor: Optional[int] = sys.version_info[1]
Expand All @@ -13,6 +14,7 @@ def version(self):

# Unit Test.
class VersionTest(unittest.TestCase):

@classmethod
def setupClass(cls):
print("setupClass")
Expand Down
5 changes: 5 additions & 0 deletions unit/xunit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class TestResult:

def __init__(self):
self.runCount = 0
self.errorCount = 0
Expand All @@ -14,6 +15,7 @@ def summary(self):


class TestCase:

def __init__(self, name):
self.name = name

Expand All @@ -35,6 +37,7 @@ def run(self, result):


class TestSuite:

def __init__(self):
self.tests = []

Expand All @@ -47,6 +50,7 @@ def run(self, result):


class WasRun(TestCase):

def setUp(self):
self.log = "setUp "

Expand All @@ -61,6 +65,7 @@ def tearDown(self):


class TestCaseTest(TestCase):

def setUp(self):
self.result = TestResult()

Expand Down

0 comments on commit bc47910

Please sign in to comment.