Merge lp:~vishvananda/nova/fix-subdir-tests into lp:~hudson-openstack/nova/trunk

Proposed by Vish Ishaya
Status: Merged
Approved by: Devin Carlen
Approved revision: 1222
Merged at revision: 1236
Proposed branch: lp:~vishvananda/nova/fix-subdir-tests
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 82 lines (+46/-0)
5 files modified
nova/tests/api/__init__.py (+19/-0)
nova/tests/api/openstack/__init__.py (+3/-0)
nova/tests/image/__init__.py (+3/-0)
nova/tests/integrated/__init__.py (+2/-0)
nova/tests/scheduler/__init__.py (+19/-0)
To merge this branch: bzr merge lp:~vishvananda/nova/fix-subdir-tests
Reviewer Review Type Date Requested Status
Devin Carlen (community) Approve
Josh Kearney (community) Approve
Review via email: mp+66366@code.launchpad.net

Description of the change

Allows subdirectory tests to run even if sqlite database doesn't exist.

To post a comment you must log in.
Revision history for this message
Josh Kearney (jk0) wrote :

Seems reasonable enough to me.

review: Approve
Revision history for this message
Devin Carlen (devcamcar) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'nova/tests/api/__init__.py'
2--- nova/tests/api/__init__.py 2010-12-17 01:05:54 +0000
3+++ nova/tests/api/__init__.py 2011-06-29 18:12:46 +0000
4@@ -0,0 +1,19 @@
5+# vim: tabstop=4 shiftwidth=4 softtabstop=4
6+
7+# Copyright 2011 Openstack LLC.
8+# All Rights Reserved.
9+#
10+# Licensed under the Apache License, Version 2.0 (the "License"); you may
11+# not use this file except in compliance with the License. You may obtain
12+# a copy of the License at
13+#
14+# http://www.apache.org/licenses/LICENSE-2.0
15+#
16+# Unless required by applicable law or agreed to in writing, software
17+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
19+# License for the specific language governing permissions and limitations
20+# under the License.
21+
22+# NOTE(vish): this forces the fixtures from tests/__init.py:setup() to work
23+from nova.tests import *
24
25=== modified file 'nova/tests/api/openstack/__init__.py'
26--- nova/tests/api/openstack/__init__.py 2011-03-15 20:49:19 +0000
27+++ nova/tests/api/openstack/__init__.py 2011-06-29 18:12:46 +0000
28@@ -15,6 +15,9 @@
29 # License for the specific language governing permissions and limitations
30 # under the License.
31
32+# NOTE(vish): this forces the fixtures from tests/__init.py:setup() to work
33+from nova.tests import *
34+
35 import webob.dec
36 from nova import test
37
38
39=== modified file 'nova/tests/image/__init__.py'
40--- nova/tests/image/__init__.py 2011-03-21 20:40:26 +0000
41+++ nova/tests/image/__init__.py 2011-06-29 18:12:46 +0000
42@@ -14,3 +14,6 @@
43 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
44 # License for the specific language governing permissions and limitations
45 # under the License.
46+
47+# NOTE(vish): this forces the fixtures from tests/__init.py:setup() to work
48+from nova.tests import *
49
50=== modified file 'nova/tests/integrated/__init__.py'
51--- nova/tests/integrated/__init__.py 2011-03-10 20:10:49 +0000
52+++ nova/tests/integrated/__init__.py 2011-06-29 18:12:46 +0000
53@@ -18,3 +18,5 @@
54 :mod:`integrated` -- Tests whole systems, using mock services where needed
55 =================================
56 """
57+# NOTE(vish): this forces the fixtures from tests/__init.py:setup() to work
58+from nova.tests import *
59
60=== modified file 'nova/tests/scheduler/__init__.py'
61--- nova/tests/scheduler/__init__.py 2011-05-17 23:49:21 +0000
62+++ nova/tests/scheduler/__init__.py 2011-06-29 18:12:46 +0000
63@@ -0,0 +1,19 @@
64+# vim: tabstop=4 shiftwidth=4 softtabstop=4
65+
66+# Copyright 2011 Openstack LLC.
67+# All Rights Reserved.
68+#
69+# Licensed under the Apache License, Version 2.0 (the "License"); you may
70+# not use this file except in compliance with the License. You may obtain
71+# a copy of the License at
72+#
73+# http://www.apache.org/licenses/LICENSE-2.0
74+#
75+# Unless required by applicable law or agreed to in writing, software
76+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
77+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
78+# License for the specific language governing permissions and limitations
79+# under the License.
80+
81+# NOTE(vish): this forces the fixtures from tests/__init.py:setup() to work
82+from nova.tests import *