diff --git a/tests/api/v1/test_compute_duration_by_resource.py b/tests/api/v1/compute_duration_by_resource.py similarity index 100% rename from tests/api/v1/test_compute_duration_by_resource.py rename to tests/api/v1/compute_duration_by_resource.py diff --git a/tests/api/v1/test_impl_mongodb.py b/tests/api/v1/test_impl_mongodb.py index a20c0ee78..c78c9e413 100644 --- a/tests/api/v1/test_impl_mongodb.py +++ b/tests/api/v1/test_impl_mongodb.py @@ -17,6 +17,7 @@ # under the License. """Test API against MongoDB. """ +from . import compute_duration_by_resource as cdbr from . import list_events from . import list_meters from . import list_projects @@ -57,3 +58,7 @@ class TestListEmptyProjects(list_projects.TestListEmptyProjects): class TestListProjects(list_projects.TestListProjects): database_connection = 'test://' + + +class TestComputeDurationByResource(cdbr.TestComputeDurationByResource): + database_connection = 'test://' diff --git a/tests/api/v1/test_impl_sqlalchemy.py b/tests/api/v1/test_impl_sqlalchemy.py index 08f70e1a5..454a24fce 100644 --- a/tests/api/v1/test_impl_sqlalchemy.py +++ b/tests/api/v1/test_impl_sqlalchemy.py @@ -17,6 +17,7 @@ # under the License. """Test API against SQLAlchemy. """ +from . import compute_duration_by_resource as cdbr from . import list_events from . import list_meters from . import list_projects @@ -49,3 +50,7 @@ class TestListEmptyProjects(list_projects.TestListEmptyProjects): class TestListProjects(list_projects.TestListProjects): database_connection = 'sqlite://' + + +class TestComputeDurationByResource(cdbr.TestComputeDurationByResource): + database_connection = 'sqlite://'