Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
60679e31
Commit
60679e31
authored
Jul 21, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[COSMETICS] Meeting.
parent
187b9126
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
main.py
gargantext/util/toolchain/main.py
+0
-1
tests_010_basic.py
unittests/tests_010_basic.py
+1
-1
tests_070_routes.py
unittests/tests_070_routes.py
+6
-1
No files found.
gargantext/util/toolchain/main.py
View file @
60679e31
...
...
@@ -176,7 +176,6 @@ def parse_extract_indexhyperdata(corpus):
session
.
commit
()
@
shared_task
def
recount
(
corpus
):
"""
...
...
unittests/tests_010_basic.py
View file @
60679e31
...
...
@@ -12,7 +12,7 @@ class NodeTestCase(TestCase):
self
.
new_node
=
nodes
.
Node
()
def
test_010_node_has_id
(
self
):
'''n
ew_node
.id'''
'''n
ode_1000
.id'''
self
.
assertEqual
(
self
.
node_1000
.
id
,
1000
)
def
test_011_node_write
(
self
):
...
...
unittests/tests_070_routes.py
View file @
60679e31
...
...
@@ -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_071
a
_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" '''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment