agritheory / test_utils

Common Test Utilities and Fixtures for AgriTheory Projects
4 stars 4 forks source link

Add quarantine warehouse fixtures #70

Closed agritheory closed 1 month ago

agritheory commented 2 months ago

An slighted opinionated test configuration: a new warehouse called "Quarantined, Scrap and Rejected Items". This will have a new Warehouse Type of "Quarantine" and should be associated with a new Stock-type Account with the same name and account number of 1420. "Is Rejected Warehouse" should also be 1. Parent warehouse can be "All Warehouses". This warehouse should also be set as the "Default Scrap Warehouse" in Manufacturing Settings.

I think the best technique for this is to build it as a standalone function that adds all this configuration, because it will be helpful in doing client setups as well.