Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AstraLuma committed May 14, 2019
1 parent bd22232 commit 9deef05
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_sprites.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,3 +325,14 @@ def test_rotatable_base_sprite():

test_sprite.rotate(1)
assert test_sprite.rotation == 1


def test_sprite_in_main():
class TestSprite(BaseSprite):
pass

TestSprite.__module__ = '__main__'

s = TestSprite()

assert s.__resource_path__() # We don't care what it is, as long as it's something

0 comments on commit 9deef05

Please sign in to comment.