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)
Esempio n. 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)
Esempio n. 7
0
def test_is_docker_compose_file_success(tmpdir):
    path = tmpdir.join('docker-compose.yml')
    path.ensure()

    assert is_docker_compose_file(path)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)