security: move credentials to .env file

- Remove hardcoded logins/passwords from conftest.py
- Load credentials via python-dotenv from .env (excluded from git)
- Add BASE_URL env variable for easy environment switching
- Add .env.example template for new contributors
- Add validation: clear error message if .env is not filled
- Add python-dotenv to requirements.txt
This commit is contained in:
VolandSZ
2026-08-28 10:39:08 +03:00
parent 365796452f
commit 642ee27588
3 changed files with 63 additions and 18 deletions

View File

@ -1,5 +1,6 @@
playwright
pytest
pytest-playwright
pytest-xdist
pytest-html==3.2.0
playwright
pytest
pytest-playwright
pytest-xdist
pytest-html==3.2.0
python-dotenv