From f6fdac23f202e8be5eaf8a1f1e76f86fd2dcdc69 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Wed, 26 Jun 2024 12:01:13 -0500 Subject: [PATCH] Add skipIf to test that fails with sqlite engine --- trovi/api/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trovi/api/tests.py b/trovi/api/tests.py index ac6981f..6a091d4 100644 --- a/trovi/api/tests.py +++ b/trovi/api/tests.py @@ -2,6 +2,7 @@ import json import os import random +from unittest import skipIf import uuid from django.conf import settings @@ -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