Coverage for tests/conftest.py: 87%

15 statements  

« prev     ^ index     » next       coverage.py v7.5.4, created at 2024-06-23 20:47 +0000

1import pytest 

2 

3from django_otp_webauthn.models import WebAuthnAttestation, WebAuthnCredential 

4from tests.factories import UserFactory, WebAuthnCredentialFactory 

5 

6 

7@pytest.fixture 

8def credential_model(): 

9 return WebAuthnCredential 

10 

11 

12@pytest.fixture 

13def attestations_model(): 

14 return WebAuthnAttestation 

15 

16 

17@pytest.fixture 

18def credential(): 

19 return WebAuthnCredentialFactory() 

20 

21 

22@pytest.fixture 

23def user(): 

24 return UserFactory()