Commit 99129aa
fix(front): upgrade to SDK 2.0.0, add unit tests (#288)
* fix(front): upgrade to SDK 2.0.0, add unit tests
- Upgrade autohive-integrations-sdk to ~=2.0.0
- Access FetchResponse.data on all context.fetch() call sites
- Replace error dict returns with ActionError(message=...)
- Replace success dict returns with ActionResult(data=...)
- Remove legacy result/error fields from all output schemas in config.json
- Bump integration version to 2.0.0
- Add pytest unit tests (77 tests) following the writing-unit-tests skill
- Add front/tests/conftest.py
* fix(front): remove aiohttp from requirements — provided by SDK
* refactor(front): split unit tests into domain files per writing-unit-tests skill
* fix(front): add integration test, update .env.example, apply ruff format
- Add test_front_integration.py with FRONT_API_TOKEN env var skip guard
- Add FRONT_API_TOKEN to .env.example
- Apply ruff format to all front test files and front.py
* test(front): modernize test harness
* fix(front): return attachment upload failures as action errors
* test(front): align live test token naming
* fix(front): correct integration test import from front.front
* test(front): expand integration tests to all 17 actions; fix nullable recipient.name in config schema
---------
Co-authored-by: Shubhank <72601061+Sagsgit@users.noreply.github.com>
Co-authored-by: Kai Koenig <kai@ventego-creative.co.nz>1 parent d7df4c6 commit 99129aa
13 files changed
Lines changed: 3967 additions & 2551 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
This file was deleted.
0 commit comments