File: test_preferences.yaml

package info (click to toggle)
python-mastodon 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,836 kB
  • sloc: python: 9,438; makefile: 206; sql: 98; sh: 27
file content (61 lines) | stat: -rw-r--r-- 1,840 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
interactions:
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate, br
      Authorization:
      - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
      Connection:
      - keep-alive
      User-Agent:
      - tests/v311
    method: GET
    uri: http://localhost:3000/api/v1/preferences
  response:
    body:
      string: '{"posting:default:visibility":"public","posting:default:sensitive":false,"posting:default:language":"ja","reading:expand:media":"default","reading:expand:spoilers":false,"reading:autoplay:gifs":false}'
    headers:
      Content-Length:
      - '200'
      cache-control:
      - private, no-store
      content-security-policy:
      - default-src 'none'; frame-ancestors 'none'; form-action 'none'
      content-type:
      - application/json; charset=utf-8
      etag:
      - W/"8fd4bab80a0d01081d346ad7dd8a0070"
      referrer-policy:
      - strict-origin-when-cross-origin
      server-timing:
      - cache_read.active_support;dur=0.03, sql.active_record;dur=0.73, cache_generate.active_support;dur=1.02,
        cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.16,
        start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.20,
        process_action.action_controller;dur=26.83
      vary:
      - Authorization, Origin
      x-content-type-options:
      - nosniff
      x-frame-options:
      - SAMEORIGIN
      x-permitted-cross-domain-policies:
      - none
      x-ratelimit-limit:
      - '300'
      x-ratelimit-remaining:
      - '299'
      x-ratelimit-reset:
      - '2025-08-17T18:45:00.372384Z'
      x-request-id:
      - ec626c02-6796-4f23-9a88-1fa53aab9750
      x-runtime:
      - '0.046477'
      x-xss-protection:
      - '0'
    status:
      code: 200
      message: OK
version: 1