api: run sum unit tests against SQL backend too

Change-Id: Icefe211bebd945716e64de9cb2b248fcbf6dd521
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2013-03-29 11:38:22 +01:00
parent a284960c37
commit 116459796d
4 changed files with 21 additions and 1 deletions

View File

@ -26,6 +26,8 @@ from . import list_sources
from . import list_users
from . import max_project_volume
from . import max_resource_volume
from . import sum_project_volume
from . import sum_resource_volume
class TestListEvents(list_events.TestListEvents):
@ -88,5 +90,13 @@ class TestMaxProjectVolume(max_project_volume.TestMaxProjectVolume):
database_connection = 'mongodb://__test__'
class TestMaxProjectVolume(max_resource_volume.TestMaxResourceVolume):
class TestMaxResourceVolume(max_resource_volume.TestMaxResourceVolume):
database_connection = 'mongodb://__test__'
class TestSumProjectVolume(sum_project_volume.TestSumProjectVolume):
database_connection = 'mongodb://__test__'
class TestSumResourceVolume(sum_resource_volume.TestSumResourceVolume):
database_connection = 'mongodb://__test__'

View File

@ -26,6 +26,8 @@ import list_sources
import list_users
import max_project_volume
import max_resource_volume
import sum_project_volume
import sum_resource_volume
class TestListEvents(list_events.TestListEvents):
@ -78,3 +80,11 @@ class TestMaxProjectVolume(max_project_volume.TestMaxProjectVolume):
class TestMaxResourceVolume(max_resource_volume.TestMaxResourceVolume):
database_connection = 'sqlite://'
class TestSumProjectVolume(sum_project_volume.TestSumProjectVolume):
database_connection = 'sqlite://'
class TestSumResourceVolume(sum_resource_volume.TestSumResourceVolume):
database_connection = 'sqlite://'