Skip to content

Commit

Permalink
passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Aug 15, 2023
1 parent 8d0356c commit 99c15e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ def wallet_id(faker: Faker) -> WalletID:
@pytest.fixture
def app_environment(
app_environment: EnvVarsDict,
disabled_rabbitmq: None,
mocked_redis_server: None,
monkeypatch: pytest.MonkeyPatch,
) -> EnvVarsDict:
# fast interval
Expand All @@ -58,6 +56,8 @@ def _base_configuration(
aws_security_group_id: str,
aws_ami_id: str,
aws_allowed_ec2_instance_type_names: list[str],
disabled_rabbitmq: None,
mocked_redis_server: None,
) -> None:
...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
@pytest.fixture
def app_environment(
app_environment: EnvVarsDict,
disabled_rabbitmq: None,
mocked_aws_server_envs: None,
mocked_redis_server: None,
monkeypatch: pytest.MonkeyPatch,
) -> EnvVarsDict:
return app_environment | setenvs_from_dict(
Expand All @@ -38,7 +35,9 @@ def mock_background_task(mocker: MockerFixture) -> mock.Mock:


async def test_clusters_management_task_created_and_deleted(
app_environment: EnvVarsDict,
disabled_rabbitmq: None,
mocked_aws_server_envs: None,
mocked_redis_server: None,
mock_background_task: mock.Mock,
initialized_app: FastAPI,
app_settings: ApplicationSettings,
Expand Down
2 changes: 1 addition & 1 deletion services/clusters-keeper/tests/unit/test_modules_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ async def test_get_instances(
assert not all_instances["Reservations"]
assert (
await clusters_keeper_ec2.get_instances(
app_settings.CLUSTERS_KEEPER_EC2_INSTANCES, {}
app_settings.CLUSTERS_KEEPER_EC2_INSTANCES, tags={}
)
== []
)
Expand Down

0 comments on commit 99c15e1

Please sign in to comment.