From 955ffa901d026055774e1a661945a270903f76a5 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 4 Mar 2013 16:54:40 +0100 Subject: [PATCH] api: run list_projects tests against SQL backend too Change-Id: Id656537f74ebb636147fb8e6762a65652ad5c151 Signed-off-by: Julien Danjou --- tests/api/v1/{test_list_projects.py => list_projects.py} | 0 tests/api/v1/test_impl_mongodb.py | 9 +++++++++ tests/api/v1/test_impl_sqlalchemy.py | 9 +++++++++ 3 files changed, 18 insertions(+) rename tests/api/v1/{test_list_projects.py => list_projects.py} (100%) diff --git a/tests/api/v1/test_list_projects.py b/tests/api/v1/list_projects.py similarity index 100% rename from tests/api/v1/test_list_projects.py rename to tests/api/v1/list_projects.py diff --git a/tests/api/v1/test_impl_mongodb.py b/tests/api/v1/test_impl_mongodb.py index 3f2966ef8..a20c0ee78 100644 --- a/tests/api/v1/test_impl_mongodb.py +++ b/tests/api/v1/test_impl_mongodb.py @@ -19,6 +19,7 @@ """ from . import list_events from . import list_meters +from . import list_projects from . import list_users @@ -48,3 +49,11 @@ class TestListEmptyUsers(list_users.TestListEmptyUsers): class TestListUsers(list_users.TestListUsers): database_connection = 'test://' + + +class TestListEmptyProjects(list_projects.TestListEmptyProjects): + database_connection = 'test://' + + +class TestListProjects(list_projects.TestListProjects): + database_connection = 'test://' diff --git a/tests/api/v1/test_impl_sqlalchemy.py b/tests/api/v1/test_impl_sqlalchemy.py index fe8b6c3e7..08f70e1a5 100644 --- a/tests/api/v1/test_impl_sqlalchemy.py +++ b/tests/api/v1/test_impl_sqlalchemy.py @@ -19,6 +19,7 @@ """ from . import list_events from . import list_meters +from . import list_projects from . import list_users @@ -40,3 +41,11 @@ class TestListEmptyUsers(list_users.TestListEmptyUsers): class TestListUsers(list_users.TestListUsers): database_connection = 'sqlite://' + + +class TestListEmptyProjects(list_projects.TestListEmptyProjects): + database_connection = 'sqlite://' + + +class TestListProjects(list_projects.TestListProjects): + database_connection = 'sqlite://'