Skip to content

test: CLI and adapter unit tests (38 total) - #9

Merged
gerfru merged 1 commit into
mainfrom
feat/tests-cli-adapters
Jul 4, 2026
Merged

test: CLI and adapter unit tests (38 total)#9
gerfru merged 1 commit into
mainfrom
feat/tests-cli-adapters

Conversation

@gerfru

@gerfru gerfru commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • tests/test_cli.py (8 tests): dry-run success, rendered-count output, org-name in output, atlassian/m365 in dry-run, missing config file, atlassian/m365 live raises ClickException, selfhosted live calls both adapters
  • tests/test_adapters.py (14 tests): XWikiAdapter — raises on missing selfhosted config, page_exists (200/404), create_or_update_page PUT call, deploy upserts all pages, trailing slash stripped; RedmineAdapter — raises on missing config, project_exists (200/HTTPError), create_project idempotency, get_tracker_id lookup, deploy seeds mapped / skips unmapped

All HTTP calls mocked — no live Docker services required.

Test plan

  • CI passes (38 tests green)

🤖 Generated with Claude Code

- test_cli.py: 8 tests via Click CliRunner — dry-run, error paths,
  missing config, atlassian/m365 not-implemented, adapter call verification
- test_adapters.py: 14 tests covering XWikiAdapter and RedmineAdapter —
  config validation, HTTP mocking (get/put/post), idempotency, deploy logic

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gerfru
gerfru merged commit 3b6746d into main Jul 4, 2026
6 checks passed
@gerfru
gerfru deleted the feat/tests-cli-adapters branch July 4, 2026 18:23
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