diff --git a/test_app/fixtures/bulk/metadata_admin_test.csv b/test_app/fixtures/bulk/metadata_admin_test.csv new file mode 100644 index 0000000..fd28649 --- /dev/null +++ b/test_app/fixtures/bulk/metadata_admin_test.csv @@ -0,0 +1,5 @@ +Filename,pid +volume1.zip,pid4 +volume2.zip,pid5 +volume3.zip,pid6 + diff --git a/test_app/tests/test_bulk_admin.py b/test_app/tests/test_bulk_admin.py index 68b2bf9..918ca4d 100644 --- a/test_app/tests/test_bulk_admin.py +++ b/test_app/tests/test_bulk_admin.py @@ -4,7 +4,6 @@ from moto import mock_s3 from django.contrib.admin.sites import AdminSite from django.test import TestCase -from django.core.files.uploadedfile import SimpleUploadedFile from django.core import files from django.test.client import RequestFactory from django.conf import settings @@ -30,7 +29,7 @@ def teardown_class(): rmtree(settings.INGEST_TMP_DIR, ignore_errors=True) def test_bulk_admin_save(self): - metadata_file_path = os.path.join(self.fixture_path, 'metadata.csv') + metadata_file_path = os.path.join(self.fixture_path, 'metadata_admin_test.csv') with open(metadata_file_path, 'rb') as f: metadata_content = files.base.ContentFile(f.read()) metadata_file = files.File(metadata_content.file, 'metadata.csv')