for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from django.test import TestCase
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.
class HomeTests(TestCase):
__class__
"""Tests for the home page."""
def test_home_title(self):
"""The title should have "Nibble" in it."""
response = self.client.get('/')
self.assertIn('<title>Nibble', str(response.content))
class DashboardTests(TestCase):
"""Tests for the dasboard."""
def test_dashboard(self):
response = self.client.get('/dashboard/')
self.assertEqual(response.status_code, 200)
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.