| Conditions | 1 | 
| Total Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | import pytest  | 
            ||
| 16 | @pytest.fixture  | 
            ||
| 17 | def test_inactive_user(db):  | 
            ||
| 18 | from django.contrib.auth import get_user_model  | 
            ||
| 19 | User = get_user_model()  | 
            ||
| 20 |     user_kwargs = { | 
            ||
| 21 | User.USERNAME_FIELD: 'test',  | 
            ||
| 22 | 'email': 'test@localhost',  | 
            ||
| 23 | 'password': 'testing123',  | 
            ||
| 24 | 'is_active': False,  | 
            ||
| 25 | }  | 
            ||
| 26 | return User.objects.create_user(**user_kwargs)  | 
            ||
| 27 | 
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.