add docstrings
This commit is contained in:
@@ -4,7 +4,7 @@ from django.test import Client
|
||||
|
||||
|
||||
def test_server_should_answer_200():
|
||||
""" test the server's response """
|
||||
""" test the server's response on home """
|
||||
c = Client()
|
||||
url = reverse('index')
|
||||
response = c.get(url)
|
||||
@@ -12,7 +12,7 @@ def test_server_should_answer_200():
|
||||
|
||||
|
||||
def test_home_url():
|
||||
""" test the home page"""
|
||||
""" test the home url """
|
||||
url = reverse('index')
|
||||
assert resolve(url).view_name == 'index'
|
||||
assert resolve(url).func, index()
|
||||
Reference in New Issue
Block a user