Skip to content

Commit

Permalink
Update the nosetests test regex for legacy tests
Browse files Browse the repository at this point in the history
The default regex, '(?:^|[\b_\./-])[Tt]est', will match methods that are
not test methods. For example, I created a new method
'skip_test_overrides' and it was mistakenly run as test. By convention
all of our tests start with 'test_' so this is a safe change.

Change-Id: I4f5917de53681c950c72479f16f88e76f49f6bfc
  • Loading branch information
dstanek committed Jun 29, 2016
1 parent 61d896f commit d18bb02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ deps = -r{toxinidir}/test-requirements.txt
commands =
# Run each legacy test separately, to avoid SQL model redefinitions
find keystone -type f -name "*.pyc" -delete
nosetests -v \
nosetests -v -m '^[Tt]est' \
keystone/tests/unit/backend/legacy_drivers/assignment/V8/sql.py
nosetests -v \
nosetests -v -m '^[Tt]est' \
keystone/tests/unit/backend/legacy_drivers/role/V8/sql.py
nosetests -v \
nosetests -v -m '^[Tt]est' \
keystone/tests/unit/backend/legacy_drivers/federation/V8/api_v3.py
nosetests -v \
nosetests -v -m '^[Tt]est' \
keystone/tests/unit/backend/legacy_drivers/resource/V8/sql.py

[testenv:pep8]
Expand Down

0 comments on commit d18bb02

Please sign in to comment.