Skip to content

Commit 3e5b1a1

Browse files
whummerclaude
andcommitted
fix: remove unused pytest import; follow redirects in create-stubs.sh
- typedb: remove unused `import pytest` (xfail was the only user, ruff F401) - wiremock: add -L flag to curl so stubs download follows the 301 redirect from library.wiremock.org (empty body without -L caused 422 on import) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fcac36d commit 3e5b1a1

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

typedb/tests/test_extension.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pytest
21
import requests
32
import httpx
43
from localstack.utils.strings import short_uid

wiremock/bin/create-stubs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TMP_STUBS_FILE="/tmp/personio-stubs.json"
77
WIREMOCK_URL="${WIREMOCK_URL:-http://wiremock.localhost.localstack.cloud:4566}"
88

99
echo "Downloading stubs from ${STUBS_URL}..."
10-
curl -s -o "$TMP_STUBS_FILE" "$STUBS_URL"
10+
curl -sL -o "$TMP_STUBS_FILE" "$STUBS_URL"
1111

1212
echo "Importing stubs into WireMock at ${WIREMOCK_URL}..."
1313
curl -v -X POST -H "Content-Type: application/json" --data-binary "@$TMP_STUBS_FILE" "${WIREMOCK_URL}/__admin/mappings/import"

0 commit comments

Comments
 (0)