disable follow request emails on test user
This commit is contained in:
pare
9227528a15
commit
2abb1f1715
S'han modificat 2 arxius amb 19 adicions i 3 eliminacions
|
@ -1,3 +1,4 @@
|
|||
DELETE FROM settings WHERE id = 1234567890123456;
|
||||
DELETE FROM oauth_access_tokens WHERE id = 6543210987654321;
|
||||
DELETE FROM oauth_access_tokens WHERE id = 1234567890123456;
|
||||
DELETE FROM oauth_applications WHERE id = 1234567890123456;
|
||||
|
@ -84,3 +85,21 @@ INSERT INTO oauth_access_tokens (
|
|||
1,
|
||||
now()
|
||||
);
|
||||
|
||||
INSERT INTO settings (
|
||||
id,
|
||||
var,
|
||||
value,
|
||||
thing_type,
|
||||
thing_id,
|
||||
created_at,
|
||||
updated_at
|
||||
) VALUES (
|
||||
1234567890123456,
|
||||
'notification_emails',
|
||||
E'---\nfollow_request: false',
|
||||
'User',
|
||||
1234567890123456,
|
||||
now(),
|
||||
now()
|
||||
)
|
||||
|
|
|
@ -6,9 +6,6 @@ def test_follow_requests(api):
|
|||
assert isinstance(reqs, list)
|
||||
|
||||
|
||||
# warning: these two send emails, which open in letter opener by default
|
||||
# so if you are re-recording a cassette for either of these mastodon will
|
||||
# probably open a browser window for you, which you can safely close
|
||||
@pytest.mark.vcr()
|
||||
def test_follow_request_authorize(api, api2):
|
||||
api2.account_follow(1234567890123456)
|
||||
|
|
Loading…
Referencia en una nova incidència