Skip to content

5/Test GrantCLRCalculation model#9396

Merged
thelostone-mc merged 11 commits into
gitcoinco:masterfrom
jeremyschuurmans:test-grant-clr-calculation
Sep 29, 2021
Merged

5/Test GrantCLRCalculation model#9396
thelostone-mc merged 11 commits into
gitcoinco:masterfrom
jeremyschuurmans:test-grant-clr-calculation

Conversation

@jeremyschuurmans

Copy link
Copy Markdown
Description

This PR adds unit tests for GrantCLRCalculation model

Refers/Fixes
Testing

@jeremyschuurmans jeremyschuurmans marked this pull request as draft September 15, 2021 20:38
@jeremyschuurmans jeremyschuurmans changed the title Test GrantCLRCalculation model WIP: 5/Test GrantCLRCalculation model Sep 15, 2021
@jeremyschuurmans jeremyschuurmans force-pushed the add-grants-unit-tests branch 3 times, most recently from 69bb98a to 81f1318 Compare September 22, 2021 18:35
@jeremyschuurmans jeremyschuurmans changed the title WIP: 5/Test GrantCLRCalculation model 5/Test GrantCLRCalculation model Sep 22, 2021
@jeremyschuurmans jeremyschuurmans force-pushed the test-grant-clr-calculation branch from 4cce351 to ad0b3f4 Compare September 22, 2021 21:18
@jeremyschuurmans jeremyschuurmans marked this pull request as ready for review September 22, 2021 21:19
@jeremyschuurmans jeremyschuurmans changed the base branch from add-grants-unit-tests to master September 27, 2021 20:25
Jeremy Schuurmans added 9 commits September 27, 2021 15:26
* 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 gitcoinco#9314

* add try/except to migration file instead of editing migration directly

* refactor
@jeremyschuurmans jeremyschuurmans force-pushed the test-grant-clr-calculation branch from ad0b3f4 to 1317e03 Compare September 27, 2021 20:26
@thelostone-mc thelostone-mc merged commit ae86908 into gitcoinco:master Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants