Skip to content

Commit a8daab3

Browse files
chore(scripts): name a nipost_pk_test key as a test key
1 parent 5e299b1 commit a8daab3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/live_check.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def main() -> None:
117117
key = api_key()
118118
if key is None:
119119
sys.exit("No key: set NG_POSTCODE_API_KEY or save the key in ~/.nipost_key")
120-
kind = next((p for p in ("nipost_live_", "nipost_test_", "nipost_pk_") if key.startswith(p)), "unknown")
120+
kind = next((p for p in ("nipost_live_", "nipost_test_", "nipost_pk_test_", "nipost_pk_") if key.startswith(p)), "unknown")
121121
print(f"Using a {kind.strip('_')} key against {BASE_URL}")
122122
with httpx.Client(headers={"X-API-Key": key}, timeout=20.0) as http:
123123
print(f"healthz -> HTTP {http.get(BASE_URL + '/healthz').status_code}")

0 commit comments

Comments
 (0)