Skip to content

alexbarev/python-testing-homework

 
 

Repository files navigation

testing_homework

This project was generated with wemake-django-template. Current template version is: 4e5b885. See what is updated since then.

wemake.services wemake-python-styleguide

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 (see pyproject.toml for full version)
  • postgresql with version 15
  • Latest docker

Development

When developing locally, we use:

🚀 Quickstart

One time setup:

  1. git clone tough-dev-school/python-testing-homework
  2. cd python-testing-homework
  3. Create your own config/.env file: cp config/.env.template config/.env and then update it with your own value

Run tests with:

  1. docker compose run --rm web pytest

To start the whole project:

  1. Run docker compose run --rm web python manage.py migrate (only once)
  2. docker compose up

Documentation

Full documentation is available here: docs/.

Releases

No releases published

Packages

No packages published

Languages

  • Python 75.3%
  • HTML 11.7%
  • Shell 8.2%
  • Dockerfile 4.8%