Skip to content

Commit

Permalink
Fixed path resources tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gaorkl committed Jul 3, 2023
1 parent 71906f4 commit 2f55061
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/test_entities/test_resources.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from pathlib import Path

import pytest

from tests.mock_entities import MockPhysicalFromResource
Expand All @@ -7,16 +9,12 @@

def test_loading_spg_resources():

element = MockPhysicalFromResource(
filename=":spg:platformer/items/diamond_blue.png"
)
MockPhysicalFromResource(filename=":spg:platformer/items/diamond_blue.png")


def test_loading_arcade_resources():

element = MockPhysicalFromResource(
filename=":resources:images/items/coinGold.png"
)
MockPhysicalFromResource(filename=":resources:images/items/coinGold.png")


def test_loading_spg_resources_fail():
Expand All @@ -26,4 +24,5 @@ def test_loading_spg_resources_fail():


def test_load_local_file():
element = MockPhysicalFromResource(filename="rabbit.png")
rabbit_path = Path(__file__).parent / "rabbit.png"
MockPhysicalFromResource(filename=rabbit_path)

0 comments on commit 2f55061

Please sign in to comment.