summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_enemies.py12
-rw-r--r--tests/test_player.py6
-rw-r--r--tests/test_screens.py6
-rw-r--r--tests/test_text.py6
4 files changed, 10 insertions, 20 deletions
diff --git a/tests/test_enemies.py b/tests/test_enemies.py
index 994ab77..c77faea 100644
--- a/tests/test_enemies.py
+++ b/tests/test_enemies.py
@@ -11,10 +11,8 @@ from sliceitoff.text import Fonts
class TestEnemyBall(unittest.TestCase):
def setUp(self):
- Fonts.load_fonts(os.path.join(
- Path(__file__).parent.parent.resolve(),
- "src",
- "sliceitoff"))
+ Fonts.load_fonts( Path(__file__).parent.parent.resolve()
+ .joinpath('src').joinpath('sliceitoff').joinpath('assets'))
def test_can_create(self):
enemy = EnemyBall()
@@ -23,10 +21,8 @@ class TestEnemyBall(unittest.TestCase):
class TestEnemies(unittest.TestCase):
def setUp(self):
Scaling.update_scaling((640,400))
- Fonts.load_fonts(os.path.join(
- Path(__file__).parent.parent.resolve(),
- "src",
- "sliceitoff"))
+ Fonts.load_fonts( Path(__file__).parent.parent.resolve()
+ .joinpath('src').joinpath('sliceitoff').joinpath('assets'))
def test_can_create(self):
enemies = Enemies()
diff --git a/tests/test_player.py b/tests/test_player.py
index 56ed1cd..bf3647a 100644
--- a/tests/test_player.py
+++ b/tests/test_player.py
@@ -31,10 +31,8 @@ class TestPlayer(unittest.TestCase):
class TestLife(unittest.TestCase):
def setUp(self):
Scaling.update_scaling((640,480))
- Fonts.load_fonts(os.path.join(
- Path(__file__).parent.parent.resolve(),
- "src",
- "sliceitoff"))
+ Fonts.load_fonts( Path(__file__).parent.parent.resolve()
+ .joinpath('src').joinpath('sliceitoff').joinpath('assets'))
self.life = Life()
def test_can_create(self):
diff --git a/tests/test_screens.py b/tests/test_screens.py
index a95894b..8e5ab34 100644
--- a/tests/test_screens.py
+++ b/tests/test_screens.py
@@ -17,10 +17,8 @@ from sliceitoff.screens import (
class TestScreens(unittest.TestCase):
def setUp(self):
- Fonts.load_fonts(os.path.join(
- Path(__file__).parent.parent.resolve(),
- "src",
- "sliceitoff"))
+ Fonts.load_fonts( Path(__file__).parent.parent.resolve()
+ .joinpath('src').joinpath('sliceitoff').joinpath('assets'))
def test_can_run_gameover(self):
page = gameover_screen()
diff --git a/tests/test_text.py b/tests/test_text.py
index 6db0723..6cd8c5a 100644
--- a/tests/test_text.py
+++ b/tests/test_text.py
@@ -7,10 +7,8 @@ from sliceitoff.text import Fonts, TextPage
class TestText(unittest.TestCase):
def setUp(self):
- Fonts.load_fonts(os.path.join(
- Path(__file__).parent.parent.resolve(),
- "src",
- "sliceitoff"))
+ Fonts.load_fonts( Path(__file__).parent.parent.resolve()
+ .joinpath('src').joinpath('sliceitoff').joinpath('assets'))
def test_can_create(self):
textpage = TextPage("")