From 3bb1e83c8e0263f32d7ff79a9dfda6e519bc379f Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 22 Mar 2013 16:25:36 +0100 Subject: [PATCH] api: run list_sources tests on SQL and Mongo backend Change-Id: I59d27548b66c7681ae331a3f342d8277a258f4c2 Signed-off-by: Julien Danjou --- tests/api/v1/{test_list_sources.py => list_sources.py} | 0 tests/api/v1/test_impl_mongodb.py | 5 +++++ tests/api/v1/test_impl_sqlalchemy.py | 5 +++++ 3 files changed, 10 insertions(+) rename tests/api/v1/{test_list_sources.py => list_sources.py} (100%) diff --git a/tests/api/v1/test_list_sources.py b/tests/api/v1/list_sources.py similarity index 100% rename from tests/api/v1/test_list_sources.py rename to tests/api/v1/list_sources.py diff --git a/tests/api/v1/test_impl_mongodb.py b/tests/api/v1/test_impl_mongodb.py index 705e56108..1f6cb6c72 100644 --- a/tests/api/v1/test_impl_mongodb.py +++ b/tests/api/v1/test_impl_mongodb.py @@ -22,6 +22,7 @@ from . import list_events from . import list_meters from . import list_projects from . import list_resources +from . import list_sources from . import list_users @@ -75,3 +76,7 @@ class TestListResources(list_resources.TestListResources): class TestListResourcesMetaquery(list_resources.TestListResourcesMetaquery): database_connection = 'test://' + + +class TestListSource(list_sources.TestListSource): + database_connection = 'test://' diff --git a/tests/api/v1/test_impl_sqlalchemy.py b/tests/api/v1/test_impl_sqlalchemy.py index 93c711c80..c59d26b37 100644 --- a/tests/api/v1/test_impl_sqlalchemy.py +++ b/tests/api/v1/test_impl_sqlalchemy.py @@ -22,6 +22,7 @@ import list_events import list_meters import list_projects import list_resources +import list_sources import list_users @@ -63,3 +64,7 @@ class TestListEmptyResources(list_resources.TestListEmptyResources): class TestListResources(list_resources.TestListResources): database_connection = 'sqlite://' + + +class TestListSource(list_sources.TestListSource): + database_connection = 'sqlite://'