Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with Black #80

Merged
merged 1 commit into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions craftclash/aboutscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# Import Statements
from tkinter import *


# projectlicense_btn Function
def projectlicense():
# Window Statements
Expand Down
1 change: 1 addition & 0 deletions craftclash/playscreen.old.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import tkinter.messagebox as box
import turtle


# Playscreen Function
def playscreen():
# Window Elements
Expand Down
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()
Loading