File: test_entity_notificationpolicy.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 (78 lines) | stat: -rw-r--r-- 2,034 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
interactions:
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate, br
      Authorization:
      - DUMMY
      Connection:
      - keep-alive
      User-Agent:
      - mastodonpy
    method: GET
    uri: https://mastodon.social/api/v2/notifications/policy
  response:
    body:
      string: '{"for_not_following": "accept", "for_not_followers": "accept", "for_new_accounts":
        "accept", "for_private_mentions": "accept", "for_limited_accounts": "filter",
        "summary": {"pending_requests_count": 0, "pending_notifications_count": 0}}'
    headers:
      Connection:
      - keep-alive
      Date:
      - Fri, 15 Aug 2025 20:19:18 GMT
      Strict-Transport-Security:
      - max-age=31557600
      Vary:
      - Authorization, Origin, Accept-Encoding
      X-Cache:
      - MISS, MISS, MISS
      X-Cache-Hits:
      - 0, 0, 0
      X-Served-By:
      - cache-fra-eddf8230164-FRA, cache-fra-eddf8230053-FRA, cache-hel1410029-HEL
      X-Timer:
      - S1755289159.557066,VS0,VE153
      accept-ranges:
      - none
      alt-svc:
      - h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
      cache-control:
      - private, no-store
      content-length:
      - '222'
      content-security-policy:
      - default-src 'none'; frame-ancestors 'none'; form-action 'none'
      content-type:
      - application/json; charset=utf-8
      etag:
      - W/"29586df4e9cf1e205686f64eb490e29e"
      referrer-policy:
      - same-origin
      transfer-encoding:
      - chunked
      via:
      - 1.1 varnish, 1.1 varnish, 1.1 varnish
      x-content-type-options:
      - nosniff
      x-frame-options:
      - DENY
      x-ratelimit-limit:
      - '300'
      x-ratelimit-remaining:
      - '218'
      x-ratelimit-reset:
      - '2025-08-15T20:20:00.676731Z'
      x-request-id:
      - 2a69dc346d414172e7c4cd0116ee16e6
      x-runtime:
      - '0.050652'
      x-xss-protection:
      - '0'
    status:
      code: 200
      message: OK
version: 1