Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Jun 10, 2024
1 parent 8c6820c commit 200f133
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/iiif/manifests/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_properties(self):
# )

def test_meta(self):
assert str(self.volume) == self.volume.label
assert str(self.volume) == f"{self.volume.pid} - title: {self.volume.label}"

def test_sitemap(self):
site_map = ManifestSitemap()
Expand All @@ -88,7 +88,7 @@ def test_plain_export_view(self):
assert response.status_code == 200

def test_autocomplete_label(self):
assert Manifest.objects.all().first().autocomplete_label() == Manifest.objects.all().first().label
assert Manifest.objects.all().first().autocomplete_label() == Manifest.objects.all().first().pid

def test_absolute_url(self):
assert Manifest.objects.all().first().get_absolute_url() == "%s/volume/%s" % (settings.HOSTNAME, Manifest.objects.all().first().pid)
Expand Down
4 changes: 2 additions & 2 deletions apps/iiif/manifests/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_default_start_canvas(self):
assert manifest.start_canvas == canvas

def test_meta(self):
assert str(self.volume) == self.assumed_label
assert str(self.volume) == f"{self.volume.pid} - title: {self.volume.label}"

def test_sitemap(self):
sm = ManifestSitemap()
Expand All @@ -120,7 +120,7 @@ def test_plain_export_view(self):
assert response.status_code == 200

def test_autocomplete_label(self):
assert Manifest.objects.all().first().autocomplete_label() == Manifest.objects.all().first().label
assert Manifest.objects.all().first().autocomplete_label() == Manifest.objects.all().first().pid

def test_absolute_url(self):
assert Manifest.objects.all().first().get_absolute_url() == "%s/volume/%s" % (settings.HOSTNAME, Manifest.objects.all().first().pid)
Expand Down

0 comments on commit 200f133

Please sign in to comment.