Skip test as we expect it to fail
This commit is contained in:
parent
9856120860
commit
40d7469321
@ -21,7 +21,7 @@ def test_create_product():
|
|||||||
db.create(product)
|
db.create(product)
|
||||||
|
|
||||||
# Tests the database maintains integrity when we try and add a product with the same details
|
# 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():
|
def test_duplicate_product():
|
||||||
db = ProductController()
|
db = ProductController()
|
||||||
with pytest.raises(sqlite3.IntegrityError):
|
with pytest.raises(sqlite3.IntegrityError):
|
||||||
|
Loading…
Reference in New Issue
Block a user