Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3/Test GrantBrandingRoutingPolicy model (#9394)
* Extract grants models into individual files (#9341) * create new directory for models, copy over Contribution model * extract grants models to individual files * rename relocated_models directory, remove original models directory, add imports, resolve circular dependencies * extract CLRMatch into separate file * extract Flag into separate file * extract MatchPledge to separate file * extract Donation and PhantomFunding * extract GrantStat into separate file * refactor * extract GrantBrandingRoutingPolicy to separate file * update migration * add missing import to MatchPledge, remove imports from __init__.py * add missing import * decouple GrantCLRCalculation and move to own file * extract GrantType to own file * extract GrantCLR to own file * add missing import * refactor, add missing imports * remove whitespace * resolve circular dependency * run 'make fix' * import changes from #9314 * add try/except to migration file instead of editing migration directly * refactor * add pytest-factoryboy * add directory structure for models testing and factories * add initial test * stub out test cases * add docstrings and factories * add assertions for policy_name attribute * add assertions for url_pattern * refactor and add assertions for banner_image * add assertions for priority, background_image, inline_css * fix typo * refactor * Update grant.py Co-authored-by: Aditya Anand M C <aditya.anandmc@gmail.com>
- Loading branch information