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:
parent
a284960c37
commit
116459796d
@ -26,6 +26,8 @@ from . import list_sources
|
|||||||
from . import list_users
|
from . import list_users
|
||||||
from . import max_project_volume
|
from . import max_project_volume
|
||||||
from . import max_resource_volume
|
from . import max_resource_volume
|
||||||
|
from . import sum_project_volume
|
||||||
|
from . import sum_resource_volume
|
||||||
|
|
||||||
|
|
||||||
class TestListEvents(list_events.TestListEvents):
|
class TestListEvents(list_events.TestListEvents):
|
||||||
@ -88,5 +90,13 @@ class TestMaxProjectVolume(max_project_volume.TestMaxProjectVolume):
|
|||||||
database_connection = 'mongodb://__test__'
|
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__'
|
database_connection = 'mongodb://__test__'
|
||||||
|
@ -26,6 +26,8 @@ import list_sources
|
|||||||
import list_users
|
import list_users
|
||||||
import max_project_volume
|
import max_project_volume
|
||||||
import max_resource_volume
|
import max_resource_volume
|
||||||
|
import sum_project_volume
|
||||||
|
import sum_resource_volume
|
||||||
|
|
||||||
|
|
||||||
class TestListEvents(list_events.TestListEvents):
|
class TestListEvents(list_events.TestListEvents):
|
||||||
@ -78,3 +80,11 @@ class TestMaxProjectVolume(max_project_volume.TestMaxProjectVolume):
|
|||||||
|
|
||||||
class TestMaxResourceVolume(max_resource_volume.TestMaxResourceVolume):
|
class TestMaxResourceVolume(max_resource_volume.TestMaxResourceVolume):
|
||||||
database_connection = 'sqlite://'
|
database_connection = 'sqlite://'
|
||||||
|
|
||||||
|
|
||||||
|
class TestSumProjectVolume(sum_project_volume.TestSumProjectVolume):
|
||||||
|
database_connection = 'sqlite://'
|
||||||
|
|
||||||
|
|
||||||
|
class TestSumResourceVolume(sum_resource_volume.TestSumResourceVolume):
|
||||||
|
database_connection = 'sqlite://'
|
||||||
|
Loading…
Reference in New Issue
Block a user