| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from typing import Any |
||
| 2 | |||
| 3 | import pytest |
||
| 4 | |||
| 5 | from lagom import Container |
||
| 6 | from lagom.experimental.integrations.django import DjangoIntegration |
||
| 7 | |||
| 8 | |||
| 9 | class FakeDjangoManager: |
||
| 10 | pass |
||
| 11 | |||
| 12 | |||
| 13 | class FakeDjangoModel: |
||
| 14 | data: Any |
||
| 15 | objects = FakeDjangoManager() |
||
| 16 | custom_manager = FakeDjangoManager() |
||
| 17 | |||
| 18 | def __init__(self, **kwargs): |
||
| 19 | self.data = kwargs |
||
| 20 | |||
| 21 | |||
| 22 | @pytest.fixture(scope="function") |
||
| 23 | def django_integration(): |
||
| 24 | return DjangoIntegration(Container(), models=[FakeDjangoModel]) |
||
| 25 |