Skip test as we expect it to fail

This commit is contained in:
Luke Else 2024-01-15 18:34:06 +00:00
parent 9856120860
commit 40d7469321

View File

@ -21,7 +21,7 @@ def test_create_product():
db.create(product)
# Tests the database maintains integrity when we try and add a product with the same details
@pytest.skip("Expect test to fail")
@pytest.mark.skip
def test_duplicate_product():
db = ProductController()
with pytest.raises(sqlite3.IntegrityError):