mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-04 06:48:27 -04:00
e41c0f4107
- @unsupported now only accepts a single target and demands a reason for not running the test. - @exclude also demands an exclusion reason - Greatly expanded @testing.requires.<feature>, eliminating many decorators in the suite and signficantly easing integration of multi-driver support. - New ORM test base class, and a featureful base for mapped tests - Usage of 'global' for shared setup going away, * imports as well
18 lines
399 B
Python
18 lines
399 B
Python
from testlib import testing
|
|
|
|
|
|
class AltEngineTest(testing.TestBase):
|
|
engine = None
|
|
|
|
def setUpAll(self):
|
|
type(self).engine = self.create_engine()
|
|
testing.TestBase.setUpAll(self)
|
|
|
|
def tearDownAll(self):
|
|
testing.TestBase.tearDownAll(self)
|
|
self.engine.dispose()
|
|
type(self).engine = None
|
|
|
|
def create_engine(self):
|
|
raise NotImplementedError
|