Permalink
Browse files

- Fix a unit test failure when used with Venusian 0.9.

  • Loading branch information...
1 parent ad09f28 commit 4f927dbc504c49e5a99e7865577a8633eb8c5e0f @mcdonc mcdonc committed Jul 22, 2011
Showing with 12 additions and 5 deletions.
  1. +5 −0 CHANGES.txt
  2. +5 −1 pyramid_zcml/tests/test_units.py
  3. +0 −1 setup.py
  4. +2 −3 tox.ini
View
@@ -1,3 +1,8 @@
+Next release
+------------
+
+- Fix a unit test failure when used with Venusian 0.9.
+
0.3 (2011-07-22)
----------------
@@ -837,11 +837,15 @@ def _callFUT(self, context, package):
return scan(context, package)
def test_it(self):
+ class DummyVenusianCategories(dict):
+ def attached_to(self, ob):
+ return True
dummy_module = DummyModule()
def foo(): pass
def bar(scanner, name, ob):
dummy_module.scanned = True
- foo.__venusian_callbacks__ = {'pyramid':[bar]}
+ categories = DummyVenusianCategories({'pyramid':[bar]})
+ foo.__venusian_callbacks__ = categories
dummy_module.foo = foo
context = self.config._ctx
View
@@ -26,7 +26,6 @@
install_requires=[
'pyramid>=1.0b1', # autktauthenticationpolicy wild_domain
- 'PasteScript',
]
if platform.system() == 'Java':
View
@@ -5,14 +5,12 @@ envlist =
[testenv]
commands =
python setup.py test -q
-# if we ever want to run the paster template tests, we could also use:
-# python template_tests.py
-# they take forever, though
deps =
Sphinx
WebTest
repoze.sphinx.autointerface
virtualenv
+ pyramid
[testenv:jython]
commands =
@@ -28,6 +26,7 @@ deps =
WebTest
repoze.sphinx.autointerface
virtualenv
+ pyramid
nose
coverage==3.4
nosexcover

0 comments on commit 4f927db

Please sign in to comment.