[tests] Happy path tests for email API

This commit is contained in:
maike 2020-07-09 03:07:12 +02:00 committed by dl6tom
parent d7b71d12ae
commit 023f0c5a46
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,10 @@
# Copyright (C) 2020 by Maike <maike@systemli.org>
#
# SPDX-License-Identifier: 0BSD
from fastapi import status
def test_email_create_unauthorized(client, hood_id):
response = client.post('/api/hoods/%d/email/' % hood_id)
assert response.status_code == status.HTTP_401_UNAUTHORIZED