diff --git a/compliance-api/pre-hook-update-db.sh b/compliance-api/pre-hook-update-db.sh old mode 100644 new mode 100755 diff --git a/compliance-api/src/compliance_api/__init__.py b/compliance-api/src/compliance_api/__init__.py index d3908e14..282269a4 100644 --- a/compliance-api/src/compliance_api/__init__.py +++ b/compliance-api/src/compliance_api/__init__.py @@ -111,7 +111,7 @@ def get_roles(a_dict): def register_shellcontext(app): """Register shell context objects.""" - from api import models # pylint: disable=import-outside-toplevel + from compliance_api import models # pylint: disable=import-outside-toplevel def shell_context(): """Shell context objects.""" diff --git a/compliance-api/tests/unit/utils/test_notification.py b/compliance-api/tests/unit/utils/test_notification.py deleted file mode 100644 index e4287136..00000000 --- a/compliance-api/tests/unit/utils/test_notification.py +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright © 2024 Province of British Columbia -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Tests to assure the Notification utilities. - -Test-Suite to ensure that the Notification methods are working as expected. -""" - -import pytest - -from compliance_api.utils import notification - - -@pytest.mark.parametrize('test_input_email,expected', - [('helo@gw.com', True), ('helo', False), (None, False), ('', False)]) -def test_is_valid_email(test_input_email, expected): - """Assert that the valid email method works well..""" - assert notification.is_valid_email(test_input_email) == expected