Squashing config rework.

This commit is contained in:
Roland 2022-02-16 21:57:27 -07:00
parent 5425142adb
commit 08065155cf
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
38 changed files with 1046 additions and 633 deletions

View file

@ -1,6 +1,7 @@
import pytest
from modules.inventory import Inventory, Item, DEFAULT_CATEGORIES, DEFAULT_INVENTORIES
from modules.inventory.common import set_test_inventories_config
@pytest.fixture
@ -23,4 +24,6 @@ def init_test_inventory(test_session):
inventory = test_session.query(Inventory).filter_by(name='Food Storage').one()
test_session.commit()
return inventory
set_test_inventories_config(True)
yield inventory
set_test_inventories_config(False)