Commit 0952f64
committed
test(octopus): pin that the auto-wiring guard tests for content, not presence
automatic_config() records the device set it wired on every call,
including calls that wired nothing, so the recorded set is [] rather
than None after one run on an account with no devices. The "have we
ever wired anything" guard therefore has to test that set for content:
an `is not None` check passes from the second call onwards and blanks a
manual apps.yaml config that auto-discovery never touched.
The existing single-call test could not catch that, so add one that runs
automatic_config() repeatedly with no devices. Corrects the comment,
which described the guard as an is-not-None check it never was.1 parent 64d9b3e commit 0952f64
2 files changed
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
1181 | 1183 | | |
1182 | 1184 | | |
1183 | 1185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2053 | 2053 | | |
2054 | 2054 | | |
2055 | 2055 | | |
| 2056 | + | |
2056 | 2057 | | |
2057 | 2058 | | |
2058 | 2059 | | |
| |||
2093 | 2094 | | |
2094 | 2095 | | |
2095 | 2096 | | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
2096 | 2117 | | |
2097 | 2118 | | |
2098 | 2119 | | |
| |||
0 commit comments