-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13b1927
commit e481ff3
Showing
4 changed files
with
30 additions
and
18 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 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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import pytest | ||
from goose_plugins.toolkits.critical_systems_thinking import CriticalSystemsThinking | ||
from unittest.mock import patch, MagicMock, Mock | ||
from unittest.mock import MagicMock, Mock | ||
|
||
|
||
@pytest.fixture | ||
def critical_systems_thinking(): | ||
def critical_systems_thinking() -> CriticalSystemsThinking: | ||
notifier = MagicMock() | ||
toolkit = CriticalSystemsThinking(notifier=notifier) | ||
toolkit.exchange_view = Mock() | ||
toolkit.exchange_view.processor = Mock() | ||
toolkit.exchange_view.processor.messages = [] | ||
return toolkit | ||
|
||
def test_check_status(critical_systems_thinking) -> None: | ||
def test_check_status(critical_systems_thinking: CriticalSystemsThinking) -> None: | ||
result = critical_systems_thinking.check_status() | ||
|
||
assert "OK" == result | ||
|
||
if __name__ == "__main__": | ||
pytest.main() | ||
pytest.main() |