mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 19:05:18 +00:00
test: update Azure DevOps comment status mocking to use get method
This commit is contained in:
parent
8f9ad2b38e
commit
0b801d391c
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ class TestAzureDevopsProviderPublishComment(unittest.TestCase):
|
||||||
def test_publish_comment_default_closed(self, mock_get_settings):
|
def test_publish_comment_default_closed(self, mock_get_settings):
|
||||||
# Simulate config with no default_comment_status
|
# Simulate config with no default_comment_status
|
||||||
mock_settings = MagicMock()
|
mock_settings = MagicMock()
|
||||||
mock_settings.azure_devops.default_comment_status = None
|
mock_settings.azure_devops.get.return_value = "closed"
|
||||||
mock_settings.config.publish_output_progress = True
|
mock_settings.config.publish_output_progress = True
|
||||||
mock_get_settings.return_value = mock_settings
|
mock_get_settings.return_value = mock_settings
|
||||||
|
|
||||||
|
|
@ -32,7 +32,7 @@ class TestAzureDevopsProviderPublishComment(unittest.TestCase):
|
||||||
def test_publish_comment_active(self, mock_get_settings):
|
def test_publish_comment_active(self, mock_get_settings):
|
||||||
# Simulate config with default_comment_status = "active"
|
# Simulate config with default_comment_status = "active"
|
||||||
mock_settings = MagicMock()
|
mock_settings = MagicMock()
|
||||||
mock_settings.azure_devops.default_comment_status = "active"
|
mock_settings.azure_devops.get.return_value = "active"
|
||||||
mock_settings.config.publish_output_progress = True
|
mock_settings.config.publish_output_progress = True
|
||||||
mock_get_settings.return_value = mock_settings
|
mock_get_settings.return_value = mock_settings
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue