Skip to content

Commit

Permalink
docker: Fix python commands and test mysql hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurocon committed May 6, 2024
1 parent bc82b97 commit f466c45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion amelie/settings/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'HOST': 'mariadb',
'HOST': '127.0.0.1',
'NAME': 'amelie_test',
'USER': 'amelie_test',
'PASSWORD': 'amelie_test',
Expand Down
6 changes: 3 additions & 3 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Print some debugging information about the environment
# ------------------------------------------------------
# Python version
python -V
python3 -V
# Path to the python binary being used
which python
# Pip version
Expand All @@ -19,7 +19,7 @@ pip freeze
cp ./amelie/settings/tests.py ./amelie/settings/local.py

# Run Django initial checks
python manage.py check
python3 manage.py check

# Make sure staticfiles are collected into the static volume
python3 manage.py collectstatic --noinput
Expand All @@ -28,4 +28,4 @@ python3 manage.py collectstatic --noinput
python3 manage.py migrate

# Run Django tests
python manage.py test --keepdb
python3 manage.py test --keepdb

0 comments on commit f466c45

Please sign in to comment.