diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-27 03:02:22 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-27 03:02:22 +0200 |
commit | cf1ec39fce10151247a75560e581d2b19cb70a68 (patch) | |
tree | 28df8a233acf4a6afec99ebdb9fb7bb94346fcb5 /tests/test_admin.py | |
parent | d51af603a286199f6e21b803e002af082a4f598c (diff) | |
download | mastodon.py-cf1ec39fce10151247a75560e581d2b19cb70a68.tar.gz |
Switch admin stats test to path match
Diffstat (limited to 'tests/test_admin.py')
-rw-r--r-- | tests/test_admin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_admin.py b/tests/test_admin.py index f0aa1fc..d937ed8 100644 --- a/tests/test_admin.py +++ b/tests/test_admin.py | |||
@@ -137,7 +137,7 @@ def test_admin_domain_blocks(api2): | |||
137 | api2.admin_delete_domain_block(block2) | 137 | api2.admin_delete_domain_block(block2) |
138 | assert not block3.id in map(lambda x: x.id, api2.admin_domain_blocks()) | 138 | assert not block3.id in map(lambda x: x.id, api2.admin_domain_blocks()) |
139 | 139 | ||
140 | @pytest.mark.vcr() | 140 | @pytest.mark.vcr(match_on=['path']) |
141 | def test_admin_stats(api2): | 141 | def test_admin_stats(api2): |
142 | assert api2.admin_measures( | 142 | assert api2.admin_measures( |
143 | datetime(2020, 10, 10) - timedelta(hours=24*5), | 143 | datetime(2020, 10, 10) - timedelta(hours=24*5), |