Completed
Push — master ( 99fd3f...bf6bc6 )
by Joe
9s
created

comics.tests   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A HomeTests.test_home_title() 0 5 1
A DashboardTests.test_dashboard() 0 4 1
1
from django.test import TestCase
0 ignored issues
show
Coding Style introduced by
This module should have a docstring.

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.

Loading history...
2
3
4
class HomeTests(TestCase):
0 ignored issues
show
Unused Code introduced by
The variable __class__ seems to be unused.
Loading history...
5
    """Tests for the home page."""
6
    def test_home_title(self):
7
        """The title should have "Nibble" in it."""
8
        response = self.client.get('/')
9
10
        self.assertIn('<title>Nibble', str(response.content))
11
12
13
class DashboardTests(TestCase):
0 ignored issues
show
Unused Code introduced by
The variable __class__ seems to be unused.
Loading history...
14
    """Tests for the dasboard."""
15
    def test_dashboard(self):
0 ignored issues
show
Coding Style introduced by
This method should have a docstring.

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.

Loading history...
16
        response = self.client.get('/dashboard/')
17
18
        self.assertEqual(response.status_code, 200)
19