Skip to content

Commit

Permalink
Chore(): Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alithethird committed Dec 9, 2024
1 parent c44d0aa commit ebdbb2d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,13 +526,18 @@ def test_sidekiq_env_variable():

harness.set_can_connect(CONTAINER_NAME, True)
harness.container_pebble_ready(CONTAINER_NAME)
plan_before_set_config = harness.get_container_pebble_plan(CONTAINER_NAME).services["discourse"].environment
plan_before_set_config = (
harness.get_container_pebble_plan(CONTAINER_NAME).services["discourse"].environment
)
harness.update_config({"sidekiq_max_memory": 500})
plan_after_set_config = harness.get_container_pebble_plan(CONTAINER_NAME).services["discourse"].environment
plan_after_set_config = (
harness.get_container_pebble_plan(CONTAINER_NAME).services["discourse"].environment
)
assert plan_before_set_config != plan_after_set_config
assert "1000" in plan_before_set_config["UNICORN_SIDEKIQ_MAX_RSS"]
assert "500" in plan_after_set_config["UNICORN_SIDEKIQ_MAX_RSS"]


def test_handle_pebble_ready_event():
"""
arrange: given a deployed discourse charm with all the required relations
Expand Down

0 comments on commit ebdbb2d

Please sign in to comment.