Colin Powell 2 лет назад
Родитель
Сommit
788f8ecd2c
4 измененных файлов с 11 добавлено и 0 удалено
  1. 0 0
      tests/__init__.py
  2. 0 0
      tests/game_tests/__init__.py
  3. 2 0
      tests/game_tests/conftest.py
  4. 9 0
      tests/game_tests/test_utils.py

+ 0 - 0
tests/__init__.py


+ 0 - 0
tests/game_tests/__init__.py


+ 2 - 0
tests/game_tests/conftest.py

@@ -0,0 +1,2 @@
+
+

+ 9 - 0
tests/game_tests/test_utils.py

@@ -0,0 +1,9 @@
+from emus_web.apps.games.utils import update_media_root_for_import
+
+
+def test_update_media_root_for_import():
+    path = "/test/media/path"
+
+    result = update_media_root_for_import(path)
+
+    assert result == "path"