Skip to content

Commit

Permalink
Add pytest (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrthbnd committed Dec 16, 2023
1 parent 585f472 commit 2b40afb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ repos:
language: system
pass_filenames: false
entry: poetry export --without-hashes --output requirements/production.txt
files: ^(pyproject.toml|poetry.lock)$
files: ^(pyproject.toml|poetry.lock)$
2 changes: 1 addition & 1 deletion adaptive_hockey_federation/core/config/dev_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# import environ

BASE_DIR = Path(__file__).resolve().parent.parent
BASE_DIR = Path(__file__).resolve().parent.parent.parent

# env = environ.Env(DEBUG=(bool, False))

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.8 on 2023-12-16 13:59

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('main', '0002_alter_player_patronymic'),
]

operations = [
migrations.AlterField(
model_name='player',
name='patronymic',
field=models.CharField(blank=True, default='--пусто--', help_text='Отчество', max_length=256, verbose_name='Отчество'),
),
]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ sleep 5
app/.venv/bin/python manage.py collectstatic --noinput
mv /static/* /app/static/

exec "$@"
exec "$@"

0 comments on commit 2b40afb

Please sign in to comment.