flask-practice/tests/test_users.py

5 lines
139 B
Python
Raw Permalink Normal View History

2022-03-09 16:47:35 +00:00
def test_list_users(client):
response = client.get('/api/users')
assert response.status_code == 200
assert response.json == []