- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for test_list_of_models (0.25 sec)
-
tests/test_response_model_data_filter_no_inheritance.py
def test_filter_second_level_model(): response = client.get("/pets/1") assert response.json() == { "name": "Nibbler", "owner": {"email": "******@****.***"}, } def test_list_of_models(): response = client.get("/pets/") assert response.json() == [ {"name": "Nibbler", "owner": {"email": "******@****.***"}}, {"name": "Zoidberg", "owner": {"email": "******@****.***"}},
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 1.7K bytes - Viewed (0) -
tests/test_response_model_data_filter.py
def test_filter_second_level_model(): response = client.get("/pets/1") assert response.json() == { "name": "Nibbler", "owner": {"email": "******@****.***"}, } def test_list_of_models(): response = client.get("/pets/") assert response.json() == [ {"name": "Nibbler", "owner": {"email": "******@****.***"}}, {"name": "Zoidberg", "owner": {"email": "******@****.***"}},
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 1.7K bytes - Viewed (0)