Esempio n. 1
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. 2
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. 3
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. 4
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. 5
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)