From 868f3b84bb35ead14d11d0fa5d14ddad8e5a8090 Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Thu, 19 Oct 2023 19:42:44 -0700 Subject: [PATCH] docs: document how to run the tests on MySQL locally --- mysql_test_settings.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mysql_test_settings.py b/mysql_test_settings.py index ae8e37d3..f519c540 100644 --- a/mysql_test_settings.py +++ b/mysql_test_settings.py @@ -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 *