Skip to content

Commit

Permalink
Adapt postgresql provider tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclert-canonical committed Mar 4, 2025
1 parent de8a7ac commit 5ee3858
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit/relations/test_pgbouncer_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,14 @@ def test_on_database_requested(

# Verify we've called everything we should
_pg().create_user.assert_called_with(
user, _password(), extra_user_roles=event.extra_user_roles
user,
_password(),
extra_user_roles=[role.lower() for role in event.extra_user_roles.split(",")],
)
_pg().create_database.assert_called_with(
database, user, client_relations=sentinel.client_rels
database,
user,
client_relations=sentinel.client_rels,
)
_dbp_set_credentials.assert_called_with(rel_id, user, _password())
_dbp_set_version.assert_called_with(rel_id, _pg().get_postgresql_version())
Expand Down

0 comments on commit 5ee3858

Please sign in to comment.