Repository navigation
Commit 7200545
committed
test: make the integration harness work with the current packaging
The shell integration harness (test_calendar-cli.sh) no longer worked out
of the box:
- Radicale rejected the hard-coded testuser/password1 because it was
started without an auth backend; configure htpasswd auth so the tests
authenticate (radicale's defaults deny anonymous access).
- Servers were launched via "sh -c '... &'", so $! was the wrapper shell
and the later kill orphaned the actual server, leaving it holding its
port and breaking the next run. Launch them directly and add an EXIT
trap that always tears them down.
- The xandikos branch invoked ../bin/calendar-cli without PYTHONPATH, which
now fails with ModuleNotFoundError (no setup.py installs the package into
the source tree anymore); set PYTHONPATH like the radicale branch.
- _setup_alias: prefer the installed 'calendar-cli' console script, and
make the source-tree fallback self-contained by setting PYTHONPATH.
The radicale path now runs the full tests.sh suite to completion. Xandikos
remains functionally incompatible (already noted in the tests README).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
AI Prompts:
claude-sonnet-4-6: Create an issue for the "out of scope"-task
claude-sonnet-4-6: post it against pycalendar/calendar-cli
claude-sonnet-4-6: Please look through the test script for integration testing, does it still work?
claude-sonnet-4-6: please fix things
claude-sonnet-4-6: retry1 parent 4d98a96 commit 7200545
2 files changed
Lines changed: 48 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
17 | 26 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 27 | + | |
| 28 | + | |
21 | 29 | | |
22 | 30 | | |
23 | | - | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
27 | 36 | | |
28 | | - | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
7 | 23 | | |
8 | 24 | | |
9 | 25 | | |
| |||
12 | 28 | | |
13 | 29 | | |
14 | 30 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
18 | 38 | | |
19 | | - | |
| 39 | + | |
20 | 40 | | |
21 | 41 | | |
22 | 42 | | |
| |||
38 | 58 | | |
39 | 59 | | |
40 | 60 | | |
41 | | - | |
| 61 | + | |
| 62 | + | |
42 | 63 | | |
43 | 64 | | |
44 | 65 | | |
| |||
50 | 71 | | |
51 | 72 | | |
52 | 73 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
56 | 78 | | |
57 | 79 | | |
58 | 80 | | |
59 | 81 | | |
60 | 82 | | |
61 | 83 | | |
62 | | - | |
| 84 | + | |
63 | 85 | | |
64 | 86 | | |
65 | | - | |
| 87 | + | |
| 88 | + | |
66 | 89 | | |
67 | 90 | | |
68 | 91 | | |
| |||
0 commit comments