Fix for ordering bug in tests, refs #85

main
Simon Willison 2023-04-30 14:28:40 -07:00
rodzic 52cac3df1b
commit ad9b4a4a6f
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -1203,7 +1203,9 @@ def test_put_objects(moto_s3, args, expected, expected_output):
cli, ["put-objects", "my-bucket"] + args, catch_exceptions=False
)
assert result.exit_code == 0, result.output
assert result.output == (expected_output or "")
assert set(result.output.split("\n")) == set(
(expected_output or "").split("\n")
)
# Check files were uploaded
keys = {
obj["Key"]