Files
romm/backend/models/tests/test_assets.py
Georges-Antoine Assi 0cf2b1d226 fix more tests
2024-02-02 00:07:01 -05:00

14 lines
737 B
Python

from models.assets import Save, State, Screenshot
def test_save(save: Save):
assert "test_platform_slug/saves/test_emulator/test_save.sav" in save.full_path
assert "/api/raw/assets/test_platform_slug/saves/test_emulator/test_save.sav" in save.download_path
def test_state(state: State):
assert "test_platform_slug/states/test_emulator/test_state.state" in state.full_path
assert "/api/raw/assets/test_platform_slug/states/test_emulator/test_state.state" in state.download_path
def test_screenshot(screenshot: Screenshot):
assert "test_platform_slug/screenshots/test_screenshot.png" in screenshot.full_path
assert "/api/raw/assets/test_platform_slug/screenshots/test_screenshot.png" in screenshot.download_path