diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 7c0f6583f..bf0663f36 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -20,6 +20,6 @@ jobs: architecture: x64 - name: Install dependencies run: | - pip install -r code/requirements.txt -r code/dev-requirements.txt -r code/app/requirements.txt + pip install -r code/requirements.txt -r code/dev-requirements.txt -r code/backend/requirements.txt - name: Run Python tests run: python -m pytest --rootdir=code -m "not azure" diff --git a/tests/test_app.py b/tests/test_app.py index 6466f5698..e7478a4d7 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -3,7 +3,7 @@ from unittest.mock import Mock from unittest.mock import patch -from code.app.app import app +from code.app import app class TestConfig: @@ -35,8 +35,8 @@ def setup_method(self): ], } - @patch("code.app.app.get_message_orchestrator") - @patch("code.app.app.get_orchestrator_config") + @patch("code.app.get_message_orchestrator") + @patch("code.app.get_orchestrator_config") def test_converstation_custom_returns_correct_response( self, get_orchestrator_config_mock, get_message_orchestrator_mock ): @@ -66,8 +66,8 @@ def test_converstation_custom_returns_correct_response( "object": "response.object", } - @patch("code.app.app.get_message_orchestrator") - @patch("code.app.app.get_orchestrator_config") + @patch("code.app.get_message_orchestrator") + @patch("code.app.get_orchestrator_config") def test_converstation_custom_calls_message_orchestrator_correctly( self, get_orchestrator_config_mock, get_message_orchestrator_mock ): @@ -95,7 +95,7 @@ def test_converstation_custom_calls_message_orchestrator_correctly( orchestrator=self.orchestrator_config, ) - @patch("code.app.app.get_orchestrator_config") + @patch("code.app.get_orchestrator_config") def test_converstation_custom_returns_error_resonse_on_exception( self, get_orchestrator_config_mock ): @@ -115,8 +115,8 @@ def test_converstation_custom_returns_error_resonse_on_exception( "error": "Exception in /api/conversation/custom. See log for more details." } - @patch("code.app.app.get_message_orchestrator") - @patch("code.app.app.get_orchestrator_config") + @patch("code.app.get_message_orchestrator") + @patch("code.app.get_orchestrator_config") def test_converstation_custom_allows_multiple_messages_from_user( self, get_orchestrator_config_mock, get_message_orchestrator_mock ):