"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/test_mysql.py" between
roundup-1.6.1.tar.gz and roundup-2.0.0.tar.gz

About: Roundup is an highly customisable issue-tracking system with command-line, web and e-mail interfaces (written in Python).

test_mysql.py  (roundup-1.6.1):test_mysql.py  (roundup-2.0.0)
skipping to change at line 24 skipping to change at line 24
# FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
import unittest, os, shutil, time, imp import unittest, os, shutil, time, imp
import pytest import pytest
from roundup.hyperdb import DatabaseError from roundup.hyperdb import DatabaseError
from roundup.backends import get_backend, have_backend from roundup.backends import get_backend, have_backend
from db_test_base import DBTest, ROTest, config, SchemaTest, ClassicInitTest from .db_test_base import DBTest, ROTest, config, SchemaTest, ClassicInitTest
from db_test_base import ConcurrentDBTest, HTMLItemTest, FilterCacheTest from .db_test_base import ConcurrentDBTest, HTMLItemTest, FilterCacheTest
from db_test_base import SpecialActionTest from .db_test_base import SpecialActionTest
from .rest_common import TestCase as RestTestCase
class mysqlOpener: class mysqlOpener:
if have_backend('mysql'): if have_backend('mysql'):
module = get_backend('mysql') module = get_backend('mysql')
def setUp(self): def setUp(self):
self.module.db_nuke(config) self.module.db_nuke(config)
def tearDown(self): def tearDown(self):
self.db.close() self.db.close()
skipping to change at line 116 skipping to change at line 117
@skip_mysql @skip_mysql
class mysqlFilterCacheTest(mysqlOpener, FilterCacheTest, unittest.TestCase): class mysqlFilterCacheTest(mysqlOpener, FilterCacheTest, unittest.TestCase):
backend = 'mysql' backend = 'mysql'
def setUp(self): def setUp(self):
mysqlOpener.setUp(self) mysqlOpener.setUp(self)
FilterCacheTest.setUp(self) FilterCacheTest.setUp(self)
def tearDown(self): def tearDown(self):
FilterCacheTest.tearDown(self) FilterCacheTest.tearDown(self)
self.nuke_database() self.nuke_database()
from session_common import SessionTest from .session_common import SessionTest
@skip_mysql @skip_mysql
class mysqlSessionTest(mysqlOpener, SessionTest, unittest.TestCase): class mysqlSessionTest(mysqlOpener, SessionTest, unittest.TestCase):
def setUp(self): def setUp(self):
mysqlOpener.setUp(self) mysqlOpener.setUp(self)
SessionTest.setUp(self) SessionTest.setUp(self)
def tearDown(self): def tearDown(self):
SessionTest.tearDown(self) SessionTest.tearDown(self)
mysqlOpener.tearDown(self) mysqlOpener.tearDown(self)
@skip_mysql @skip_mysql
skipping to change at line 138 skipping to change at line 139
unittest.TestCase): unittest.TestCase):
backend = 'mysql' backend = 'mysql'
def setUp(self): def setUp(self):
mysqlOpener.setUp(self) mysqlOpener.setUp(self)
SpecialActionTest.setUp(self) SpecialActionTest.setUp(self)
def tearDown(self): def tearDown(self):
SpecialActionTest.tearDown(self) SpecialActionTest.tearDown(self)
mysqlOpener.tearDown(self) mysqlOpener.tearDown(self)
@skip_mysql
class mysqlRestTest (RestTestCase, unittest.TestCase):
backend = 'mysql'
# vim: set et sts=4 sw=4 : # vim: set et sts=4 sw=4 :
 End of changes. 3 change blocks. 
4 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)