Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente committed Oct 9, 2024
1 parent af1c70a commit 5bdc754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/flask/test_database_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ def test_migrations_run_second_time_optional_integration_integrated(harness: Har
(root / "flask/app/migrate.sh").touch()
exec_handler = unittest.mock.MagicMock()
exec_handler.return_value = None
harness.handle_exec(container, ['bash', '-eo', 'pipefail', 'migrate.sh'], handler=exec_handler)
harness.handle_exec(container, ["bash", "-eo", "pipefail", "migrate.sh"], handler=exec_handler)
harness.begin_with_initial_hooks()
# First migration was called.
exec_handler.assert_called_once()
assert harness.model.unit.status == ops.ActiveStatus()

exec_handler = unittest.mock.MagicMock()
exec_handler.return_value = None
harness.handle_exec(container, ['bash', '-eo', 'pipefail', 'migrate.sh'], handler=exec_handler)
harness.handle_exec(container, ["bash", "-eo", "pipefail", "migrate.sh"], handler=exec_handler)
postgresql_relation_data = {
"database": "test-database",
"endpoints": "test-postgresql:5432,test-postgresql-2:5432",
Expand Down

0 comments on commit 5bdc754

Please # to comment.