mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 21:29:59 -05:00
Squashing config rework.
This commit is contained in:
parent
5425142adb
commit
08065155cf
38 changed files with 1046 additions and 633 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue