Skip to content

Commit

Permalink
Add skipIf to test that fails with sqlite engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Powers committed Dec 5, 2024
1 parent 614d267 commit f6fdac2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trovi/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import os
import random
from unittest import skipIf
import uuid

from django.conf import settings
Expand Down Expand Up @@ -949,6 +950,7 @@ def test_link_to_non_existent_artifact(self):
response.status_code, status.HTTP_404_NOT_FOUND, msg=response.content
)

@skipIf("sqlite" in os.getenv("DB_ENGINE"), "This test fails locally due to a difference with the sqlite3 engine")
def test_non_unique_artifact_contents(self):
example = self.example_version.copy()
example["contents"]["urn"] = version_don_quixote_1.contents_urn
Expand Down

0 comments on commit f6fdac2

Please sign in to comment.