Skip to content

Commit d50c835

Browse files
Add makemigrations --check to tox.ini for PostgreSQL and MySQL
Co-authored-by: marianoeramirez <1028773+marianoeramirez@users.noreply.github.com>
1 parent c611893 commit d50c835

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ usedevelop = true
5252
commands =
5353
mysql: mysql -u root -h {env:DB_HOST} --password={env:DB_PASSWORD} --protocol tcp -e 'drop database if exists test_cities_light_test;'
5454
postgresql: psql -U postgres -h {env:DB_HOST} -c 'drop database if exists test_cities_light_test;'
55+
postgresql: python test_project/manage.py makemigrations --check --dry-run
56+
mysql: python test_project/manage.py makemigrations --check --dry-run
5557
pytest -v --cov cities_light --create-db --strict -r fEsxXw {posargs:src}
5658
allowlist_externals =
5759
mysql

0 commit comments

Comments
 (0)