Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-Clash into tests
  • Loading branch information
willtheorangeguy committed Nov 12, 2023
2 parents d40d006 + ddcf289 commit 90f1423
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
6 changes: 4 additions & 2 deletions craftclash/tests/test_aboutscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
import unittest
from aboutscreen import aboutscreen # assuming AboutScreen is a class in aboutscreen.py


class TestAboutScreen(unittest.TestCase):
def setUp(self):
self.about_screen = aboutscreen()

def test_init(self):
self.assertIsNotNone(self.about_screen)

if __name__ == '__main__':
unittest.main()

if __name__ == "__main__":
unittest.main()
10 changes: 7 additions & 3 deletions craftclash/tests/test_optionscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
sys.path.append(os.path.join(parent_dir))

import unittest
from optionscreen import optionsscreen # assuming OptionScreen is a class in optionscreen.py
from optionscreen import (
optionsscreen,
) # assuming OptionScreen is a class in optionscreen.py


class TestOptionScreen(unittest.TestCase):
def setUp(self):
Expand All @@ -16,5 +19,6 @@ def setUp(self):
def test_init(self):
self.assertIsNotNone(self.option_screen)

if __name__ == '__main__':
unittest.main()

if __name__ == "__main__":
unittest.main()
4 changes: 3 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
from tkinter import Tk
from main import craftclash


class TestCraftClash(unittest.TestCase):
def setUp(self):
self.app = craftclash()

def test_window_title(self):
self.assertEqual(self.app.title(), "CraftClash - Windows - 0.0.4 BETA")

if __name__ == '__main__':

if __name__ == "__main__":
unittest.main()

0 comments on commit 90f1423

Please sign in to comment.