commit
52932c21cd
14
test.py
14
test.py
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue