1
0
mirror of https://github.com/fedora-python/tox-current-env.git synced 2024-12-24 09:06:15 +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:
Bo YU 2024-04-11 16:25:12 +08:00
parent 10ff32b308
commit e902d2e8b9
No known key found for this signature in database
GPG Key ID: F9154FDE143E4BAF
2 changed files with 3 additions and 3 deletions

View File

@ -212,7 +212,7 @@ def test_allenvs_print_extras(print_extras_stdout_arg):
for env in envs_from_tox_ini(): for env in envs_from_tox_ini():
expected += "dev\nfull\n" expected += "dev\nfull\n"
expected += tox_footer(spaces=0) + "\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()) @pytest.mark.parametrize("toxenv", envs_from_tox_ini())
@ -264,7 +264,7 @@ def test_allenvs_print_extras_to_file(tmp_path, option):
{tox_footer()} {tox_footer()}
""" """
).lstrip() ).lstrip()
assert result.stdout == expected assert sorted(result.stdout) == sorted(expected)
def test_allenvs_print_deps_to_existing_file(tmp_path): def test_allenvs_print_deps_to_existing_file(tmp_path):

View File

@ -228,7 +228,7 @@ def test_allenvs_print_extras_to_file(tmp_path, option):
for env in envs_from_tox_ini()[:-1]: for env in envs_from_tox_ini()[:-1]:
expected += f"{env}: OK\n" expected += f"{env}: OK\n"
expected += tox_footer(spaces=0) + "\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): def test_allenvs_print_deps_to_existing_file(tmp_path):