Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Set environment variables for Python

language: python
script: pytest -s

python:
  - "3.7"

env:
    DATABASE=postgresql

import os

print(f"DATABASE = {os.environ['DATABASE']}")


def test_anything():
    pass