mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-25 09:22:21 +00:00
Port a few more tests to pytest proper
Having two distinct test flavours is giving me a headache
This commit is contained in:
@@ -52,3 +52,10 @@ def test_asset_2(db, category, test_status_2):
|
||||
asset, created = models.Asset.objects.get_or_create(asset_id="10", description="Working Mic", status=test_status_2, category=category, date_acquired=datetime.date(2001, 10, 20), replacement_cost=1000)
|
||||
yield asset
|
||||
asset.delete()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def test_supplier(db):
|
||||
supplier, created = models.Supplier.objects.get_or_create(name="Fullmetal Heavy Industry")
|
||||
yield supplier
|
||||
supplier.delete()
|
||||
|
||||
Reference in New Issue
Block a user