18 lines
469 B
Python
18 lines
469 B
Python
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
|
|
def test_docker_compose_reads_real_env_file_not_example():
|
|
compose_content = (ROOT / "docker-compose.yml").read_text(encoding="utf-8")
|
|
|
|
assert "- .env\n" in compose_content
|
|
assert "- .env.example" not in compose_content
|
|
|
|
|
|
def test_real_env_file_is_gitignored():
|
|
gitignore_lines = (ROOT / ".gitignore").read_text(encoding="utf-8").splitlines()
|
|
|
|
assert ".env" in gitignore_lines
|