| Conditions | 2 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from django.conf import settings |
||
| 29 | @override_settings(DJOSER=dict(settings.DJOSER, **{ |
||
| 30 | 'SERIALIZERS': {'fake': 'djoser.serializers.TokenSerializer'} |
||
| 31 | })) |
||
| 32 | def test_djoser_serializer_setting_overriden(): |
||
| 33 | from djoser.conf import settings as djoser_settings |
||
| 34 | assert djoser_settings.SERIALIZERS.user.__name__, 'TokenSerializer' |
||
| 35 |
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.