Browse Source

enough: rename 'build enough image' to 'build image'

keep-around/5d8be3a7915fa5de8b9df95ef40320eb2d90973d
singuliere 3 years ago
parent
commit
7b53ffa952
No known key found for this signature in database GPG Key ID: 900857755EF189C2
  1. 3
      setup.cfg
  2. 4
      tests/enough/internal/test_internal_docker.py

3
setup.cfg

@ -39,7 +39,8 @@ enough.cli =
manage = enough.cli.manage:Manage
enough.internal.cli =
build_enough_image = enough.internal.cli.docker:Build
build_image = enough.internal.cli.docker:Build
create_service = enough.internal.cli.docker:Create
install = enough.internal.cli.install:InstallScript
[build_sphinx]

4
tests/enough/internal/test_internal_docker.py

@ -5,7 +5,7 @@ from io import StringIO
def test_enough_docker_image(docker_name):
assert main(['--debug', 'build', 'enough', 'image', '--name', docker_name]) == 0
assert main(['--debug', 'build', 'image', '--name', docker_name]) == 0
image_name = Docker(docker_name).get_image_name_with_version(suffix=None)
out = StringIO()
sh.docker('image', 'ls', '--filter', 'reference=' + image_name,
@ -20,7 +20,7 @@ def test_enough_docker_image(docker_name):
def test_enough_docker_service(docker_name, docker_options):
assert main(['build', 'enough', 'image', '--name', docker_name]) == 0
assert main(['build', 'image', '--name', docker_name]) == 0
assert main(['--debug', 'create', 'service', '--name', docker_name] + docker_options) == 0
for name in sh.docker.ps('--format', '{{ .Names }}', _iter=True):
if docker_name in name:

Loading…
Cancel
Save