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
8a15539c
Commit
8a15539c
authored
Sep 01, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unittests: new session style for tests_08*
parent
bfc06fee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
tests_080_users.py
unittests/tests_080_users.py
+5
-4
tests_081_projects.py
unittests/tests_081_projects.py
+4
-1
No files found.
unittests/tests_080_users.py
View file @
8a15539c
#!/usr/bin/python3 env
# provides GargTestRunner.testdb_session
from
unittests.framework
import
GargTestRunner
from
Django
import
TestCase
from
gargantext.util.db
import
session
from
django
import
TestCase
class
UserRecipes
(
TestCase
):
def
setUp
(
self
):
#before any test
self
.
session
=
GargTestRunner
.
testdb_
session
self
.
session
=
session
self
.
client
=
Client
()
def
tearDown
(
self
):
#after any test
...
...
unittests/tests_081_projects.py
View file @
8a15539c
#!/usr/bin/python3 env
from
django.test
import
TestCase
class
ProjectsRecipes
(
TestCase
):
def
setUp
(
self
):
#before anytest
self
.
session
=
GargTestRunner
.
testdb_
session
self
.
session
=
session
self
.
client
=
Client
()
def
tearDown
(
self
):
...
...
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