Skip to content

Commit

Permalink
Fix an integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Dec 14, 2023
1 parent 50a5b49 commit 1148487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ async def test_command_logging(mock_flow, caplog, log_filter):
caplog.set_level(logging.INFO, CYLC_LOG)

await mock_flow.resolvers._mutation_mapper("stop", {}, meta)
assert log_filter(caplog, contains='Command "stop" received:')
assert log_filter(caplog, contains='Command "stop" received')

# put_messages: only log for owner
kwargs = {
Expand All @@ -244,4 +244,4 @@ async def test_command_logging(mock_flow, caplog, log_filter):
meta["auth_user"] = "Dr Spock"
await mock_flow.resolvers._mutation_mapper("put_messages", kwargs, meta)
assert log_filter(
caplog, contains='Command "put_messages" received from Dr Spock:')
caplog, contains='Command "put_messages" received from Dr Spock')

0 comments on commit 1148487

Please sign in to comment.