Commit f4a4030b authored by delanoe's avatar delanoe

[COSMETICS] Meeting.

parent 31226867
......@@ -176,7 +176,6 @@ def parse_extract_indexhyperdata(corpus):
session.commit()
@shared_task
def recount(corpus):
"""
......
......@@ -12,7 +12,7 @@ class NodeTestCase(TestCase):
self.new_node = nodes.Node()
def test_010_node_has_id(self):
'''new_node.id'''
'''node_1000.id'''
self.assertEqual(self.node_1000.id, 1000)
def test_011_node_write(self):
......
......@@ -40,13 +40,18 @@ class RoutesChecker(TestCase):
self.a_node_id = new_project.id
print("created a project with id: %i" % new_project.id)
def test_071_get_front_page(self):
def test_071a_get_front_page(self):
''' get the front page / '''
front_response = self.client.get('/')
self.assertEqual(front_response.status_code, 200)
self.assertIn('text/html', front_response.get('Content-Type'))
# on suppose que la page contiendra toujours ce titre
self.assertIn(b'<h1>Gargantext</h1>', front_response.content)
def test_071b_get_inexisting_page(self):
''' get the inexisting page /foo '''
front_response = self.client.get('/foo')
self.assertEqual(front_response.status_code, 404)
def test_072_get_api_nodes(self):
''' get "/api/nodes" '''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment