schemaVersion: "1.0.0"

globalEnvVars:
  - key: "VIRTUAL_ENV"
    value: "/env"
  - key: "PATH"
    value: "/env/bin:$PATH"

commandTests:
  - name: "virtual env teardown"
    command: ["rm", "-rf", "/env"]

  - name: "python installation"
    command: ["which", "python"]
    expectedOutput: ["/usr/bin/python\n"]

  - name: "virtualenv installation"
    setup: [["virtualenv", "/env"]]
    command: ["which", "python"]
    expectedOutput": ["/env/bin/python\n"]

  - name: "python version"
    command: ["python", "--version"]
    # we check stderr instead of stdout for Python versions < 3.4
    # https://bugs.python.org/issue18338
    expectedError: ["Python 2.7.9\n"]

  - name: "pip installation"
    command: ["which", "pip"]
    expectedOutput: ["/env/bin/pip\n"]

  - name: "gunicorn flask"
    setup: [["pip", "install", "gunicorn", "flask"]]
    command: ["which", "gunicorn"]
    expectedOutput: ["/env/bin/gunicorn"]
      
  - name: "flask integration"
    command: ["python", "-c", "\"import sys; import flask; sys.exit(0 if flask.__file__.startswith('/env') else 1)\""]

schemaVersion: "1.0.0"

globalEnvVars:
  - key: "VIRTUAL_ENV"
    value: "/env"
  - key: "PATH"
    value: "/env/bin:$PATH"

commandTests:
  - name: "virtual env teardown"
    command: ["rm", "-rf", "/env"]

  - name: "python installation"
    command: ["which", "python"]
    expectedOutput: ["/usr/bin/python\n"]

  - name: "virtualenv installation"
    setup: [["virtualenv", "/env"]]
    command: ["which", "python"]
    expectedOutput: ["/env/bin/python\n"]

  - name: "python version"
    command: ["python", "--version"]
    # we check stderr instead of stdout for Python versions < 3.4
    # https://bugs.python.org/issue18338
    expectedError: ["Python 2.7.9\n"]

  - name: "pip installation"
    command: ["which", "pip"]
    expectedOutput: ["/env/bin/pip\n"]

  - name: "gunicorn flask"
    setup: [["pip", "install", "gunicorn", "flask"]]
    command: ["which", "gunicorn"]
    expectedOutput: ["/env/bin/gunicorn"]
      
  - name: "flask integration"
    command: ["python", "-c", "\"import sys; import flask; sys.exit(0 if flask.__file__.startswith('/env') else 1)\""]

Fix typo in structure test
Fix typo in structure test
