Merge lp:~cjwatson/storm/move-tests into lp:storm

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
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.

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
=== modified file 'MANIFEST.in'
--- MANIFEST.in 2019-05-30 13:21:20 +0000
+++ MANIFEST.in 2019-08-11 17:54:31 +0000
@@ -1,4 +1,3 @@
1recursive-include storm *.py *.c *.zcml1recursive-include storm *.py *.c *.zcml *.txt
2recursive-include tests *.py *.txt
32
4include MANIFEST.in LICENSE README TODO NEWS Makefile setup.cfg test tox.ini3include MANIFEST.in LICENSE README TODO NEWS Makefile setup.cfg test tox.ini
54
=== modified file 'NEWS'
--- NEWS 2019-06-25 21:33:26 +0000
+++ NEWS 2019-08-11 17:54:31 +0000
@@ -19,6 +19,8 @@
19- Fixed SQLObject tests to work with SQLObject 2.x by using Unicode strings for19- Fixed SQLObject tests to work with SQLObject 2.x by using Unicode strings for
20 LIKE operations.20 LIKE operations.
21- Cope with ThreadTransactionManager changes in transaction 2.4.0.21- Cope with ThreadTransactionManager changes in transaction 2.4.0.
22- Move tests to a new storm.tests package to avoid package manager conflicts
23 (bug #1199578).
2224
23API changes25API changes
24-----------26-----------
2527
=== modified file 'setup.py'
--- setup.py 2019-06-06 10:14:55 +0000
+++ setup.py 2019-08-11 17:54:31 +0000
@@ -69,7 +69,7 @@
69 include_package_data=True,69 include_package_data=True,
70 zip_safe=False,70 zip_safe=False,
71 install_requires=["six"],71 install_requires=["six"],
72 test_suite="tests.find_tests",72 test_suite="storm.tests.find_tests",
73 tests_require=tests_require,73 tests_require=tests_require,
74 extras_require={"test": tests_require},74 extras_require={"test": tests_require},
75 )75 )
7676
=== renamed directory 'tests' => 'storm/tests'
=== modified file 'storm/tests/__init__.py'
--- tests/__init__.py 2019-06-05 11:41:07 +0000
+++ storm/tests/__init__.py 2019-08-11 17:54:31 +0000
@@ -69,7 +69,7 @@
69 """69 """
70 suite = unittest.TestSuite()70 suite = unittest.TestSuite()
71 topdir = os.path.abspath(71 topdir = os.path.abspath(
72 os.path.join(os.path.dirname(__file__), os.pardir))72 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
73 testdir = os.path.dirname(__file__)73 testdir = os.path.dirname(__file__)
74 testpaths = set(testpaths)74 testpaths = set(testpaths)
75 for root, dirnames, filenames in os.walk(testdir):75 for root, dirnames, filenames in os.walk(testdir):
@@ -78,7 +78,7 @@
78 relpath = filepath[len(topdir)+1:]78 relpath = filepath[len(topdir)+1:]
7979
80 if (filename == "__init__.py" or filename.endswith(".pyc") or80 if (filename == "__init__.py" or filename.endswith(".pyc") or
81 relpath == os.path.join("tests", "conftest.py")):81 relpath == os.path.join("storm", "tests", "conftest.py")):
82 # Skip non-tests.82 # Skip non-tests.
83 continue83 continue
8484
@@ -97,10 +97,11 @@
97 unittest.defaultTestLoader.loadTestsFromModule(module))97 unittest.defaultTestLoader.loadTestsFromModule(module))
98 elif filename.endswith(".txt"):98 elif filename.endswith(".txt"):
99 load_test = True99 load_test = True
100 if relpath == os.path.join("tests", "zope", "README.txt"):100 if relpath == os.path.join(
101 "storm", "tests", "zope", "README.txt"):
101 # Special case the inclusion of the Zope-dependent102 # Special case the inclusion of the Zope-dependent
102 # ZStorm doctest.103 # ZStorm doctest.
103 import tests.zope as ztest104 import storm.tests.zope as ztest
104 load_test = (105 load_test = (
105 ztest.has_transaction and106 ztest.has_transaction and
106 ztest.has_zope_component and107 ztest.has_zope_component and
107108
=== modified file 'storm/tests/base.py'
--- tests/base.py 2019-06-05 11:41:07 +0000
+++ storm/tests/base.py 2019-08-11 17:54:31 +0000
@@ -26,8 +26,7 @@
26from storm.properties import Property, PropertyPublisherMeta26from storm.properties import Property, PropertyPublisherMeta
27from storm.info import get_obj_info27from storm.info import get_obj_info
28from storm.base import *28from storm.base import *
2929from storm.tests.helper import TestHelper
30from tests.helper import TestHelper
3130
3231
33class BaseTest(TestHelper):32class BaseTest(TestHelper):
3433
=== modified file 'storm/tests/cache.py'
--- tests/cache.py 2019-06-05 11:41:07 +0000
+++ storm/tests/cache.py 2019-08-11 17:54:31 +0000
@@ -5,8 +5,7 @@
5from storm.properties import Int5from storm.properties import Int
6from storm.info import get_obj_info6from storm.info import get_obj_info
7from storm.cache import Cache, GenerationalCache7from storm.cache import Cache, GenerationalCache
88from storm.tests.helper import TestHelper
9from tests.helper import TestHelper
109
1110
12class StubObjectInfo(object):11class StubObjectInfo(object):
1312
=== modified file 'storm/tests/database.py'
--- tests/database.py 2019-06-25 21:33:26 +0000
+++ storm/tests/database.py 2019-08-11 17:54:31 +0000
@@ -31,9 +31,8 @@
31from storm.tracer import install_tracer, remove_all_tracers, DebugTracer31from storm.tracer import install_tracer, remove_all_tracers, DebugTracer
32from storm.uri import URI32from storm.uri import URI
33from storm.expr import *33from storm.expr import *
3434from storm.tests.helper import TestHelper
35from tests.helper import TestHelper35from storm.tests.mocker import ARGS
36from tests.mocker import ARGS
3736
3837
39marker = object()38marker = object()
4039
=== modified file 'storm/tests/databases/base.py'
--- tests/databases/base.py 2019-06-07 17:14:33 +0000
+++ storm/tests/databases/base.py 2019-08-11 17:54:31 +0000
@@ -40,9 +40,8 @@
40from storm.exceptions import (40from storm.exceptions import (
41 DatabaseError, DatabaseModuleError, ConnectionBlockedError,41 DatabaseError, DatabaseModuleError, ConnectionBlockedError,
42 DisconnectionError, Error, OperationalError, ProgrammingError)42 DisconnectionError, Error, OperationalError, ProgrammingError)
4343from storm.tests.databases.proxy import ProxyTCPServer
44from tests.databases.proxy import ProxyTCPServer44from storm.tests.helper import MakePath
45from tests.helper import MakePath
4645
4746
48class Marker(object):47class Marker(object):
4948
=== modified file 'storm/tests/databases/postgres.py'
--- tests/databases/postgres.py 2019-06-05 11:41:07 +0000
+++ storm/tests/databases/postgres.py 2019-08-11 17:54:31 +0000
@@ -44,13 +44,13 @@
44import storm.info44import storm.info
45storm # Silence lint.45storm # Silence lint.
4646
47from tests import has_fixtures, has_subunit47from storm.tests import has_fixtures, has_subunit
48from tests.databases.base import (48from storm.tests.databases.base import (
49 DatabaseTest, DatabaseDisconnectionTest, UnsupportedDatabaseTest,49 DatabaseTest, DatabaseDisconnectionTest, UnsupportedDatabaseTest,
50 TwoPhaseCommitTest, TwoPhaseCommitDisconnectionTest)50 TwoPhaseCommitTest, TwoPhaseCommitDisconnectionTest)
51from tests.expr import column1, column2, column3, elem1, table1, TrackContext51from storm.tests.expr import column1, column2, column3, elem1, table1, TrackContext
52from tests.tracer import TimeoutTracerTestBase52from storm.tests.tracer import TimeoutTracerTestBase
53from tests.helper import TestHelper53from storm.tests.helper import TestHelper
5454
55try:55try:
56 import pgbouncer56 import pgbouncer
5757
=== modified file 'storm/tests/databases/sqlite.py'
--- tests/databases/sqlite.py 2019-06-05 11:41:07 +0000
+++ storm/tests/databases/sqlite.py 2019-08-11 17:54:31 +0000
@@ -28,9 +28,8 @@
28from storm.databases.sqlite import SQLite28from storm.databases.sqlite import SQLite
29from storm.database import create_database29from storm.database import create_database
30from storm.uri import URI30from storm.uri import URI
3131from storm.tests.databases.base import DatabaseTest, UnsupportedDatabaseTest
32from tests.databases.base import DatabaseTest, UnsupportedDatabaseTest32from storm.tests.helper import TestHelper, MakePath
33from tests.helper import TestHelper, MakePath
3433
3534
36class SQLiteMemoryTest(DatabaseTest, TestHelper):35class SQLiteMemoryTest(DatabaseTest, TestHelper):
3736
=== modified file 'storm/tests/event.py'
--- tests/event.py 2019-06-05 11:41:07 +0000
+++ storm/tests/event.py 2019-08-11 17:54:31 +0000
@@ -21,8 +21,7 @@
21from __future__ import print_function21from __future__ import print_function
2222
23from storm.event import EventSystem23from storm.event import EventSystem
2424from storm.tests.helper import TestHelper
25from tests.helper import TestHelper
2625
2726
28class Marker(object):27class Marker(object):
2928
=== modified file 'storm/tests/expr.py'
--- tests/expr.py 2019-06-07 16:36:44 +0000
+++ storm/tests/expr.py 2019-08-11 17:54:31 +0000
@@ -25,10 +25,9 @@
2525
26import six26import six
2727
28from tests.helper import TestHelper
29
30from storm.variables import *28from storm.variables import *
31from storm.expr import *29from storm.expr import *
30from storm.tests.helper import TestHelper
3231
3332
34class Func1(NamedFunc):33class Func1(NamedFunc):
3534
=== modified file 'storm/tests/helper.py'
--- tests/helper.py 2019-06-05 11:41:07 +0000
+++ storm/tests/helper.py 2019-08-11 17:54:31 +0000
@@ -26,7 +26,7 @@
26import shutil26import shutil
27import sys27import sys
2828
29from tests import mocker29from storm.tests import mocker
3030
3131
32__all__ = ["TestHelper", "MakePath", "LogKeeper"]32__all__ = ["TestHelper", "MakePath", "LogKeeper"]
3333
=== modified file 'storm/tests/info.py'
--- tests/info.py 2019-06-05 11:41:07 +0000
+++ storm/tests/info.py 2019-08-11 17:54:31 +0000
@@ -28,8 +28,7 @@
28from storm.variables import Variable28from storm.variables import Variable
29from storm.expr import Undef, Select, compile29from storm.expr import Undef, Select, compile
30from storm.info import *30from storm.info import *
3131from storm.tests.helper import TestHelper
32from tests.helper import TestHelper
3332
3433
35class Wrapper(object):34class Wrapper(object):
3635
=== modified file 'storm/tests/infoheritance.txt'
--- tests/infoheritance.txt 2009-02-04 02:00:02 +0000
+++ storm/tests/infoheritance.txt 2019-08-11 17:54:31 +0000
@@ -1,5 +1,6 @@
1This Storm document is included in Storm's source code at1This Storm document is included in Storm's source code at
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
3up-to-date.
34
4<<TableOfContents>>5<<TableOfContents>>
56
67
=== modified file 'storm/tests/properties.py'
--- tests/properties.py 2019-06-05 11:41:07 +0000
+++ storm/tests/properties.py 2019-08-11 17:54:31 +0000
@@ -32,9 +32,8 @@
32from storm.variables import *32from storm.variables import *
33from storm.info import get_obj_info33from storm.info import get_obj_info
34from storm.expr import Column, Select, compile, State, SQLRaw34from storm.expr import Column, Select, compile, State, SQLRaw
3535from storm.tests.info import Wrapper
36from tests.info import Wrapper36from storm.tests.helper import TestHelper
37from tests.helper import TestHelper
3837
3938
40class CustomVariable(Variable):39class CustomVariable(Variable):
@@ -954,12 +953,13 @@
954 self.registry.add_class(self.Class)953 self.registry.add_class(self.Class)
955 self.registry.add_class(self.SubClass)954 self.registry.add_class(self.SubClass)
956 self.registry.add_class(self.AnotherClass)955 self.registry.add_class(self.AnotherClass)
957 prop1 = self.registry.get("Class.prop1", "tests.properties")956 prop1 = self.registry.get("Class.prop1", "storm.tests.properties")
958 prop2 = self.registry.get("Class.prop2", "tests.properties.bar")957 prop2 = self.registry.get("Class.prop2", "storm.tests.properties.bar")
959 self.assertTrue(prop1 is self.Class.prop1)958 self.assertTrue(prop1 is self.Class.prop1)
960 self.assertTrue(prop2 is self.Class.prop2)959 self.assertTrue(prop2 is self.Class.prop2)
961 prop1 = self.registry.get("Class.prop1", "tests.properties.foo")960 prop1 = self.registry.get("Class.prop1", "storm.tests.properties.foo")
962 prop2 = self.registry.get("Class.prop2", "tests.properties.foo.bar")961 prop2 = self.registry.get(
962 "Class.prop2", "storm.tests.properties.foo.bar")
963 self.assertTrue(prop1 is self.AnotherClass.prop1)963 self.assertTrue(prop1 is self.AnotherClass.prop1)
964 self.assertTrue(prop2 is self.AnotherClass.prop2)964 self.assertTrue(prop2 is self.AnotherClass.prop2)
965965
966966
=== modified file 'storm/tests/schema/patch.py'
--- tests/schema/patch.py 2019-06-05 11:41:07 +0000
+++ storm/tests/schema/patch.py 2019-08-11 17:54:31 +0000
@@ -27,7 +27,7 @@
27from storm.locals import StormError, Store, create_database27from storm.locals import StormError, Store, create_database
28from storm.schema.patch import (28from storm.schema.patch import (
29 Patch, PatchApplier, UnknownPatchError, BadPatchError, PatchSet)29 Patch, PatchApplier, UnknownPatchError, BadPatchError, PatchSet)
30from tests.mocker import MockerTestCase30from storm.tests.mocker import MockerTestCase
3131
3232
33patch_test_0 = """33patch_test_0 = """
3434
=== modified file 'storm/tests/schema/schema.py'
--- tests/schema/schema.py 2019-06-05 11:41:07 +0000
+++ storm/tests/schema/schema.py 2019-08-11 17:54:31 +0000
@@ -26,7 +26,7 @@
26from storm.locals import StormError, Store, create_database26from storm.locals import StormError, Store, create_database
27from storm.schema.schema import (27from storm.schema.schema import (
28 Schema, SchemaMissingError, UnappliedPatchesError)28 Schema, SchemaMissingError, UnappliedPatchesError)
29from tests.mocker import MockerTestCase29from storm.tests.mocker import MockerTestCase
3030
3131
32class Package(object):32class Package(object):
3333
=== modified file 'storm/tests/schema/sharding.py'
--- tests/schema/sharding.py 2019-06-05 11:41:07 +0000
+++ storm/tests/schema/sharding.py 2019-08-11 17:54:31 +0000
@@ -20,10 +20,9 @@
20#20#
21from __future__ import print_function21from __future__ import print_function
2222
23from tests.mocker import MockerTestCase
24
25from storm.schema.schema import SchemaMissingError, UnappliedPatchesError23from storm.schema.schema import SchemaMissingError, UnappliedPatchesError
26from storm.schema.sharding import Sharding, PatchLevelMismatchError24from storm.schema.sharding import Sharding, PatchLevelMismatchError
25from storm.tests.mocker import MockerTestCase
2726
2827
29class FakeSchema(object):28class FakeSchema(object):
3029
=== modified file 'storm/tests/sqlobject.py'
--- tests/sqlobject.py 2019-06-05 11:41:07 +0000
+++ storm/tests/sqlobject.py 2019-08-11 17:54:31 +0000
@@ -28,8 +28,7 @@
28from storm.sqlobject import *28from storm.sqlobject import *
29from storm.store import Store29from storm.store import Store
30from storm.tz import tzutc30from storm.tz import tzutc
3131from storm.tests.helper import TestHelper
32from tests.helper import TestHelper
3332
3433
35class SQLObjectTest(TestHelper):34class SQLObjectTest(TestHelper):
3635
=== modified file 'storm/tests/store/base.py'
--- tests/store/base.py 2019-06-07 17:14:33 +0000
+++ storm/tests/store/base.py 2019-08-11 17:54:31 +0000
@@ -49,9 +49,8 @@
49from storm.cache import Cache49from storm.cache import Cache
50from storm.store import AutoReload, EmptyResultSet, Store, ResultSet50from storm.store import AutoReload, EmptyResultSet, Store, ResultSet
51from storm.tracer import debug51from storm.tracer import debug
5252from storm.tests.info import Wrapper
53from tests.info import Wrapper53from storm.tests.helper import TestHelper
54from tests.helper import TestHelper
5554
5655
57class Foo(object):56class Foo(object):
5857
=== modified file 'storm/tests/store/postgres.py'
--- tests/store/postgres.py 2019-06-05 11:41:07 +0000
+++ storm/tests/store/postgres.py 2019-08-11 17:54:31 +0000
@@ -26,9 +26,8 @@
26from storm.database import create_database26from storm.database import create_database
27from storm.properties import Enum, Int, List27from storm.properties import Enum, Int, List
28from storm.info import get_obj_info28from storm.info import get_obj_info
2929from storm.tests.store.base import StoreTest, EmptyResultSetTest, Foo
30from tests.store.base import StoreTest, EmptyResultSetTest, Foo30from storm.tests.helper import TestHelper
31from tests.helper import TestHelper
3231
3332
34class Lst1(object):33class Lst1(object):
3534
=== modified file 'storm/tests/store/sqlite.py'
--- tests/store/sqlite.py 2019-06-05 11:41:07 +0000
+++ storm/tests/store/sqlite.py 2019-08-11 17:54:31 +0000
@@ -22,9 +22,8 @@
2222
23from storm.databases.sqlite import SQLite23from storm.databases.sqlite import SQLite
24from storm.uri import URI24from storm.uri import URI
2525from storm.tests.store.base import StoreTest, EmptyResultSetTest
26from tests.store.base import StoreTest, EmptyResultSetTest26from storm.tests.helper import TestHelper, MakePath
27from tests.helper import TestHelper, MakePath
2827
2928
30class SQLiteStoreTest(TestHelper, StoreTest):29class SQLiteStoreTest(TestHelper, StoreTest):
3130
=== modified file 'storm/tests/tracer.py'
--- tests/tracer.py 2019-06-05 11:41:07 +0000
+++ storm/tests/tracer.py 2019-08-11 17:54:31 +0000
@@ -5,7 +5,7 @@
5import sys5import sys
6from unittest import TestCase6from unittest import TestCase
77
8from tests import has_fixtures8from storm.tests import has_fixtures
99
10# Optional dependency. If missing, Fixture tests are skipped.10# Optional dependency. If missing, Fixture tests are skipped.
11if has_fixtures:11if has_fixtures:
@@ -28,8 +28,7 @@
28 TimelineTracer, TimeoutError, _tracers)28 TimelineTracer, TimeoutError, _tracers)
29from storm.database import Connection, create_database29from storm.database import Connection, create_database
30from storm.expr import Variable30from storm.expr import Variable
3131from storm.tests.helper import TestHelper
32from tests.helper import TestHelper
3332
3433
35class TracerTest(TestHelper):34class TracerTest(TestHelper):
3635
=== modified file 'storm/tests/tutorial.txt'
--- tests/tutorial.txt 2019-06-05 11:41:07 +0000
+++ storm/tests/tutorial.txt 2019-08-11 17:54:31 +0000
@@ -4,7 +4,7 @@
4==== It runs! ====4==== It runs! ====
55
6This Storm tutorial is included in the source code at6This Storm tutorial is included in the source code at
7tests/tutorial.txt, so that it may be tested and stay7storm/tests/tutorial.txt, so that it may be tested and stay
8up to date.8up to date.
99
1010
1111
=== modified file 'storm/tests/twisted/transact.py'
--- tests/twisted/transact.py 2019-06-05 11:41:07 +0000
+++ storm/tests/twisted/transact.py 2019-08-11 17:54:31 +0000
@@ -1,9 +1,9 @@
1from __future__ import print_function1from __future__ import print_function
22
3from tests import has_psycopg3from storm.tests import has_psycopg
4from tests.helper import TestHelper4from storm.tests.helper import TestHelper
5from tests.zope import has_transaction, has_zope_component5from storm.tests.zope import has_transaction, has_zope_component
6from tests.twisted import has_twisted6from storm.tests.twisted import has_twisted
77
8if has_transaction and has_zope_component and has_twisted:8if has_transaction and has_zope_component and has_twisted:
9 import transaction9 import transaction
1010
=== modified file 'storm/tests/uri.py'
--- tests/uri.py 2019-06-05 11:41:07 +0000
+++ storm/tests/uri.py 2019-08-11 17:54:31 +0000
@@ -21,8 +21,7 @@
21from __future__ import print_function21from __future__ import print_function
2222
23from storm.uri import URI, URIError23from storm.uri import URI, URIError
2424from storm.tests.helper import TestHelper
25from tests.helper import TestHelper
2625
2726
28class URITest(TestHelper):27class URITest(TestHelper):
2928
=== modified file 'storm/tests/variables.py'
--- tests/variables.py 2019-06-07 17:14:33 +0000
+++ storm/tests/variables.py 2019-08-11 17:54:31 +0000
@@ -36,8 +36,7 @@
36from storm.expr import Column, SQLToken36from storm.expr import Column, SQLToken
37from storm.tz import tzutc, tzoffset37from storm.tz import tzutc, tzoffset
38from storm import Undef38from storm import Undef
3939from storm.tests.helper import TestHelper
40from tests.helper import TestHelper
4140
4241
43class Marker(object):42class Marker(object):
4443
=== modified file 'storm/tests/zope/adapters.py'
--- tests/zope/adapters.py 2019-06-06 10:14:55 +0000
+++ storm/tests/zope/adapters.py 2019-08-11 17:54:31 +0000
@@ -20,8 +20,8 @@
20#20#
21from __future__ import print_function21from __future__ import print_function
2222
23from tests.helper import TestHelper23from storm.tests.helper import TestHelper
24from tests.zope import has_zope_component24from storm.tests.zope import has_zope_component
2525
2626
27if has_zope_component:27if has_zope_component:
2828
=== modified file 'storm/tests/zope/testing.py'
--- tests/zope/testing.py 2019-06-05 11:41:07 +0000
+++ storm/tests/zope/testing.py 2019-08-11 17:54:31 +0000
@@ -23,8 +23,12 @@
23import os23import os
24import sys24import sys
2525
26from tests.helper import TestHelper26from storm.tests.helper import TestHelper
27from tests.zope import has_transaction, has_zope_component, has_testresources27from storm.tests.zope import (
28 has_testresources,
29 has_transaction,
30 has_zope_component,
31 )
2832
29from storm.locals import create_database, Store, Unicode, Int33from storm.locals import create_database, Store, Unicode, Int
30from storm.exceptions import IntegrityError34from storm.exceptions import IntegrityError
3135
=== modified file 'storm/tests/zope/zstorm.py'
--- tests/zope/zstorm.py 2019-06-06 12:04:07 +0000
+++ storm/tests/zope/zstorm.py 2019-08-11 17:54:31 +0000
@@ -24,8 +24,8 @@
24import weakref24import weakref
25import gc25import gc
2626
27from tests.helper import TestHelper27from storm.tests.helper import TestHelper
28from tests.zope import has_transaction, has_zope_component28from storm.tests.zope import has_transaction, has_zope_component
2929
30if has_transaction:30if has_transaction:
31 import transaction31 import transaction
3232
=== modified file 'test'
--- test 2019-05-30 09:54:53 +0000
+++ test 2019-08-11 17:54:31 +0000
@@ -48,7 +48,7 @@
48 runner.verbosity = 248 runner.verbosity = 2
4949
50 # Import late, after any and all sys.path jiggery pokery.50 # Import late, after any and all sys.path jiggery pokery.
51 from tests import find_tests51 from storm.tests import find_tests
5252
53 suite = find_tests(args)53 suite = find_tests(args)
54 result = runner.run(suite)54 result = runner.run(suite)

Subscribers

People subscribed via source and target branches

to status/vote changes: