Integration tests#29
Merged
Merged
Conversation
gehel
commented
Mar 27, 2026
Contributor
- Add infrastructure to capture HTTP responses from Phabricator and use them as fixtures.
- Add an integration test for the show command.
6198a71 to
251487f
Compare
…ixtures Introduce a pattern for capturing real Phabricator HTTP responses and using them as fixtures in mocked integration tests: - Add capture_response() and save_fixture() helpers to exploratory_test.py so that each fixture-capture test is a concise 3-line call against the live API - Add five capture tests for the 'show' command (show_task, show_user, show_projects, find_subtasks, find_parent_task) targeting T417698 - Add phable/tests/cli/ package with a conftest.py that clears the in-memory cache before each test (preventing @cached methods from suppressing mocks) and provides a load_fixture() helper that skips tests when fixtures have not yet been captured Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
251487f to
80c3d0e
Compare
Tests invoke the full stack (CliRunner → PhabricatorClient → mocked HTTP) using fixtures captured from the live Phabricator API via the exploratory tests added in the previous commit. Covers plain and oneline output formats, asserting on task ID, title, author username, and status in the rendered output. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
80c3d0e to
ee7e4da
Compare
Owner
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.