disable follow request emails on test user

This commit is contained in:
codl 2017-11-30 02:05:09 +01:00
pare 9227528a15
commit 2abb1f1715
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 6CD7C8891ED1233A
S'han modificat 2 arxius amb 19 adicions i 3 eliminacions

Veure arxiu

@ -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 = 6543210987654321;
DELETE FROM oauth_access_tokens WHERE id = 1234567890123456; DELETE FROM oauth_access_tokens WHERE id = 1234567890123456;
DELETE FROM oauth_applications WHERE id = 1234567890123456; DELETE FROM oauth_applications WHERE id = 1234567890123456;
@ -84,3 +85,21 @@ INSERT INTO oauth_access_tokens (
1, 1,
now() 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()
)

Veure arxiu

@ -6,9 +6,6 @@ def test_follow_requests(api):
assert isinstance(reqs, list) 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() @pytest.mark.vcr()
def test_follow_request_authorize(api, api2): def test_follow_request_authorize(api, api2):
api2.account_follow(1234567890123456) api2.account_follow(1234567890123456)