feat: support off-shelf location registration
This commit is contained in:
@@ -22,7 +22,15 @@ def db():
|
||||
@pytest.fixture(autouse=True)
|
||||
def cleanup_test_data(db: Session):
|
||||
yield
|
||||
test_zongpai_nos = ["26B999", "26C999", "26BW0999", "26T999"]
|
||||
test_zongpai_nos = [
|
||||
"26B999",
|
||||
"26C999",
|
||||
"26BW0999",
|
||||
"26T999",
|
||||
"26T998",
|
||||
"26B998",
|
||||
"26C998",
|
||||
]
|
||||
db.query(FinishedGoodsLocation).filter(
|
||||
FinishedGoodsLocation.zongpai_no.in_(test_zongpai_nos)
|
||||
).delete(synchronize_session=False)
|
||||
|
||||
Reference in New Issue
Block a user