Improve users table sanitization

This commit is contained in:
2020-09-17 17:35:11 +02:00
parent 7573e9ab41
commit 5a5486b751
5 changed files with 57 additions and 40 deletions

View File

@@ -17,8 +17,6 @@ def test_registration():
"device_type": 1,
"device_id": token_hex(16),
"city_id": 5,
"access_key": token_hex(16),
"badge": 1,
}
response = client.post("/register", json=user)
assert response.status_code == 200