Skip to content

Commit bba8893

Browse files
Remove cheesy test image (for now...)
1 parent 29dab69 commit bba8893

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/views/command_line_tests.py

+6
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
"""
1818

1919
import os
20+
from pathlib import Path
21+
2022
from tests import test_settings
2123
from django.test.utils import captured_stdout
24+
from django.conf import settings
2225
from django.core import management
2326
from arches.app.models import models
2427
from tests.base_test import ArchesTestCase
@@ -43,6 +46,9 @@ def setUpClass(cls):
4346
with captured_stdout():
4447
management.call_command("packages", operation="load_package", source=test_pkg_path, yes=True, verbosity=0)
4548

49+
path_to_cheesy_image = Path(settings.MEDIA_ROOT) / "uploadedfiles" / "test.png"
50+
cls.addClassCleanup(os.unlink, path_to_cheesy_image)
51+
4652
super().setUpClass()
4753

4854
def test_load_package(self):

0 commit comments

Comments
 (0)