-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emails: improve templates and add tests
* improves email templates * adds tests
- Loading branch information
Showing
20 changed files
with
515 additions
and
87 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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
58 changes: 0 additions & 58 deletions
58
...s_rdm/templates/semantic-ui/invenio_notifications/email/community-submission.submit.jinja
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (C) 2023 CERN. | ||
# | ||
# CDS-RDM is free software; you can redistribute it and/or modify it under | ||
# the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""Pytest fixtures.""" | ||
|
||
import pytest | ||
|
||
from invenio_app.factory import create_api | ||
|
||
from cds_rdm.permissions import CDSCommunitiesPermissionPolicy | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def app_config(app_config): | ||
"""Mimic an instance's configuration.""" | ||
app_config["REST_CSRF_ENABLED"] = True | ||
app_config["DATACITE_ENABLED"] = True | ||
app_config["DATACITE_PREFIX"] = "10.17181" | ||
app_config["OAUTH_REMOTE_APP_NAME"] = "cern" | ||
app_config["CERN_APP_CREDENTIALS"] = { | ||
"consumer_key": "CHANGE ME", | ||
"consumer_secret": "CHANGE ME", | ||
} | ||
app_config["CERN_LDAP_URL"] = "" # mock | ||
app_config["COMMUNITIES_PERMISSION_POLICY"] = CDSCommunitiesPermissionPolicy | ||
app_config["COMMUNITIES_ALLOW_RESTRICTED"] = True | ||
app_config["CDS_GROUPS_ALLOW_CREATE_COMMUNITIES"] = ["group-allowed-create-communities"] | ||
return app_config | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def create_app(): | ||
"""Create test app.""" | ||
return create_api |
Oops, something went wrong.