-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2050 weights table remove settings (#665)
* feat: db management of weights * feat: source new weights across app * fix: loading of weights from model * chore: update tests for db weights * feat: finish adjusting tests for weights db changes * chore: adjust deafult thershold logic * chore: remove duplicate fixture * chore: unused var
- Loading branch information
1 parent
ce9d6be
commit a492689
Showing
37 changed files
with
674 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
""" | ||
This module contains pytest fixtures and configuration for the account API tests. | ||
It sets up common test data, mocks, and other utilities used across multiple test files | ||
in the account API test suite. | ||
""" | ||
|
||
# pylint: disable=unused-import | ||
import pytest | ||
|
||
from registry.weight_models import WeightConfiguration, WeightConfigurationItem | ||
from scorer.settings.gitcoin_passport_weights import GITCOIN_PASSPORT_WEIGHTS | ||
from scorer.test.conftest import ( | ||
access_token, | ||
scorer_account, | ||
scorer_community, | ||
scorer_user, | ||
weight_config, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
scorer_community, | ||
scorer_community_with_binary_scorer, | ||
scorer_user, | ||
weight_config, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
scorer_api_key, | ||
scorer_community_with_binary_scorer, | ||
scorer_user, | ||
weight_config, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
from scorer.test.conftest import ( | ||
passport_holder_addresses, | ||
scorer_account, | ||
scorer_api_key, | ||
scorer_community, | ||
scorer_community_with_binary_scorer, | ||
scorer_user, | ||
scorer_api_key, | ||
passport_holder_addresses, | ||
weight_config, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
scorer_user, # noqa | ||
ui_scorer, # noqa | ||
verifiable_credential, # noqa | ||
weight_config, # noqa | ||
) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
from scorer.test.conftest import ( | ||
api_key, | ||
sample_address, | ||
sample_provider, | ||
sample_token, | ||
scorer_account, | ||
scorer_user, | ||
verifiable_credential, | ||
api_key, # noqa | ||
sample_address, # noqa | ||
sample_provider, # noqa | ||
sample_token, # noqa | ||
scorer_account, # noqa | ||
scorer_user, # noqa | ||
verifiable_credential, # noqa | ||
weight_config, # noqa | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.