From dfe603fc59fc5fce1d9e74e30ae6ba3916eb9807 Mon Sep 17 00:00:00 2001 From: ali ugur Date: Mon, 23 Sep 2024 14:49:10 +0300 Subject: [PATCH] chore: Delete unnecessary line, more explanation in test docstring --- tests/integration/test_charm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_charm.py b/tests/integration/test_charm.py index 549b77fd..5e59541b 100644 --- a/tests/integration/test_charm.py +++ b/tests/integration/test_charm.py @@ -82,9 +82,10 @@ async def test_setup_discourse( @pytest.mark.abort_on_fail async def test_db_migration(model: Model, ops_test: OpsTest, pytestconfig: Config, run_action): """ - arrange: preload postgres with a mock db - act: deploy and integrate with discourse - assert: discourse must be active idle + arrange: preload postgres with a mock db that is created in Discource v3.2.0 + act: deploy and integrate with discourse v3.3.0 + assert: discourse must be active idle, previously it was creating migration + errors related to not being able to delete some columns because of triggers """ postgres_app = await model.deploy( "postgresql-k8s", @@ -109,7 +110,6 @@ async def test_db_migration(model: Model, ops_test: OpsTest, pytestconfig: Confi return_code, _, _ = await ops_test.juju( "scp", "--container", - # postgres_app.name, "postgresql", "./mock_db", f"{postgres_app.units[0].name}:.",