Skip to content

Commit

Permalink
🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
cl0ete committed Oct 11, 2024
1 parent 51dab68 commit 1ba3605
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions trustregistry/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ def test_create_app():
@patch("trustregistry.main.command")
@patch("trustregistry.main.logger")
async def test_lifespan_migrations_needed(
mock_logger, mock_command, mock_config, mock_check_migrations, mock_engine # pylint: disable=unused-argument
mock_logger,
mock_command,
mock_config,
mock_check_migrations,
mock_engine, # pylint: disable=unused-argument
):
mock_check_migrations.return_value = False
mock_config.return_value = MagicMock()
Expand All @@ -52,7 +56,11 @@ async def test_lifespan_migrations_needed(
@patch("trustregistry.main.command")
@patch("trustregistry.main.logger")
async def test_lifespan_already_exists_error(
mock_logger, mock_command, mock_config, mock_check_migrations, mock_engine # pylint: disable=unused-argument
mock_logger,
mock_command,
mock_config,
mock_check_migrations,
mock_engine, # pylint: disable=unused-argument
):
mock_check_migrations.return_value = False
mock_config.return_value = MagicMock()
Expand All @@ -79,7 +87,11 @@ async def test_lifespan_already_exists_error(
@patch("trustregistry.main.command")
@patch("trustregistry.main.logger")
async def test_lifespan_unexpected_error(
mock_logger, mock_command, mock_config, mock_check_migrations, mock_engine # pylint: disable=unused-argument
mock_logger,
mock_command,
mock_config,
mock_check_migrations,
mock_engine, # pylint: disable=unused-argument
):
mock_check_migrations.return_value = False
mock_config.return_value = MagicMock()
Expand All @@ -97,7 +109,7 @@ async def test_lifespan_unexpected_error(
@patch("trustregistry.main.check_migrations")
@patch("trustregistry.main.logger")
async def test_lifespan_no_migrations_needed(
mock_logger, mock_check_migrations, mock_engine # pylint: disable=unused-argument
mock_logger, mock_check_migrations, mock_engine # pylint: disable=unused-argument
):
mock_check_migrations.return_value = True

Expand Down

0 comments on commit 1ba3605

Please sign in to comment.