Skip to content

Add live E2E coverage for policies, rules, and lists#471

Open
pengfeiye wants to merge 1 commit intomainfrom
TA-3720-create-e-2-e-test-for-rule-policies-list-for-python-sdk
Open

Add live E2E coverage for policies, rules, and lists#471
pengfeiye wants to merge 1 commit intomainfrom
TA-3720-create-e-2-e-test-for-rule-policies-list-for-python-sdk

Conversation

@pengfeiye
Copy link
Copy Markdown
Contributor

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Summary:

  • Added live, env-gated E2E test suite under tests/e2e for lists, rules, and policies.
  • Implemented deterministic cleanup via shared resource registry/finalizers in tests/e2e/conftest.py to avoid orphaned resources.
  • Covered full lifecycle flows:
    • Lists: create, find, update, add/list/remove items, destroy
    • Rules: create, find, update, list verification, destroy
    • Policies: create, find, update (including rule association), list verification, destroy
  • Hardened tests for real API response shapes by:
    • verifying policy updates with follow-up find when update payload omits id
    • using normalized/raw list ID extraction for list endpoints with variable payload structure
  • Registered pytest marker in pyproject.toml:
    • e2e: marks tests that call live Nylas APIs
  • Validation:
    • pytest tests/e2e -m e2e passes (3/3)
    • existing unit resource tests remain green

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