Skip to content

Commit

Permalink
Remove duplicate helper function (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloneppel authored Jan 12, 2023
1 parent 7b9993a commit cda5702
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions tests/integration/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,6 @@
APPLICATION_UNITS = 1
DATABASE_UNITS = 3

charm = None


async def build_and_deploy(ops_test: OpsTest, num_units: int) -> None:
"""Builds the charm and deploys a specified number of units."""
global charm
if not charm:
charm = await ops_test.build_charm(".")
resources = {
"postgresql-image": METADATA["resources"]["postgresql-image"]["upstream-source"],
}
await ops_test.model.deploy(
charm,
resources=resources,
application_name=DATABASE_APP_NAME,
trust=True,
num_units=num_units,
),
# Wait until the PostgreSQL charm is successfully deployed.
await ops_test.model.wait_for_idle(
apps=[DATABASE_APP_NAME],
status="active",
raise_on_blocked=True,
timeout=1000,
wait_for_exact_units=num_units,
)


@pytest.mark.db_relation_tests
async def test_finos_waltz_db(ops_test: OpsTest) -> None:
Expand Down

0 comments on commit cda5702

Please sign in to comment.