Skip to content

Commit d98eb69

Browse files
committed
revert cli test change
1 parent 12e95c9 commit d98eb69

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

tests/test_cli.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -483,17 +483,12 @@ def test_sort(self, app, invoke):
483483
["yyy_get_post", "static", "aaa_post"],
484484
invoke(["routes", "-s", "rule"]).output,
485485
)
486-
match_order = [
487-
r.endpoint
488-
for r in app.url_map.iter_rules()
489-
if r.endpoint != "_automatic_options"
490-
]
486+
match_order = [r.endpoint for r in app.url_map.iter_rules()]
491487
self.expect_order(match_order, invoke(["routes", "-s", "match"]).output)
492488

493489
def test_all_methods(self, invoke):
494490
output = invoke(["routes"]).output
495-
assert "HEAD" not in output
496-
assert "OPTIONS" not in output
491+
assert "GET, HEAD, OPTIONS, POST" not in output
497492

498493
output = invoke(["routes", "--all-methods"]).output
499494
assert "GET, HEAD, OPTIONS, POST" in output

0 commit comments

Comments
 (0)