From 897b3a23cf4177675f0769de68f08ad8c4faf335 Mon Sep 17 00:00:00 2001 From: halcy Date: Thu, 17 Nov 2022 23:25:41 +0200 Subject: add server datetime retriever, fix tests some more --- tests/cassettes/test_server_time.yaml | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 tests/cassettes/test_server_time.yaml (limited to 'tests/cassettes') diff --git a/tests/cassettes/test_server_time.yaml b/tests/cassettes/test_server_time.yaml new file mode 100644 index 0000000..a94b3aa --- /dev/null +++ b/tests/cassettes/test_server_time.yaml @@ -0,0 +1,63 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN + Connection: + - keep-alive + User-Agent: + - tests/v311 + method: HEAD + uri: http://localhost:3000/ + response: + body: + string: '' + headers: + Cache-Control: + - max-age=0, public + Content-Security-Policy: + - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src + ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; + style-src ''self'' http://localhost:3000 ''nonce-2+ENJYUdR8BJrDBHHtp0Iw==''; + media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' + https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' + data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 + ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' + ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; + worker-src ''self'' blob: http://localhost:3000' + Content-Type: + - text/html; charset=utf-8 + Date: + - Thu, 17 Nov 2022 20:42:32 GMT + ETag: + - W/"9bb3b62cb5fb0388ee3b972a95ee0633" + Referrer-Policy: + - origin + Set-Cookie: + - _mastodon_session=S%2F25BrjlEMmL38vg%2FCMcsvHcd8%2BW45HbUkMBwTiqvTgNnzQ%2FhKVYvwORXtqZ5IgNVXl7gMcJ7SxG9y1ks1LN%2Bw3rvgb%2FxECYIlBWY7C3m%2B0aWsWG%2F8iNJsZfHvXlEY3xQxDzenmA2Mw35wRyPiT%2FSUJvwM9I5RtY1iUDsaCPzUbhGFcw3aoGUTdeag37%2FfGsJuG%2F9JsR0jj%2FCgWAlokV8%2Freu8XPUBFFDmjV9SdyFfzsIvP8%2Bd7cAebpCpaqp2DPngNSm8k6xgqXCuMCqpNc09slWQHzfDVqtWPTCMc95SmGpO0DOethwA44F8WbsfX1x5HGml8%3D--x1Ipi2xI5V5ct712--m3eM1Vf8f4oi87fjm0LEvw%3D%3D; + path=/; HttpOnly; SameSite=Lax + Vary: + - Accept + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - SAMEORIGIN + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 9d6b0c84-dff7-481a-a975-c669b8469976 + X-Runtime: + - '0.691929' + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 -- cgit v1.2.3