Merge branch 'patch-1' into 'develop'

docs(contributing.rst): fix parameter value in example test code

See merge request funkwhale/funkwhale!1261
environments/review-docs-devel-1399dq/deployments/6607
Agate 2021-01-12 10:17:15 +01:00
commit 3e62f8b361
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -687,7 +687,7 @@ useful when testing components that depend on each other:
def test_downgrade_not_superuser_skips_email(factories, mocker):
mocked_notify = mocker.patch('funkwhale_api.myapp.notifications.notify')
user = factories['users.User'](is_superuser=True)
user = factories['users.User'](is_superuser=False)
users.downgrade_user(user)
# here, we ensure no email was sent