Skip to content

Commit

Permalink
Behaviour with a mix of New and Old options
Browse files Browse the repository at this point in the history
In case the newly added options are used along with the ('soon to be'
deprecated) old options, the value from the new option is given precedence.

Added clarification in favour of this behaviour in the help string of
the old options - this is useful to know, while both the options co-exist!
Also added similar info in the docstring of the Python API.

Added tests to verify this behaviour - these tests need to be in force till
the Deprecation Notice holds!
  • Loading branch information
an853e committed Oct 13, 2020
1 parent 9957e2d commit 4e1bbd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stestr/tests/test_selection.py
Expand Up @@ -204,8 +204,8 @@ def test_precedence_whitelist_vs_include_list(self):
whitelist_file.close()

result = selection.construct_list(test_lists,
include_list = 'include_file.txt',
whitelist_file = 'whitelist_file.txt')
include_list='include_file.txt',
whitelist_file='whitelist_file.txt')
self.assertEqual({'fake_test1[tg]', 'fake_test2[tg]'}, set(result))
# Cleanup
os.remove('include_file.txt')
Expand Down

0 comments on commit 4e1bbd5

Please sign in to comment.