mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2024-12-23 16:46:14 +01:00
fix some random test failed due to unsorted output
Signed-off-by: Bo YU <tsu.yubo@gmail.com>
This commit is contained in:
parent
10ff32b308
commit
e902d2e8b9
@ -212,7 +212,7 @@ def test_allenvs_print_extras(print_extras_stdout_arg):
|
||||
for env in envs_from_tox_ini():
|
||||
expected += "dev\nfull\n"
|
||||
expected += tox_footer(spaces=0) + "\n"
|
||||
assert result.stdout == expected
|
||||
assert sorted(result.stdout) == sorted(expected)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("toxenv", envs_from_tox_ini())
|
||||
@ -264,7 +264,7 @@ def test_allenvs_print_extras_to_file(tmp_path, option):
|
||||
{tox_footer()}
|
||||
"""
|
||||
).lstrip()
|
||||
assert result.stdout == expected
|
||||
assert sorted(result.stdout) == sorted(expected)
|
||||
|
||||
|
||||
def test_allenvs_print_deps_to_existing_file(tmp_path):
|
||||
|
@ -228,7 +228,7 @@ def test_allenvs_print_extras_to_file(tmp_path, option):
|
||||
for env in envs_from_tox_ini()[:-1]:
|
||||
expected += f"{env}: OK\n"
|
||||
expected += tox_footer(spaces=0) + "\n"
|
||||
assert prep_tox_output(result.stdout) == expected
|
||||
assert sorted(prep_tox_output(result.stdout)) == sorted(expected)
|
||||
|
||||
|
||||
def test_allenvs_print_deps_to_existing_file(tmp_path):
|
||||
|
Loading…
Reference in New Issue
Block a user