@pytest.mark.django_db
def test_data_store_bad(store0):
 with pytest.raises(IntegrityError):
  StoreData.objects.create()

@ pytest . mark . django_db def test_data_store_bad ( store0 ) : with pytest . raises ( IntegrityError ) : StoreData . objects . create ( )
test that you cant add a duplicate file extension .