Commit ceab1c33 authored by Romain Loth's avatar Romain Loth

unittests: new session style for tests_08*

parent 1263684b
#!/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
......
#!/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):
......
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