-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
27 additions
and
25 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
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 |
---|---|---|
|
@@ -79,12 +79,12 @@ def build(cls, **kwargs): | |
@pytest.fixture(scope="module") | ||
def app_config(app_config): | ||
"""Override pytest-invenio app_config fixture.""" | ||
app_config[ | ||
"RECORDS_REFRESOLVER_CLS" | ||
] = "invenio_records.resolver.InvenioRefResolver" | ||
app_config[ | ||
"RECORDS_REFRESOLVER_STORE" | ||
] = "invenio_jsonschemas.proxies.current_refresolver_store" | ||
app_config["RECORDS_REFRESOLVER_CLS"] = ( | ||
"invenio_records.resolver.InvenioRefResolver" | ||
) | ||
app_config["RECORDS_REFRESOLVER_STORE"] = ( | ||
"invenio_jsonschemas.proxies.current_refresolver_store" | ||
) | ||
# Variable not used. We set it to silent warnings | ||
app_config["JSONSCHEMAS_HOST"] = "not-used" | ||
|
||
|
@@ -106,9 +106,9 @@ def app_config(app_config): | |
app_config["COMMUNITIES_IDENTITIES_CACHE_REDIS_URL"] = "redis://localhost:6379/4" | ||
|
||
# Cache handler | ||
app_config[ | ||
"COMMUNITIES_IDENTITIES_CACHE_HANDLER" | ||
] = "invenio_communities.cache.redis:IdentityRedisCache" | ||
app_config["COMMUNITIES_IDENTITIES_CACHE_HANDLER"] = ( | ||
"invenio_communities.cache.redis:IdentityRedisCache" | ||
) | ||
|
||
app_config["MAIL_DEFAULT_SENDER"] = "[email protected]" | ||
|
||
|
@@ -135,9 +135,9 @@ def app_config(app_config): | |
] | ||
|
||
# Extending preferences schemas, to include notification preferences. Should not matter for most test cases | ||
app_config[ | ||
"ACCOUNTS_USER_PREFERENCES_SCHEMA" | ||
] = UserPreferencesNotificationsSchema() | ||
app_config["ACCOUNTS_USER_PREFERENCES_SCHEMA"] = ( | ||
UserPreferencesNotificationsSchema() | ||
) | ||
app_config["USERS_RESOURCES_SERVICE_SCHEMA"] = NotificationsUserSchema | ||
|
||
# Users are verified by default. This will disable the automatic creation of moderation requests after publishing a record. | ||
|