Merge lp:~cjwatson/storm/move-tests into lp:storm
- move-tests
- Merge into trunk
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 521 |
Proposed branch: | lp:~cjwatson/storm/move-tests |
Merge into: | lp:storm |
Diff against target: |
522 lines (+65/-74) 32 files modified
MANIFEST.in (+1/-2) NEWS (+2/-0) setup.py (+1/-1) storm/tests/__init__.py (+5/-4) storm/tests/base.py (+1/-2) storm/tests/cache.py (+1/-2) storm/tests/database.py (+2/-3) storm/tests/databases/base.py (+2/-3) storm/tests/databases/postgres.py (+5/-5) storm/tests/databases/sqlite.py (+2/-3) storm/tests/event.py (+1/-2) storm/tests/expr.py (+1/-2) storm/tests/helper.py (+1/-1) storm/tests/info.py (+1/-2) storm/tests/infoheritance.txt (+2/-1) storm/tests/properties.py (+7/-7) storm/tests/schema/patch.py (+1/-1) storm/tests/schema/schema.py (+1/-1) storm/tests/schema/sharding.py (+1/-2) storm/tests/sqlobject.py (+1/-2) storm/tests/store/base.py (+2/-3) storm/tests/store/postgres.py (+2/-3) storm/tests/store/sqlite.py (+2/-3) storm/tests/tracer.py (+2/-3) storm/tests/tutorial.txt (+1/-1) storm/tests/twisted/transact.py (+4/-4) storm/tests/uri.py (+1/-2) storm/tests/variables.py (+1/-2) storm/tests/zope/adapters.py (+2/-2) storm/tests/zope/testing.py (+6/-2) storm/tests/zope/zstorm.py (+2/-2) test (+1/-1) |
To merge this branch: | bzr merge lp:~cjwatson/storm/move-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kristian Glass (community) | Approve | ||
Storm Developers | Pending | ||
Review via email: mp+371176@code.launchpad.net |
Commit message
Move tests to a new storm.tests package to avoid package manager conflicts.
Description of the change
To post a comment you must log in.
Revision history for this message
Kristian Glass (doismellburning) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'MANIFEST.in' | |||
2 | --- MANIFEST.in 2019-05-30 13:21:20 +0000 | |||
3 | +++ MANIFEST.in 2019-08-11 17:54:31 +0000 | |||
4 | @@ -1,4 +1,3 @@ | |||
7 | 1 | recursive-include storm *.py *.c *.zcml | 1 | recursive-include storm *.py *.c *.zcml *.txt |
6 | 2 | recursive-include tests *.py *.txt | ||
8 | 3 | 2 | ||
9 | 4 | include MANIFEST.in LICENSE README TODO NEWS Makefile setup.cfg test tox.ini | 3 | include MANIFEST.in LICENSE README TODO NEWS Makefile setup.cfg test tox.ini |
10 | 5 | 4 | ||
11 | === modified file 'NEWS' | |||
12 | --- NEWS 2019-06-25 21:33:26 +0000 | |||
13 | +++ NEWS 2019-08-11 17:54:31 +0000 | |||
14 | @@ -19,6 +19,8 @@ | |||
15 | 19 | - Fixed SQLObject tests to work with SQLObject 2.x by using Unicode strings for | 19 | - Fixed SQLObject tests to work with SQLObject 2.x by using Unicode strings for |
16 | 20 | LIKE operations. | 20 | LIKE operations. |
17 | 21 | - Cope with ThreadTransactionManager changes in transaction 2.4.0. | 21 | - Cope with ThreadTransactionManager changes in transaction 2.4.0. |
18 | 22 | - Move tests to a new storm.tests package to avoid package manager conflicts | ||
19 | 23 | (bug #1199578). | ||
20 | 22 | 24 | ||
21 | 23 | API changes | 25 | API changes |
22 | 24 | ----------- | 26 | ----------- |
23 | 25 | 27 | ||
24 | === modified file 'setup.py' | |||
25 | --- setup.py 2019-06-06 10:14:55 +0000 | |||
26 | +++ setup.py 2019-08-11 17:54:31 +0000 | |||
27 | @@ -69,7 +69,7 @@ | |||
28 | 69 | include_package_data=True, | 69 | include_package_data=True, |
29 | 70 | zip_safe=False, | 70 | zip_safe=False, |
30 | 71 | install_requires=["six"], | 71 | install_requires=["six"], |
32 | 72 | test_suite="tests.find_tests", | 72 | test_suite="storm.tests.find_tests", |
33 | 73 | tests_require=tests_require, | 73 | tests_require=tests_require, |
34 | 74 | extras_require={"test": tests_require}, | 74 | extras_require={"test": tests_require}, |
35 | 75 | ) | 75 | ) |
36 | 76 | 76 | ||
37 | === renamed directory 'tests' => 'storm/tests' | |||
38 | === modified file 'storm/tests/__init__.py' | |||
39 | --- tests/__init__.py 2019-06-05 11:41:07 +0000 | |||
40 | +++ storm/tests/__init__.py 2019-08-11 17:54:31 +0000 | |||
41 | @@ -69,7 +69,7 @@ | |||
42 | 69 | """ | 69 | """ |
43 | 70 | suite = unittest.TestSuite() | 70 | suite = unittest.TestSuite() |
44 | 71 | topdir = os.path.abspath( | 71 | topdir = os.path.abspath( |
46 | 72 | os.path.join(os.path.dirname(__file__), os.pardir)) | 72 | os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) |
47 | 73 | testdir = os.path.dirname(__file__) | 73 | testdir = os.path.dirname(__file__) |
48 | 74 | testpaths = set(testpaths) | 74 | testpaths = set(testpaths) |
49 | 75 | for root, dirnames, filenames in os.walk(testdir): | 75 | for root, dirnames, filenames in os.walk(testdir): |
50 | @@ -78,7 +78,7 @@ | |||
51 | 78 | relpath = filepath[len(topdir)+1:] | 78 | relpath = filepath[len(topdir)+1:] |
52 | 79 | 79 | ||
53 | 80 | if (filename == "__init__.py" or filename.endswith(".pyc") or | 80 | if (filename == "__init__.py" or filename.endswith(".pyc") or |
55 | 81 | relpath == os.path.join("tests", "conftest.py")): | 81 | relpath == os.path.join("storm", "tests", "conftest.py")): |
56 | 82 | # Skip non-tests. | 82 | # Skip non-tests. |
57 | 83 | continue | 83 | continue |
58 | 84 | 84 | ||
59 | @@ -97,10 +97,11 @@ | |||
60 | 97 | unittest.defaultTestLoader.loadTestsFromModule(module)) | 97 | unittest.defaultTestLoader.loadTestsFromModule(module)) |
61 | 98 | elif filename.endswith(".txt"): | 98 | elif filename.endswith(".txt"): |
62 | 99 | load_test = True | 99 | load_test = True |
64 | 100 | if relpath == os.path.join("tests", "zope", "README.txt"): | 100 | if relpath == os.path.join( |
65 | 101 | "storm", "tests", "zope", "README.txt"): | ||
66 | 101 | # Special case the inclusion of the Zope-dependent | 102 | # Special case the inclusion of the Zope-dependent |
67 | 102 | # ZStorm doctest. | 103 | # ZStorm doctest. |
69 | 103 | import tests.zope as ztest | 104 | import storm.tests.zope as ztest |
70 | 104 | load_test = ( | 105 | load_test = ( |
71 | 105 | ztest.has_transaction and | 106 | ztest.has_transaction and |
72 | 106 | ztest.has_zope_component and | 107 | ztest.has_zope_component and |
73 | 107 | 108 | ||
74 | === modified file 'storm/tests/base.py' | |||
75 | --- tests/base.py 2019-06-05 11:41:07 +0000 | |||
76 | +++ storm/tests/base.py 2019-08-11 17:54:31 +0000 | |||
77 | @@ -26,8 +26,7 @@ | |||
78 | 26 | from storm.properties import Property, PropertyPublisherMeta | 26 | from storm.properties import Property, PropertyPublisherMeta |
79 | 27 | from storm.info import get_obj_info | 27 | from storm.info import get_obj_info |
80 | 28 | from storm.base import * | 28 | from storm.base import * |
83 | 29 | 29 | from storm.tests.helper import TestHelper | |
82 | 30 | from tests.helper import TestHelper | ||
84 | 31 | 30 | ||
85 | 32 | 31 | ||
86 | 33 | class BaseTest(TestHelper): | 32 | class BaseTest(TestHelper): |
87 | 34 | 33 | ||
88 | === modified file 'storm/tests/cache.py' | |||
89 | --- tests/cache.py 2019-06-05 11:41:07 +0000 | |||
90 | +++ storm/tests/cache.py 2019-08-11 17:54:31 +0000 | |||
91 | @@ -5,8 +5,7 @@ | |||
92 | 5 | from storm.properties import Int | 5 | from storm.properties import Int |
93 | 6 | from storm.info import get_obj_info | 6 | from storm.info import get_obj_info |
94 | 7 | from storm.cache import Cache, GenerationalCache | 7 | from storm.cache import Cache, GenerationalCache |
97 | 8 | 8 | from storm.tests.helper import TestHelper | |
96 | 9 | from tests.helper import TestHelper | ||
98 | 10 | 9 | ||
99 | 11 | 10 | ||
100 | 12 | class StubObjectInfo(object): | 11 | class StubObjectInfo(object): |
101 | 13 | 12 | ||
102 | === modified file 'storm/tests/database.py' | |||
103 | --- tests/database.py 2019-06-25 21:33:26 +0000 | |||
104 | +++ storm/tests/database.py 2019-08-11 17:54:31 +0000 | |||
105 | @@ -31,9 +31,8 @@ | |||
106 | 31 | from storm.tracer import install_tracer, remove_all_tracers, DebugTracer | 31 | from storm.tracer import install_tracer, remove_all_tracers, DebugTracer |
107 | 32 | from storm.uri import URI | 32 | from storm.uri import URI |
108 | 33 | from storm.expr import * | 33 | from storm.expr import * |
112 | 34 | 34 | from storm.tests.helper import TestHelper | |
113 | 35 | from tests.helper import TestHelper | 35 | from storm.tests.mocker import ARGS |
111 | 36 | from tests.mocker import ARGS | ||
114 | 37 | 36 | ||
115 | 38 | 37 | ||
116 | 39 | marker = object() | 38 | marker = object() |
117 | 40 | 39 | ||
118 | === modified file 'storm/tests/databases/base.py' | |||
119 | --- tests/databases/base.py 2019-06-07 17:14:33 +0000 | |||
120 | +++ storm/tests/databases/base.py 2019-08-11 17:54:31 +0000 | |||
121 | @@ -40,9 +40,8 @@ | |||
122 | 40 | from storm.exceptions import ( | 40 | from storm.exceptions import ( |
123 | 41 | DatabaseError, DatabaseModuleError, ConnectionBlockedError, | 41 | DatabaseError, DatabaseModuleError, ConnectionBlockedError, |
124 | 42 | DisconnectionError, Error, OperationalError, ProgrammingError) | 42 | DisconnectionError, Error, OperationalError, ProgrammingError) |
128 | 43 | 43 | from storm.tests.databases.proxy import ProxyTCPServer | |
129 | 44 | from tests.databases.proxy import ProxyTCPServer | 44 | from storm.tests.helper import MakePath |
127 | 45 | from tests.helper import MakePath | ||
130 | 46 | 45 | ||
131 | 47 | 46 | ||
132 | 48 | class Marker(object): | 47 | class Marker(object): |
133 | 49 | 48 | ||
134 | === modified file 'storm/tests/databases/postgres.py' | |||
135 | --- tests/databases/postgres.py 2019-06-05 11:41:07 +0000 | |||
136 | +++ storm/tests/databases/postgres.py 2019-08-11 17:54:31 +0000 | |||
137 | @@ -44,13 +44,13 @@ | |||
138 | 44 | import storm.info | 44 | import storm.info |
139 | 45 | storm # Silence lint. | 45 | storm # Silence lint. |
140 | 46 | 46 | ||
143 | 47 | from tests import has_fixtures, has_subunit | 47 | from storm.tests import has_fixtures, has_subunit |
144 | 48 | from tests.databases.base import ( | 48 | from storm.tests.databases.base import ( |
145 | 49 | DatabaseTest, DatabaseDisconnectionTest, UnsupportedDatabaseTest, | 49 | DatabaseTest, DatabaseDisconnectionTest, UnsupportedDatabaseTest, |
146 | 50 | TwoPhaseCommitTest, TwoPhaseCommitDisconnectionTest) | 50 | TwoPhaseCommitTest, TwoPhaseCommitDisconnectionTest) |
150 | 51 | from tests.expr import column1, column2, column3, elem1, table1, TrackContext | 51 | from storm.tests.expr import column1, column2, column3, elem1, table1, TrackContext |
151 | 52 | from tests.tracer import TimeoutTracerTestBase | 52 | from storm.tests.tracer import TimeoutTracerTestBase |
152 | 53 | from tests.helper import TestHelper | 53 | from storm.tests.helper import TestHelper |
153 | 54 | 54 | ||
154 | 55 | try: | 55 | try: |
155 | 56 | import pgbouncer | 56 | import pgbouncer |
156 | 57 | 57 | ||
157 | === modified file 'storm/tests/databases/sqlite.py' | |||
158 | --- tests/databases/sqlite.py 2019-06-05 11:41:07 +0000 | |||
159 | +++ storm/tests/databases/sqlite.py 2019-08-11 17:54:31 +0000 | |||
160 | @@ -28,9 +28,8 @@ | |||
161 | 28 | from storm.databases.sqlite import SQLite | 28 | from storm.databases.sqlite import SQLite |
162 | 29 | from storm.database import create_database | 29 | from storm.database import create_database |
163 | 30 | from storm.uri import URI | 30 | from storm.uri import URI |
167 | 31 | 31 | from storm.tests.databases.base import DatabaseTest, UnsupportedDatabaseTest | |
168 | 32 | from tests.databases.base import DatabaseTest, UnsupportedDatabaseTest | 32 | from storm.tests.helper import TestHelper, MakePath |
166 | 33 | from tests.helper import TestHelper, MakePath | ||
169 | 34 | 33 | ||
170 | 35 | 34 | ||
171 | 36 | class SQLiteMemoryTest(DatabaseTest, TestHelper): | 35 | class SQLiteMemoryTest(DatabaseTest, TestHelper): |
172 | 37 | 36 | ||
173 | === modified file 'storm/tests/event.py' | |||
174 | --- tests/event.py 2019-06-05 11:41:07 +0000 | |||
175 | +++ storm/tests/event.py 2019-08-11 17:54:31 +0000 | |||
176 | @@ -21,8 +21,7 @@ | |||
177 | 21 | from __future__ import print_function | 21 | from __future__ import print_function |
178 | 22 | 22 | ||
179 | 23 | from storm.event import EventSystem | 23 | from storm.event import EventSystem |
182 | 24 | 24 | from storm.tests.helper import TestHelper | |
181 | 25 | from tests.helper import TestHelper | ||
183 | 26 | 25 | ||
184 | 27 | 26 | ||
185 | 28 | class Marker(object): | 27 | class Marker(object): |
186 | 29 | 28 | ||
187 | === modified file 'storm/tests/expr.py' | |||
188 | --- tests/expr.py 2019-06-07 16:36:44 +0000 | |||
189 | +++ storm/tests/expr.py 2019-08-11 17:54:31 +0000 | |||
190 | @@ -25,10 +25,9 @@ | |||
191 | 25 | 25 | ||
192 | 26 | import six | 26 | import six |
193 | 27 | 27 | ||
194 | 28 | from tests.helper import TestHelper | ||
195 | 29 | |||
196 | 30 | from storm.variables import * | 28 | from storm.variables import * |
197 | 31 | from storm.expr import * | 29 | from storm.expr import * |
198 | 30 | from storm.tests.helper import TestHelper | ||
199 | 32 | 31 | ||
200 | 33 | 32 | ||
201 | 34 | class Func1(NamedFunc): | 33 | class Func1(NamedFunc): |
202 | 35 | 34 | ||
203 | === modified file 'storm/tests/helper.py' | |||
204 | --- tests/helper.py 2019-06-05 11:41:07 +0000 | |||
205 | +++ storm/tests/helper.py 2019-08-11 17:54:31 +0000 | |||
206 | @@ -26,7 +26,7 @@ | |||
207 | 26 | import shutil | 26 | import shutil |
208 | 27 | import sys | 27 | import sys |
209 | 28 | 28 | ||
211 | 29 | from tests import mocker | 29 | from storm.tests import mocker |
212 | 30 | 30 | ||
213 | 31 | 31 | ||
214 | 32 | __all__ = ["TestHelper", "MakePath", "LogKeeper"] | 32 | __all__ = ["TestHelper", "MakePath", "LogKeeper"] |
215 | 33 | 33 | ||
216 | === modified file 'storm/tests/info.py' | |||
217 | --- tests/info.py 2019-06-05 11:41:07 +0000 | |||
218 | +++ storm/tests/info.py 2019-08-11 17:54:31 +0000 | |||
219 | @@ -28,8 +28,7 @@ | |||
220 | 28 | from storm.variables import Variable | 28 | from storm.variables import Variable |
221 | 29 | from storm.expr import Undef, Select, compile | 29 | from storm.expr import Undef, Select, compile |
222 | 30 | from storm.info import * | 30 | from storm.info import * |
225 | 31 | 31 | from storm.tests.helper import TestHelper | |
224 | 32 | from tests.helper import TestHelper | ||
226 | 33 | 32 | ||
227 | 34 | 33 | ||
228 | 35 | class Wrapper(object): | 34 | class Wrapper(object): |
229 | 36 | 35 | ||
230 | === modified file 'storm/tests/infoheritance.txt' | |||
231 | --- tests/infoheritance.txt 2009-02-04 02:00:02 +0000 | |||
232 | +++ storm/tests/infoheritance.txt 2019-08-11 17:54:31 +0000 | |||
233 | @@ -1,5 +1,6 @@ | |||
234 | 1 | This Storm document is included in Storm's source code at | 1 | This Storm document is included in Storm's source code at |
236 | 2 | `tests/infoheritance.txt` so that it can be tested and be kept up-to-date. | 2 | `storm/tests/infoheritance.txt` so that it can be tested and be kept |
237 | 3 | up-to-date. | ||
238 | 3 | 4 | ||
239 | 4 | <<TableOfContents>> | 5 | <<TableOfContents>> |
240 | 5 | 6 | ||
241 | 6 | 7 | ||
242 | === modified file 'storm/tests/properties.py' | |||
243 | --- tests/properties.py 2019-06-05 11:41:07 +0000 | |||
244 | +++ storm/tests/properties.py 2019-08-11 17:54:31 +0000 | |||
245 | @@ -32,9 +32,8 @@ | |||
246 | 32 | from storm.variables import * | 32 | from storm.variables import * |
247 | 33 | from storm.info import get_obj_info | 33 | from storm.info import get_obj_info |
248 | 34 | from storm.expr import Column, Select, compile, State, SQLRaw | 34 | from storm.expr import Column, Select, compile, State, SQLRaw |
252 | 35 | 35 | from storm.tests.info import Wrapper | |
253 | 36 | from tests.info import Wrapper | 36 | from storm.tests.helper import TestHelper |
251 | 37 | from tests.helper import TestHelper | ||
254 | 38 | 37 | ||
255 | 39 | 38 | ||
256 | 40 | class CustomVariable(Variable): | 39 | class CustomVariable(Variable): |
257 | @@ -954,12 +953,13 @@ | |||
258 | 954 | self.registry.add_class(self.Class) | 953 | self.registry.add_class(self.Class) |
259 | 955 | self.registry.add_class(self.SubClass) | 954 | self.registry.add_class(self.SubClass) |
260 | 956 | self.registry.add_class(self.AnotherClass) | 955 | self.registry.add_class(self.AnotherClass) |
263 | 957 | prop1 = self.registry.get("Class.prop1", "tests.properties") | 956 | prop1 = self.registry.get("Class.prop1", "storm.tests.properties") |
264 | 958 | prop2 = self.registry.get("Class.prop2", "tests.properties.bar") | 957 | prop2 = self.registry.get("Class.prop2", "storm.tests.properties.bar") |
265 | 959 | self.assertTrue(prop1 is self.Class.prop1) | 958 | self.assertTrue(prop1 is self.Class.prop1) |
266 | 960 | self.assertTrue(prop2 is self.Class.prop2) | 959 | self.assertTrue(prop2 is self.Class.prop2) |
269 | 961 | prop1 = self.registry.get("Class.prop1", "tests.properties.foo") | 960 | prop1 = self.registry.get("Class.prop1", "storm.tests.properties.foo") |
270 | 962 | prop2 = self.registry.get("Class.prop2", "tests.properties.foo.bar") | 961 | prop2 = self.registry.get( |
271 | 962 | "Class.prop2", "storm.tests.properties.foo.bar") | ||
272 | 963 | self.assertTrue(prop1 is self.AnotherClass.prop1) | 963 | self.assertTrue(prop1 is self.AnotherClass.prop1) |
273 | 964 | self.assertTrue(prop2 is self.AnotherClass.prop2) | 964 | self.assertTrue(prop2 is self.AnotherClass.prop2) |
274 | 965 | 965 | ||
275 | 966 | 966 | ||
276 | === modified file 'storm/tests/schema/patch.py' | |||
277 | --- tests/schema/patch.py 2019-06-05 11:41:07 +0000 | |||
278 | +++ storm/tests/schema/patch.py 2019-08-11 17:54:31 +0000 | |||
279 | @@ -27,7 +27,7 @@ | |||
280 | 27 | from storm.locals import StormError, Store, create_database | 27 | from storm.locals import StormError, Store, create_database |
281 | 28 | from storm.schema.patch import ( | 28 | from storm.schema.patch import ( |
282 | 29 | Patch, PatchApplier, UnknownPatchError, BadPatchError, PatchSet) | 29 | Patch, PatchApplier, UnknownPatchError, BadPatchError, PatchSet) |
284 | 30 | from tests.mocker import MockerTestCase | 30 | from storm.tests.mocker import MockerTestCase |
285 | 31 | 31 | ||
286 | 32 | 32 | ||
287 | 33 | patch_test_0 = """ | 33 | patch_test_0 = """ |
288 | 34 | 34 | ||
289 | === modified file 'storm/tests/schema/schema.py' | |||
290 | --- tests/schema/schema.py 2019-06-05 11:41:07 +0000 | |||
291 | +++ storm/tests/schema/schema.py 2019-08-11 17:54:31 +0000 | |||
292 | @@ -26,7 +26,7 @@ | |||
293 | 26 | from storm.locals import StormError, Store, create_database | 26 | from storm.locals import StormError, Store, create_database |
294 | 27 | from storm.schema.schema import ( | 27 | from storm.schema.schema import ( |
295 | 28 | Schema, SchemaMissingError, UnappliedPatchesError) | 28 | Schema, SchemaMissingError, UnappliedPatchesError) |
297 | 29 | from tests.mocker import MockerTestCase | 29 | from storm.tests.mocker import MockerTestCase |
298 | 30 | 30 | ||
299 | 31 | 31 | ||
300 | 32 | class Package(object): | 32 | class Package(object): |
301 | 33 | 33 | ||
302 | === modified file 'storm/tests/schema/sharding.py' | |||
303 | --- tests/schema/sharding.py 2019-06-05 11:41:07 +0000 | |||
304 | +++ storm/tests/schema/sharding.py 2019-08-11 17:54:31 +0000 | |||
305 | @@ -20,10 +20,9 @@ | |||
306 | 20 | # | 20 | # |
307 | 21 | from __future__ import print_function | 21 | from __future__ import print_function |
308 | 22 | 22 | ||
309 | 23 | from tests.mocker import MockerTestCase | ||
310 | 24 | |||
311 | 25 | from storm.schema.schema import SchemaMissingError, UnappliedPatchesError | 23 | from storm.schema.schema import SchemaMissingError, UnappliedPatchesError |
312 | 26 | from storm.schema.sharding import Sharding, PatchLevelMismatchError | 24 | from storm.schema.sharding import Sharding, PatchLevelMismatchError |
313 | 25 | from storm.tests.mocker import MockerTestCase | ||
314 | 27 | 26 | ||
315 | 28 | 27 | ||
316 | 29 | class FakeSchema(object): | 28 | class FakeSchema(object): |
317 | 30 | 29 | ||
318 | === modified file 'storm/tests/sqlobject.py' | |||
319 | --- tests/sqlobject.py 2019-06-05 11:41:07 +0000 | |||
320 | +++ storm/tests/sqlobject.py 2019-08-11 17:54:31 +0000 | |||
321 | @@ -28,8 +28,7 @@ | |||
322 | 28 | from storm.sqlobject import * | 28 | from storm.sqlobject import * |
323 | 29 | from storm.store import Store | 29 | from storm.store import Store |
324 | 30 | from storm.tz import tzutc | 30 | from storm.tz import tzutc |
327 | 31 | 31 | from storm.tests.helper import TestHelper | |
326 | 32 | from tests.helper import TestHelper | ||
328 | 33 | 32 | ||
329 | 34 | 33 | ||
330 | 35 | class SQLObjectTest(TestHelper): | 34 | class SQLObjectTest(TestHelper): |
331 | 36 | 35 | ||
332 | === modified file 'storm/tests/store/base.py' | |||
333 | --- tests/store/base.py 2019-06-07 17:14:33 +0000 | |||
334 | +++ storm/tests/store/base.py 2019-08-11 17:54:31 +0000 | |||
335 | @@ -49,9 +49,8 @@ | |||
336 | 49 | from storm.cache import Cache | 49 | from storm.cache import Cache |
337 | 50 | from storm.store import AutoReload, EmptyResultSet, Store, ResultSet | 50 | from storm.store import AutoReload, EmptyResultSet, Store, ResultSet |
338 | 51 | from storm.tracer import debug | 51 | from storm.tracer import debug |
342 | 52 | 52 | from storm.tests.info import Wrapper | |
343 | 53 | from tests.info import Wrapper | 53 | from storm.tests.helper import TestHelper |
341 | 54 | from tests.helper import TestHelper | ||
344 | 55 | 54 | ||
345 | 56 | 55 | ||
346 | 57 | class Foo(object): | 56 | class Foo(object): |
347 | 58 | 57 | ||
348 | === modified file 'storm/tests/store/postgres.py' | |||
349 | --- tests/store/postgres.py 2019-06-05 11:41:07 +0000 | |||
350 | +++ storm/tests/store/postgres.py 2019-08-11 17:54:31 +0000 | |||
351 | @@ -26,9 +26,8 @@ | |||
352 | 26 | from storm.database import create_database | 26 | from storm.database import create_database |
353 | 27 | from storm.properties import Enum, Int, List | 27 | from storm.properties import Enum, Int, List |
354 | 28 | from storm.info import get_obj_info | 28 | from storm.info import get_obj_info |
358 | 29 | 29 | from storm.tests.store.base import StoreTest, EmptyResultSetTest, Foo | |
359 | 30 | from tests.store.base import StoreTest, EmptyResultSetTest, Foo | 30 | from storm.tests.helper import TestHelper |
357 | 31 | from tests.helper import TestHelper | ||
360 | 32 | 31 | ||
361 | 33 | 32 | ||
362 | 34 | class Lst1(object): | 33 | class Lst1(object): |
363 | 35 | 34 | ||
364 | === modified file 'storm/tests/store/sqlite.py' | |||
365 | --- tests/store/sqlite.py 2019-06-05 11:41:07 +0000 | |||
366 | +++ storm/tests/store/sqlite.py 2019-08-11 17:54:31 +0000 | |||
367 | @@ -22,9 +22,8 @@ | |||
368 | 22 | 22 | ||
369 | 23 | from storm.databases.sqlite import SQLite | 23 | from storm.databases.sqlite import SQLite |
370 | 24 | from storm.uri import URI | 24 | from storm.uri import URI |
374 | 25 | 25 | from storm.tests.store.base import StoreTest, EmptyResultSetTest | |
375 | 26 | from tests.store.base import StoreTest, EmptyResultSetTest | 26 | from storm.tests.helper import TestHelper, MakePath |
373 | 27 | from tests.helper import TestHelper, MakePath | ||
376 | 28 | 27 | ||
377 | 29 | 28 | ||
378 | 30 | class SQLiteStoreTest(TestHelper, StoreTest): | 29 | class SQLiteStoreTest(TestHelper, StoreTest): |
379 | 31 | 30 | ||
380 | === modified file 'storm/tests/tracer.py' | |||
381 | --- tests/tracer.py 2019-06-05 11:41:07 +0000 | |||
382 | +++ storm/tests/tracer.py 2019-08-11 17:54:31 +0000 | |||
383 | @@ -5,7 +5,7 @@ | |||
384 | 5 | import sys | 5 | import sys |
385 | 6 | from unittest import TestCase | 6 | from unittest import TestCase |
386 | 7 | 7 | ||
388 | 8 | from tests import has_fixtures | 8 | from storm.tests import has_fixtures |
389 | 9 | 9 | ||
390 | 10 | # Optional dependency. If missing, Fixture tests are skipped. | 10 | # Optional dependency. If missing, Fixture tests are skipped. |
391 | 11 | if has_fixtures: | 11 | if has_fixtures: |
392 | @@ -28,8 +28,7 @@ | |||
393 | 28 | TimelineTracer, TimeoutError, _tracers) | 28 | TimelineTracer, TimeoutError, _tracers) |
394 | 29 | from storm.database import Connection, create_database | 29 | from storm.database import Connection, create_database |
395 | 30 | from storm.expr import Variable | 30 | from storm.expr import Variable |
398 | 31 | 31 | from storm.tests.helper import TestHelper | |
397 | 32 | from tests.helper import TestHelper | ||
399 | 33 | 32 | ||
400 | 34 | 33 | ||
401 | 35 | class TracerTest(TestHelper): | 34 | class TracerTest(TestHelper): |
402 | 36 | 35 | ||
403 | === modified file 'storm/tests/tutorial.txt' | |||
404 | --- tests/tutorial.txt 2019-06-05 11:41:07 +0000 | |||
405 | +++ storm/tests/tutorial.txt 2019-08-11 17:54:31 +0000 | |||
406 | @@ -4,7 +4,7 @@ | |||
407 | 4 | ==== It runs! ==== | 4 | ==== It runs! ==== |
408 | 5 | 5 | ||
409 | 6 | This Storm tutorial is included in the source code at | 6 | This Storm tutorial is included in the source code at |
411 | 7 | tests/tutorial.txt, so that it may be tested and stay | 7 | storm/tests/tutorial.txt, so that it may be tested and stay |
412 | 8 | up to date. | 8 | up to date. |
413 | 9 | 9 | ||
414 | 10 | 10 | ||
415 | 11 | 11 | ||
416 | === modified file 'storm/tests/twisted/transact.py' | |||
417 | --- tests/twisted/transact.py 2019-06-05 11:41:07 +0000 | |||
418 | +++ storm/tests/twisted/transact.py 2019-08-11 17:54:31 +0000 | |||
419 | @@ -1,9 +1,9 @@ | |||
420 | 1 | from __future__ import print_function | 1 | from __future__ import print_function |
421 | 2 | 2 | ||
426 | 3 | from tests import has_psycopg | 3 | from storm.tests import has_psycopg |
427 | 4 | from tests.helper import TestHelper | 4 | from storm.tests.helper import TestHelper |
428 | 5 | from tests.zope import has_transaction, has_zope_component | 5 | from storm.tests.zope import has_transaction, has_zope_component |
429 | 6 | from tests.twisted import has_twisted | 6 | from storm.tests.twisted import has_twisted |
430 | 7 | 7 | ||
431 | 8 | if has_transaction and has_zope_component and has_twisted: | 8 | if has_transaction and has_zope_component and has_twisted: |
432 | 9 | import transaction | 9 | import transaction |
433 | 10 | 10 | ||
434 | === modified file 'storm/tests/uri.py' | |||
435 | --- tests/uri.py 2019-06-05 11:41:07 +0000 | |||
436 | +++ storm/tests/uri.py 2019-08-11 17:54:31 +0000 | |||
437 | @@ -21,8 +21,7 @@ | |||
438 | 21 | from __future__ import print_function | 21 | from __future__ import print_function |
439 | 22 | 22 | ||
440 | 23 | from storm.uri import URI, URIError | 23 | from storm.uri import URI, URIError |
443 | 24 | 24 | from storm.tests.helper import TestHelper | |
442 | 25 | from tests.helper import TestHelper | ||
444 | 26 | 25 | ||
445 | 27 | 26 | ||
446 | 28 | class URITest(TestHelper): | 27 | class URITest(TestHelper): |
447 | 29 | 28 | ||
448 | === modified file 'storm/tests/variables.py' | |||
449 | --- tests/variables.py 2019-06-07 17:14:33 +0000 | |||
450 | +++ storm/tests/variables.py 2019-08-11 17:54:31 +0000 | |||
451 | @@ -36,8 +36,7 @@ | |||
452 | 36 | from storm.expr import Column, SQLToken | 36 | from storm.expr import Column, SQLToken |
453 | 37 | from storm.tz import tzutc, tzoffset | 37 | from storm.tz import tzutc, tzoffset |
454 | 38 | from storm import Undef | 38 | from storm import Undef |
457 | 39 | 39 | from storm.tests.helper import TestHelper | |
456 | 40 | from tests.helper import TestHelper | ||
458 | 41 | 40 | ||
459 | 42 | 41 | ||
460 | 43 | class Marker(object): | 42 | class Marker(object): |
461 | 44 | 43 | ||
462 | === modified file 'storm/tests/zope/adapters.py' | |||
463 | --- tests/zope/adapters.py 2019-06-06 10:14:55 +0000 | |||
464 | +++ storm/tests/zope/adapters.py 2019-08-11 17:54:31 +0000 | |||
465 | @@ -20,8 +20,8 @@ | |||
466 | 20 | # | 20 | # |
467 | 21 | from __future__ import print_function | 21 | from __future__ import print_function |
468 | 22 | 22 | ||
471 | 23 | from tests.helper import TestHelper | 23 | from storm.tests.helper import TestHelper |
472 | 24 | from tests.zope import has_zope_component | 24 | from storm.tests.zope import has_zope_component |
473 | 25 | 25 | ||
474 | 26 | 26 | ||
475 | 27 | if has_zope_component: | 27 | if has_zope_component: |
476 | 28 | 28 | ||
477 | === modified file 'storm/tests/zope/testing.py' | |||
478 | --- tests/zope/testing.py 2019-06-05 11:41:07 +0000 | |||
479 | +++ storm/tests/zope/testing.py 2019-08-11 17:54:31 +0000 | |||
480 | @@ -23,8 +23,12 @@ | |||
481 | 23 | import os | 23 | import os |
482 | 24 | import sys | 24 | import sys |
483 | 25 | 25 | ||
486 | 26 | from tests.helper import TestHelper | 26 | from storm.tests.helper import TestHelper |
487 | 27 | from tests.zope import has_transaction, has_zope_component, has_testresources | 27 | from storm.tests.zope import ( |
488 | 28 | has_testresources, | ||
489 | 29 | has_transaction, | ||
490 | 30 | has_zope_component, | ||
491 | 31 | ) | ||
492 | 28 | 32 | ||
493 | 29 | from storm.locals import create_database, Store, Unicode, Int | 33 | from storm.locals import create_database, Store, Unicode, Int |
494 | 30 | from storm.exceptions import IntegrityError | 34 | from storm.exceptions import IntegrityError |
495 | 31 | 35 | ||
496 | === modified file 'storm/tests/zope/zstorm.py' | |||
497 | --- tests/zope/zstorm.py 2019-06-06 12:04:07 +0000 | |||
498 | +++ storm/tests/zope/zstorm.py 2019-08-11 17:54:31 +0000 | |||
499 | @@ -24,8 +24,8 @@ | |||
500 | 24 | import weakref | 24 | import weakref |
501 | 25 | import gc | 25 | import gc |
502 | 26 | 26 | ||
505 | 27 | from tests.helper import TestHelper | 27 | from storm.tests.helper import TestHelper |
506 | 28 | from tests.zope import has_transaction, has_zope_component | 28 | from storm.tests.zope import has_transaction, has_zope_component |
507 | 29 | 29 | ||
508 | 30 | if has_transaction: | 30 | if has_transaction: |
509 | 31 | import transaction | 31 | import transaction |
510 | 32 | 32 | ||
511 | === modified file 'test' | |||
512 | --- test 2019-05-30 09:54:53 +0000 | |||
513 | +++ test 2019-08-11 17:54:31 +0000 | |||
514 | @@ -48,7 +48,7 @@ | |||
515 | 48 | runner.verbosity = 2 | 48 | runner.verbosity = 2 |
516 | 49 | 49 | ||
517 | 50 | # Import late, after any and all sys.path jiggery pokery. | 50 | # Import late, after any and all sys.path jiggery pokery. |
519 | 51 | from tests import find_tests | 51 | from storm.tests import find_tests |
520 | 52 | 52 | ||
521 | 53 | suite = find_tests(args) | 53 | suite = find_tests(args) |
522 | 54 | result = runner.run(suite) | 54 | result = runner.run(suite) |