Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ pass undeservedly, you can disable it:

$ pytest -p no:random-order -v

Thanks
++++++

Thanks **Raul Gallegos** (eLRuLL) for adding Python 2.6 support.

License
-------

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def read(fname):

setup(
name='pytest-random-order',
version='0.5.4',
version='0.5.5',
author='Jazeps Basko',
author_email='jazeps.basko@gmail.com',
maintainer='Jazeps Basko',
Expand All @@ -25,7 +25,7 @@ def read(fname):
py_modules=['pytest_random_order.plugin', 'pytest_random_order.shuffler'],
install_requires=['pytest>=2.9.2'],
classifiers=[
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',
'Framework :: Pytest',
'Intended Audience :: Developers',
'Topic :: Software Development :: Testing',
Expand Down
8 changes: 4 additions & 4 deletions tests/test_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def test_marker_disables_random_order_in_module(testdir, twenty_tests, get_test_
twenty_tests
)

result = testdir.runpytest('--random-order-bucket=module', '-v')
result = testdir.runpytest('-v')
result.assert_outcomes(passed=20)
names = [c.name for c in get_test_calls(testdir.runpytest())]
names = [c.name for c in get_test_calls(result)]
sorted_names = sorted(list(names))

if disabled:
Expand All @@ -30,9 +30,9 @@ def test_marker_disables_random_order_in_class(testdir, twenty_cls_tests, get_te
twenty_cls_tests + '\n'
)

result = testdir.runpytest('--random-order-bucket=module', '-v')
result = testdir.runpytest('-v')
result.assert_outcomes(passed=20)
names = [c.name for c in get_test_calls(testdir.runpytest())]
names = [c.name for c in get_test_calls(result)]
sorted_names = sorted(list(names))

if disabled:
Expand Down