diff options
author | halcy <[email protected]> | 2022-11-06 14:30:21 +0200 |
---|---|---|
committer | halcy <[email protected]> | 2022-11-06 14:30:21 +0200 |
commit | d587ffdeac49d80dfce4b6686bd9115f477e97e3 (patch) | |
tree | 1dc687a5152fbeb605b95281f7154e3b96984941 /tests | |
parent | d9cbc7d79f6d53a0d80b4b47da38ed05832b1024 (diff) | |
download | mastodon.py-d587ffdeac49d80dfce4b6686bd9115f477e97e3.tar.gz |
Add new test result cassette
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cassettes/test_url_errors.yaml | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/tests/cassettes/test_url_errors.yaml b/tests/cassettes/test_url_errors.yaml new file mode 100644 index 0000000..25eda96 --- /dev/null +++ b/tests/cassettes/test_url_errors.yaml | |||
@@ -0,0 +1,98 @@ | |||
1 | interactions: | ||
2 | - request: | ||
3 | body: null | ||
4 | headers: | ||
5 | Accept: | ||
6 | - '*/*' | ||
7 | Accept-Encoding: | ||
8 | - gzip, deflate | ||
9 | Authorization: | ||
10 | - Bearer foo | ||
11 | Connection: | ||
12 | - keep-alive | ||
13 | User-Agent: | ||
14 | - python-requests/2.28.1 | ||
15 | method: GET | ||
16 | uri: https://zombo.com/api/v1/instance/ | ||
17 | response: | ||
18 | body: | ||
19 | string: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> | ||
20 | |||
21 | <html><head> | ||
22 | |||
23 | <title>404 Not Found</title> | ||
24 | |||
25 | </head><body> | ||
26 | |||
27 | <h1>Not Found</h1> | ||
28 | |||
29 | <p>The requested URL was not found on this server.</p> | ||
30 | |||
31 | </body></html> | ||
32 | |||
33 | ' | ||
34 | headers: | ||
35 | Connection: | ||
36 | - Keep-Alive | ||
37 | Content-Length: | ||
38 | - '196' | ||
39 | Content-Type: | ||
40 | - text/html; charset=iso-8859-1 | ||
41 | Date: | ||
42 | - Sun, 06 Nov 2022 12:01:50 GMT | ||
43 | Keep-Alive: | ||
44 | - timeout=2, max=500 | ||
45 | Server: | ||
46 | - Apache | ||
47 | status: | ||
48 | code: 404 | ||
49 | message: Not Found | ||
50 | - request: | ||
51 | body: null | ||
52 | headers: | ||
53 | Accept: | ||
54 | - '*/*' | ||
55 | Accept-Encoding: | ||
56 | - gzip, deflate | ||
57 | Authorization: | ||
58 | - Bearer foo | ||
59 | Connection: | ||
60 | - keep-alive | ||
61 | User-Agent: | ||
62 | - python-requests/2.28.1 | ||
63 | method: GET | ||
64 | uri: https://zombo.com/api/v1/instance/ | ||
65 | response: | ||
66 | body: | ||
67 | string: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> | ||
68 | |||
69 | <html><head> | ||
70 | |||
71 | <title>404 Not Found</title> | ||
72 | |||
73 | </head><body> | ||
74 | |||
75 | <h1>Not Found</h1> | ||
76 | |||
77 | <p>The requested URL was not found on this server.</p> | ||
78 | |||
79 | </body></html> | ||
80 | |||
81 | ' | ||
82 | headers: | ||
83 | Connection: | ||
84 | - Keep-Alive | ||
85 | Content-Length: | ||
86 | - '196' | ||
87 | Content-Type: | ||
88 | - text/html; charset=iso-8859-1 | ||
89 | Date: | ||
90 | - Sun, 06 Nov 2022 12:01:51 GMT | ||
91 | Keep-Alive: | ||
92 | - timeout=2, max=500 | ||
93 | Server: | ||
94 | - Apache | ||
95 | status: | ||
96 | code: 404 | ||
97 | message: Not Found | ||
98 | version: 1 | ||