| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import pytest |
||
| 2 | from rest_framework.test import APIClient |
||
| 3 | |||
| 4 | pytest_plugins = 'tests.factories' |
||
| 5 | |||
| 6 | |||
| 7 | @pytest.fixture() |
||
| 8 | def client() -> APIClient: |
||
| 9 | return APIClient() |
||
| 10 | |||
| 11 | |||
| 12 | @pytest.fixture() |
||
| 13 | def auth_client(client, user) -> client: |
||
| 14 | client.force_login(user) |
||
| 15 | return client |
||
| 16 |