Skip to content

Commit

Permalink
fix cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Nov 22, 2023
1 parent 52dfc05 commit d624135
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions services/clusters-keeper/tests/unit/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@
# pylint:disable=redefined-outer-name


import pytest
from faker import Faker
from simcore_service_clusters_keeper.cli import main
from typer.testing import CliRunner

runner = CliRunner()


def test_settings(monkeypatch: pytest.MonkeyPatch, faker: Faker):
monkeypatch.setenv("SWARM_STACK_NAME", faker.pystr())
def test_settings(app_environment):
result = runner.invoke(main, ["settings"])
assert result.exit_code == 0
assert "APP_NAME=simcore-service-clusters-keeper" in result.stdout
Expand Down

0 comments on commit d624135

Please sign in to comment.