Skip to content

Commit

Permalink
fixing tests and removing default test
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-bell committed Mar 11, 2022
1 parent 267f363 commit 4aecc50
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions legl_dev/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,26 +160,12 @@ def test_install_self_upgrade(run):
]
run.assert_has_calls(calls)


@mock.patch("legl_dev.command.run")
def test_remote_no_commands(run):
main.remote()
calls = [
mock.call(
["docker", "compose", "exe", "backend", "bash"],
universal_newlines=True,
shell=False,
check=True,
),
]
run.assert_has_calls(calls)

@mock.patch("legl_dev.command.run")
def test_remote_frontend_commands(run):
main.remote("frontend")
main.shell("frontend")
calls = [
mock.call(
["docker", "compose", "exe", "frontend", "bash"],
["docker", "compose", "exec", "frontend", "bash"],
universal_newlines=True,
shell=False,
check=True,
Expand All @@ -189,10 +175,10 @@ def test_remote_frontend_commands(run):

@mock.patch("legl_dev.command.run")
def test_remote_frontend_commands(run):
main.remote("frontend")
main.shell("frontend")
calls = [
mock.call(
["docker", "compose", "exe", "frontend", "bash"],
["docker", "compose", "exec", "frontend", "bash"],
universal_newlines=True,
shell=False,
check=True,
Expand Down

0 comments on commit 4aecc50

Please sign in to comment.