Skip to content

Conversation

@mehmetyavuzz43
Copy link

@mehmetyavuzz43 mehmetyavuzz43 commented Dec 26, 2025

Adds a Python script to run integration tests under tests/integration, ensuring proper PYTHONPATH setup.


Note

Introduces minimal tooling for local sanity checks and running integration tests.

  • Adds scripts/bash/check_env.sh to verify .env exists and required vars (POLYGON_WALLET_PRIVATE_KEY, OPENAI_API_KEY) are set, failing fast if missing
  • Adds scripts/python/run_integration_tests.py to execute pytest in tests/integration/ with PYTHONPATH set to the repo root; exits cleanly if the directory is absent

Written by Cursor Bugbot for commit 58fbc26. This will update automatically on new commits. Configure here.

Provides a .env sanity-check script that validates required variables for Polymarket Agents.
Adds a Python script to run integration tests under tests/integration, ensuring proper PYTHONPATH setup.
def main() -> None:
"""Runs all integration tests under tests/integration/."""
root = Path(__file__).resolve().parents[1]
test_dir = root / "tests" / "integration"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python script looks for tests in wrong directory

The script uses Path(__file__).resolve().parents[1] to find the repository root, but this resolves to the scripts/ directory instead of the actual repository root. Since the file is at scripts/python/run_integration_tests.py, .parents[1] is two levels up from the file, which is scripts/. This causes the test directory lookup to search for scripts/tests/integration/ instead of the correct tests/integration/ at the repository root. Should use .parents[2] instead.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant