Skip to content

Commit

Permalink
Add comment to tox about coverage sed operation
Browse files Browse the repository at this point in the history
  • Loading branch information
jieter committed Nov 22, 2017
1 parent 3202f81 commit 344222e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __exit__(self, *args):
Remove the tables from our database
'''
with connection.schema_editor() as editor:
for Model in self.models:
for Model in reversed(self.models):
editor.delete_model(Model)


Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ deps = coverage
commands =
python test_migrations/test.py
python test_migrations/clean.py
# adjust path to make sure coverage is recorded correctly.
# Might be possible to omit this if we use some PYTHONPATH-trickery to get
# this testenv to use the actual code in {toxinidir}/modeltrans.
sed -i 's/.tox\/migrate\/lib\/python3.5\/site-packages\///g' .coverage

[testenv:flake8]
Expand Down

0 comments on commit 344222e

Please sign in to comment.