Skip to content

Commit

Permalink
test(Logging): filter for only relevant log records
Browse files Browse the repository at this point in the history
  • Loading branch information
650elx committed Jan 19, 2024
1 parent 2a80584 commit 79da667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_changing_logger_name_within_the_client(sinch_client_sync, caplog):
http_endpoint = Mock()
sinch_client.configuration.transport.request(http_endpoint)

assert len(caplog.records) == 2
assert len([record for record in caplog.records if record.name == logger_name]) == 2
assert caplog.records[0].name == logger_name


Expand Down

0 comments on commit 79da667

Please sign in to comment.