Skip to content

Commit

Permalink
docs: document how to run the tests on MySQL locally
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Oct 20, 2023
1 parent e7bb5ba commit 868f3b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mysql_test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
The tox targets for py38-django32 and py38-django42 will use this settings file.
For the most part, you can use test_settings.py instead (that's the default if
you just run "pytest" with no arguments).
If you need a compatible MySQL server running locally, spin one up with:
docker run --rm \
-e MYSQL_DATABASE=test_oel_db \
-e MYSQL_USER=test_oel_user \
-e MYSQL_PASSWORD=test_oel_pass \
-e MYSQL_RANDOM_ROOT_PASSWORD=true \
-p 3306:3306 mysql:8
"""

from test_settings import *
Expand Down

0 comments on commit 868f3b8

Please sign in to comment.