flask-practice/tests/test_users.py

5 lines
139 B
Python
Raw Permalink Normal View History

def test_list_users(client):
response = client.get('/api/users')
assert response.status_code == 200
assert response.json == []