[#107] Add tests for filedrop and wallet plugins #114

Merged
k9ert merged 1 commit from story-107 into main 2026-02-26 16:08:54 +00:00
Collaborator

Closes #107

Changes

54 new tests across 2 plugins:

Filedrop Plugin (28 tests)

  • Plugin creation, meta, config (base_dir, identity precedence across 3 sources)
  • Lifecycle (directory creation for inbox/outbox)
  • Send (message file creation, outbox copy, full path recipient)
  • Receive (empty inbox, read messages, move to processed, skip already processed, skip old, no inbox)

Wallet Plugin (26 tests)

  • Plugin creation, meta, config (scripts dir, path overrides)
  • Lifecycle (missing/existing scripts)
  • Script runner (not configured, not found, success, failure, timeout, arg passing)
  • WalletProvider (balance parsing, pay success/failure, receive address parsing)
  • Tool provider (all 3 tools + error cases + unknown tool)

Verification

  • 537 passed, 1 skipped, 0 failed
  • ruff check cobot/ — all passed
  • ruff format --check cobot/ — all formatted
Closes #107 ## Changes 54 new tests across 2 plugins: ### Filedrop Plugin (28 tests) - Plugin creation, meta, config (base_dir, identity precedence across 3 sources) - Lifecycle (directory creation for inbox/outbox) - Send (message file creation, outbox copy, full path recipient) - Receive (empty inbox, read messages, move to processed, skip already processed, skip old, no inbox) ### Wallet Plugin (26 tests) - Plugin creation, meta, config (scripts dir, path overrides) - Lifecycle (missing/existing scripts) - Script runner (not configured, not found, success, failure, timeout, arg passing) - WalletProvider (balance parsing, pay success/failure, receive address parsing) - Tool provider (all 3 tools + error cases + unknown tool) ## Verification - 537 passed, 1 skipped, 0 failed - `ruff check cobot/` — all passed - `ruff format --check cobot/` — all formatted
[#107] test: add tests for filedrop and wallet plugins
All checks were successful
CI / lint (pull_request) Successful in 10s
CI / test (3.11) (pull_request) Successful in 23s
CI / test (3.12) (pull_request) Successful in 24s
CI / test (3.13) (pull_request) Successful in 25s
E2E Tests / e2e (pull_request) Successful in 15s
CI / build (pull_request) Successful in 6s
80c67ee13c
54 new tests:
- Filedrop (28): creation, meta, config (base_dir, identity precedence),
  lifecycle (dir creation), identity, send (file creation, outbox, full path),
  receive (empty, read, move to processed, skip processed, skip old, no inbox)
- Wallet (26): creation, meta, config (scripts dir, overrides), lifecycle,
  run_script (not configured, not found, success, failure, timeout, args),
  balance parsing, pay (success/failure), receive address parsing,
  tool provider (all tools + error cases)
k9ert merged commit 4ed42269a4 into main 2026-02-26 16:08:54 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ultanio/cobot!114
No description provided.