for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from django.views.generic.base import ContextMixin
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
class SomeClass: def some_method(self): """Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.
from templated_mail.mail import BaseEmailMessage
class MockMailContext(ContextMixin):
__class__
def get_context_data(self, **kwargs):
context = super(MockMailContext, self).get_context_data(**kwargs)
context['thing'] = 42
return context
class MockMail(BaseEmailMessage, MockMailContext):
pass
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.