def test_use_marcelfile(tmpdir): marcelfile_content = u""" DEPUIS debian:latest CRÉATEUR Thomas Maurice <*****@*****.**> LANCE apt-get update && apt-get upgrade -y LANCE useradd manuel UTILISATEUR manuel ORDRE echo "La baguette hon hon hon" """ os.chdir(str(tmpdir)) with open(u'RecetteÀMarcel', 'w') as marcelfile: if six.PY2: marcelfile_content = marcelfile_content.encode('utf-8') marcelfile.write(marcelfile_content) command = ['marcel', 'construis'] command = use_marcelfile(command) assert command == ['marcel', 'construis', '-f', u'./.RecetteÀMarcel.Dockerfile']
def test_use_marcelfile_with_provided_marcefile(): command = ['marcel', 'bricole', '-f', 'Dockerfile'] assert use_marcelfile(command) == command
def test_use_marcelfile_with_provided_marcefile(): command = ['marcel', 'construis', '-f', 'Dockerfile'] assert use_marcelfile(command) == command