kopia lustrzana https://github.com/halcy/Mastodon.py
Switch admin stats test to path match
rodzic
d51af603a2
commit
cf1ec39fce
|
@ -34,7 +34,7 @@ interactions:
|
|||
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-WiDzKVOhti4HVtIse/Oj6w=='';
|
||||
style-src ''self'' http://localhost:3000 ''nonce-pLNIu4cTGeZNShQzE6Mr6A=='';
|
||||
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
|
||||
|
@ -60,9 +60,9 @@ interactions:
|
|||
X-Permitted-Cross-Domain-Policies:
|
||||
- none
|
||||
X-Request-Id:
|
||||
- 07db387f-9f34-4f15-8635-21a9850d96b3
|
||||
- 9bb14b28-e333-4622-8543-72e227798142
|
||||
X-Runtime:
|
||||
- '0.082628'
|
||||
- '0.045234'
|
||||
X-XSS-Protection:
|
||||
- 1; mode=block
|
||||
status:
|
||||
|
@ -93,7 +93,7 @@ interactions:
|
|||
response:
|
||||
body:
|
||||
string: '[{"key":"languages","data":[]},{"key":"sources","data":[]},{"key":"servers","data":[]},{"key":"space_usage","data":[{"key":"postgresql","human_key":"PostgreSQL","value":"16610095","unit":"bytes","human_value":"15.8
|
||||
MB"},{"key":"redis","human_key":"Redis","value":"1569560","unit":"bytes","human_value":"1.5
|
||||
MB"},{"key":"redis","human_key":"Redis","value":"1578304","unit":"bytes","human_value":"1.51
|
||||
MB"},{"key":"media","human_key":"Media storage","value":"0","unit":"bytes","human_value":"0
|
||||
Bytes"}]},{"key":"instance_accounts","data":[]},{"key":"instance_languages","data":[]}]'
|
||||
headers:
|
||||
|
@ -102,7 +102,7 @@ interactions:
|
|||
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-8BlKJ/uomeClHGm07flBKg=='';
|
||||
style-src ''self'' http://localhost:3000 ''nonce-lYcOOZdF8g1x01AuzWUDlw=='';
|
||||
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
|
||||
|
@ -112,7 +112,7 @@ interactions:
|
|||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
ETag:
|
||||
- W/"2d84840d6cd38577ff002ff961df6a42"
|
||||
- W/"46fcf41cc9d3511d163da389677e3711"
|
||||
Referrer-Policy:
|
||||
- strict-origin-when-cross-origin
|
||||
Transfer-Encoding:
|
||||
|
@ -128,9 +128,9 @@ interactions:
|
|||
X-Permitted-Cross-Domain-Policies:
|
||||
- none
|
||||
X-Request-Id:
|
||||
- 3837d91b-a8b1-4fb9-a04b-2e85c1d70cd6
|
||||
- 81474146-c231-4e87-bcf2-4c8c9e0820a6
|
||||
X-Runtime:
|
||||
- '0.029226'
|
||||
- '0.021599'
|
||||
X-XSS-Protection:
|
||||
- 1; mode=block
|
||||
status:
|
||||
|
@ -164,7 +164,7 @@ interactions:
|
|||
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-ei/p9PPEqvg9vtmL9FKIAQ=='';
|
||||
style-src ''self'' http://localhost:3000 ''nonce-2xg25WaYc3aKM+kQs5rcjw=='';
|
||||
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
|
||||
|
@ -190,9 +190,9 @@ interactions:
|
|||
X-Permitted-Cross-Domain-Policies:
|
||||
- none
|
||||
X-Request-Id:
|
||||
- 9804c083-8453-4e71-ae5e-602db2e2a232
|
||||
- 6779b4e9-ede8-4de4-84c9-fcc3458a5e53
|
||||
X-Runtime:
|
||||
- '0.174288'
|
||||
- '0.135966'
|
||||
X-XSS-Protection:
|
||||
- 1; mode=block
|
||||
status:
|
||||
|
|
|
@ -137,7 +137,7 @@ def test_admin_domain_blocks(api2):
|
|||
api2.admin_delete_domain_block(block2)
|
||||
assert not block3.id in map(lambda x: x.id, api2.admin_domain_blocks())
|
||||
|
||||
@pytest.mark.vcr()
|
||||
@pytest.mark.vcr(match_on=['path'])
|
||||
def test_admin_stats(api2):
|
||||
assert api2.admin_measures(
|
||||
datetime(2020, 10, 10) - timedelta(hours=24*5),
|
||||
|
|
Ładowanie…
Reference in New Issue