cc: remove woodlands test + brackets

This commit is contained in:
Mark Joshwel 2023-06-21 04:53:02 +08:00 committed by GitHub
parent 7269e4b5b9
commit a53030ba7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

14
test.py
View file

@ -71,12 +71,12 @@ tests: list[ContinuityTest] = [
query="3RQ3+HW3 Pemping, Batam City, Riau Islands, Indonesia", query="3RQ3+HW3 Pemping, Batam City, Riau Islands, Indonesia",
expected=("Batam\n" "Kepulauan Riau, Indonesia"), expected=("Batam\n" "Kepulauan Riau, Indonesia"),
), ),
ContinuityTest( # ContinuityTest(
query="CQPP+QM9 Singapore", # query="CQPP+QM9 Singapore",
expected=( # expected=(
"Woodlands Integrated Transport Hub\n" "738343\n" "Northwest, Singapore" # "Woodlands Integrated Transport Hub\n" "738343\n" "Northwest, Singapore"
), # ),
), # ),
ContinuityTest( ContinuityTest(
query="8RRX+75Q Singapore", query="8RRX+75Q Singapore",
expected=( expected=(
@ -138,7 +138,7 @@ def main() -> int:
for fail in failures: for fail in failures:
print( print(
f"[{tests.index(fail.test) + 1}/({len(tests)})] {fail.test.query}\n" f"[{tests.index(fail.test) + 1}/{len(tests)}] {fail.test.query}\n"
+ ( + (
indent("\n".join(format_exception(fail.exception)), prefix=INDENT * " ") indent("\n".join(format_exception(fail.exception)), prefix=INDENT * " ")
+ "\n" + "\n"