Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Feb 5, 2024
1 parent 5f910f8 commit 6687fff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions test_app/fixtures/bulk/metadata_admin_test.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Filename,pid
volume1.zip,pid4
volume2.zip,pid5
volume3.zip,pid6

3 changes: 1 addition & 2 deletions test_app/tests/test_bulk_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')
Expand Down

0 comments on commit 6687fff

Please sign in to comment.