Skip to content

Commit 07c08ec

Browse files
authored
Merge pull request #15 from devonartis/fix/acceptance-cleanup
Refs devonartis/agentwrit#31
2 parents be6c536 + 45bc926 commit 07c08ec

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

tests/integration/test_acceptance_1_8.py renamed to tests/integration/test_acceptance_stories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
export AGENTWRIT_BROKER_URL=http://127.0.0.1:8080
1111
export AGENTWRIT_CLIENT_ID=<id>
1212
export AGENTWRIT_CLIENT_SECRET=<secret>
13-
uv run pytest tests/integration/test_acceptance_1_8.py -v -s -m integration
13+
uv run pytest tests/integration/test_acceptance_stories.py -v -s -m integration
1414
"""
1515
from __future__ import annotations
1616

tests/sdk-core/run_acceptance.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1212
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
1313

1414
export AGENTWRIT_BROKER_URL="${AGENTWRIT_BROKER_URL:-http://127.0.0.1:8080}"
15-
export AGENTWRIT_CLIENT_ID="${AGENTWRIT_CLIENT_ID:-sit-d1eeee10a81e}"
16-
export AGENTWRIT_CLIENT_SECRET="${AGENTWRIT_CLIENT_SECRET:-08f1b60f93e6eeb5f7bbe4791981d0c338188d38e117ad70d90797a96a90173a}"
15+
16+
if [[ -z "${AGENTWRIT_CLIENT_ID:-}" || -z "${AGENTWRIT_CLIENT_SECRET:-}" ]]; then
17+
echo "Error: AGENTWRIT_CLIENT_ID and AGENTWRIT_CLIENT_SECRET must be set." >&2
18+
echo "Register a test app via the broker admin API, or export them before running this script." >&2
19+
exit 1
20+
fi
1721

1822
# Check if broker is running
1923
broker_up() {
@@ -78,7 +82,7 @@ mkdir -p "${SCRIPT_DIR}/evidence"
7882
# Run acceptance tests with pytest
7983
# Session-scoped fixture ensures single app auth (avoids 429 rate limit)
8084
cd "${REPO_ROOT}"
81-
uv run pytest tests/integration/test_acceptance_1_8.py \
85+
uv run pytest tests/integration/test_acceptance_stories.py \
8286
-v \
8387
-s \
8488
-m integration \

0 commit comments

Comments
 (0)