python-testing-homework
python-testing-homework copied to clipboard
Homework for our "Testing" course
testing_homework
This project was generated with wemake-django-template
. Current template version is: 4e5b885. See what is updated since then.
What does this app do?
This app serves just one main purpose: showing pictures and saving your favoirutes ones.
To do that we also have supporting features, like:
- User registration and login / logout mechanics
- Integration with other external "services"
- Admin panel
- All the required infrastructure code: including CI/CD and build scripts
We also care about:
- Code quality
- Naming conventions
- Architecture
- Typing
- Tooling
Glossary
See https://github.com/sobolevn/testing_homework/blob/master/docs/pages/project/glossary.rst
Prerequisites
You will need:
-
python3.11
(seepyproject.toml
for full version) -
postgresql
with version15
- Latest
docker
Development
When developing locally, we use:
-
editorconfig
plugin (required) -
poetry
(required) -
pyenv
🚀 Quickstart
One time setup:
-
git clone tough-dev-school/python-testing-homework
-
cd python-testing-homework
- Create your own
config/.env
file:cp config/.env.template config/.env
and then update it with your own value
Run tests with:
-
docker compose run --rm web pytest
To start the whole project:
- Run
docker compose run --rm web python manage.py migrate
(only once) -
docker compose up
Documentation
Full documentation is available here: docs/
.