diff --git a/cookbook/tests/api/docs/reports/tests/pytest.xml b/cookbook/tests/api/docs/reports/tests/pytest.xml index 46143d8da..bd6a1af00 100644 --- a/cookbook/tests/api/docs/reports/tests/pytest.xml +++ b/cookbook/tests/api/docs/reports/tests/pytest.xml @@ -1,19 +1 @@ -arg = ['g1_s1', 403] -request = <FixtureRequest for <Function test_list_permission[arg1]>> - - @pytest.mark.parametrize("arg", [ - ['a_u', 403], - ['g1_s1', 403], - ['u1_s1', 200], - ['a1_s1', 200], - ]) - def test_list_permission(arg, request): - c = request.getfixturevalue(arg[0]) -> assert c.get(reverse(LIST_URL)).status_code == arg[1] -E assert 200 == 403 -E + where 200 = <Response status_code=200, "application/json">.status_code -E + where <Response status_code=200, "application/json"> = <bound method Client.get of <django.test.client.Client object at 0x0000017B4EB67350>>('/api/food/') -E + where <bound method Client.get of <django.test.client.Client object at 0x0000017B4EB67350>> = <django.test.client.Client object at 0x0000017B4EB67350>.get -E + and '/api/food/' = reverse('api:food-list') - -test_api_food.py:90: AssertionError \ No newline at end of file + \ No newline at end of file diff --git a/cookbook/tests/api/docs/reports/tests/tests.html b/cookbook/tests/api/docs/reports/tests/tests.html index e9fb6cf54..7a07d385e 100644 --- a/cookbook/tests/api/docs/reports/tests/tests.html +++ b/cookbook/tests/api/docs/reports/tests/tests.html @@ -7,7 +7,7 @@

tests.html

-

Report generated on 18-Aug-2024 at 12:56:14 by pytest-html +

Report generated on 18-Aug-2024 at 14:19:56 by pytest-html v4.1.1

Environment

@@ -61,7 +61,7 @@

Summary

-

4 tests took 00:01:48.

+

5 tests took 00:02:19.

(Un)check the boxes to filter the results.