def test_is_docker_compose_file_returns_false_for_non_docker_compose_prefix(
        tmpdir):
    path = tmpdir.join('docker.yml')
    path.ensure()

    assert not is_docker_compose_file(path)
def test_is_docker_compose_file_returns_false_for_multidot_name(tmpdir):
    path = tmpdir.join('docker-compose..yml')
    path.ensure()

    assert not is_docker_compose_file(path)
def test_is_docker_compose_file_success(tmpdir):
    path = tmpdir.join('docker-compose.yml')
    path.ensure()

    assert is_docker_compose_file(path)
def test_is_docker_compose_file_returns_false_for_non_yml_suffix(tmpdir):
    path = tmpdir.join('docker-compose.json')
    path.ensure()

    assert not is_docker_compose_file(path)
def test_is_docker_compose_file_returns_false_for_directory(tmpdir):
    path = tmpdir.join('docker-compose.yml')
    path.ensure(dir=True)

    assert not is_docker_compose_file(path)
Beispiel #6
0
def test_is_docker_compose_file_returns_false_for_non_docker_compose_prefix(tmpdir):
    path = tmpdir.join('docker.yml')
    path.ensure()

    assert not is_docker_compose_file(path)
Beispiel #7
0
def test_is_docker_compose_file_success(tmpdir):
    path = tmpdir.join('docker-compose.yml')
    path.ensure()

    assert is_docker_compose_file(path)
Beispiel #8
0
def test_is_docker_compose_file_returns_false_for_multidot_name(tmpdir):
    path = tmpdir.join('docker-compose..yml')
    path.ensure()

    assert not is_docker_compose_file(path)
Beispiel #9
0
def test_is_docker_compose_file_returns_false_for_directory(tmpdir):
    path = tmpdir.join('docker-compose.yml')
    path.ensure(dir=True)

    assert not is_docker_compose_file(path)
Beispiel #10
0
def test_is_docker_compose_file_returns_false_for_non_yml_suffix(tmpdir):
    path = tmpdir.join('docker-compose.json')
    path.ensure()

    assert not is_docker_compose_file(path)