Skip to content

Commit

Permalink
try to fix ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
zedy committed Feb 9, 2024
1 parent 49ddafd commit 9087ebe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
16 changes: 8 additions & 8 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
):
Expand Down Expand Up @@ -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
):
Expand Down Expand Up @@ -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
):
Expand All @@ -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
):
Expand Down

0 comments on commit 9087ebe

Please sign in to comment.