Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Dec 18, 2023
1 parent 8dbc8c2 commit 4b00998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 3 additions & 3 deletions apps/ingest/tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,15 @@ def test_creating_canvases(self):
# except Local.DoesNotExist:
# pass

def test_it_creates_mainfest_with_metadata_property(self):
def test_it_creates_manifest_with_metadata_property(self):
metadata = {
'pid': '808',
'title': 'Goodie Mob'
'label': 'Goodie Mob'
}
local = self.mock_local('no_meta_file.zip', metadata=metadata)
local.manifest = create_manifest(local)
assert local.manifest.pid == '808'
assert local.manifest.title == 'Goodie Mob'
assert local.manifest.label == 'Goodie Mob'

def test_create_related_links(self):
metadata = {
Expand Down
5 changes: 0 additions & 5 deletions apps/ingest/tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ def test_cleaning_metadata(self):

cleaned_metadata = services.clean_metadata(fake_metadata)

manifest_fields = [f.name for f in Manifest._meta.get_fields()]

for key in cleaned_metadata.keys():
assert key in manifest_fields

assert 'Published City' not in cleaned_metadata.keys()
assert 'PUBLISHER' not in cleaned_metadata.keys()
assert cleaned_metadata['published_city'] == fake_metadata['Published City']
Expand Down

0 comments on commit 4b00998

Please sign in to comment.