Port a few more tests to pytest proper

Having two distinct test flavours is giving me a headache
This commit is contained in:
2025-10-05 22:38:41 +01:00
parent 7d9185e155
commit b9f37555c2
4 changed files with 55 additions and 72 deletions

View File

@@ -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()