Update test_cli.py

This commit is contained in:
Dasha2205 2022-12-22 12:16:54 +03:00 committed by GitHub
parent 066a35dd32
commit 02f53a9b0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -463,7 +463,7 @@ class TestRoutes:
def expect_order(self, order, output): def expect_order(self, order, output):
# skip the header and match the start of each row # skip the header and match the start of each row
for expect, line in zip(order, output.splitlines()[2:]): for expect, line in zip(order, strict=output.splitlines()[2:]):
# do this instead of startswith for nicer pytest output # do this instead of startswith for nicer pytest output
assert line[: len(expect)] == expect assert line[: len(expect)] == expect