Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Apr 23, 2024
1 parent fd8fcac commit 42ee2ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
python_files = *.py
testpaths = src/colony/test
4 changes: 3 additions & 1 deletion src/colony/test/base/loggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ def test_logstash_handler(self):
mock_api_client = mock.Mock()
mock_api_client_messages = []
mock_api_client.log_bulk = (
lambda messages, tag="default": mock_api_client_messages.extend(messages)
lambda messages, tag, raise_e="default": mock_api_client_messages.extend(
messages
)
)

logstash_handler = colony.LogstashHandler(api=mock_api_client)
Expand Down

0 comments on commit 42ee2ae

Please sign in to comment.