Commit b4ecf17
Simplify path-prefix tests: use MockVWS + ConnectionError
Instead of using responses directly, set up MockVWS at the bare URL
and assert ConnectionError when the client uses a path-prefix URL.
With the old urljoin code the prefix would be silently dropped so
the request would succeed; with string concatenation the prefix is
preserved, the mock has no handler for it, and ConnectionError is
raised as expected.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 365c501 commit b4ecf17
2 files changed
+22
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
193 | 191 | | |
194 | 192 | | |
195 | 193 | | |
196 | | - | |
197 | 194 | | |
198 | 195 | | |
199 | 196 | | |
200 | 197 | | |
201 | 198 | | |
202 | | - | |
203 | | - | |
| 199 | + | |
204 | 200 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
223 | 209 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 210 | + | |
| 211 | + | |
228 | 212 | | |
229 | 213 | | |
230 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
251 | | - | |
252 | 250 | | |
253 | 251 | | |
254 | 252 | | |
255 | | - | |
256 | | - | |
| 253 | + | |
257 | 254 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
276 | 263 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
| 264 | + | |
| 265 | + | |
281 | 266 | | |
282 | 267 | | |
283 | 268 | | |
| |||
0 commit comments