summaryrefslogtreecommitdiff
path: root/tests/test_display.py
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-29 14:29:45 +0200
committerViljami Ilola <+@hix.fi>2024-03-29 14:29:45 +0200
commitc75093304fb09dcdee61ea36169074828b1e210d (patch)
tree088cbede4e9f3bc34d7a393764f5c708600ec8d3 /tests/test_display.py
parent063628a3c493df902af9cef4f56f726a9d4ee906 (diff)
scaling and display tests
Diffstat (limited to 'tests/test_display.py')
-rw-r--r--tests/test_display.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_display.py b/tests/test_display.py
new file mode 100644
index 0000000..5e01038
--- /dev/null
+++ b/tests/test_display.py
@@ -0,0 +1,23 @@
+import unittest
+
+import pygame
+
+from display import Display
+
+class TestDisplay(unittest.TestCase):
+ def test_can_create(self):
+ d = Display()
+ self.assertNotEqual(d, None)
+
+ def test_can_update(self):
+ d = Display()
+ surf = pygame.Surface((300,300))
+ sprite = pygame.sprite.Sprite()
+ sprite.image = surf
+ sprite.rect = pygame.Rect((0,0),(300,300))
+ group = pygame.sprite.Group()
+ group.add(sprite)
+ d.update([group])
+
+
+ \ No newline at end of file