Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Oct 2, 2023
1 parent 2bff8ac commit 72b29a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/core/service/logging/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ def test_cloudwatch_region_valid() -> None:
cloudwatch_enabled=True, cloudwatch_region="us-east-2"
)
assert config.cloudwatch_region == "us-east-2"
assert config.cloudwatch_region is True
assert config.cloudwatch_enabled is True
4 changes: 2 additions & 2 deletions tests/core/service/logging/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def test_setup_logging_cloudwatch_disabled() -> None:
# We patch logging so that we don't actually modify the global logging
# configuration.
with patch("core.service.logging.log.logging"):
setup(cloudwatch_enable=False)
setup(cloudwatch_enabled=False)
assert mock_cloudwatch_callable.call_count == 0

setup(cloudwatch_enable=True)
setup(cloudwatch_enabled=True)
assert mock_cloudwatch_callable.call_count == 1

0 comments on commit 72b29a8

Please sign in to comment.