[node-patches] Change in ovirt-node[master]: tests: Fix name collision for nose tests

fabiand at redhat.com fabiand at redhat.com
Tue Jun 30 12:24:01 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: tests: Fix name collision for nose tests
......................................................................

tests: Fix name collision for nose tests

Change-Id: Ifbcb535b199608d5aa53a28c9435811a218e36c3
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/setup/__init__.py
1 file changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/46/43046/1

diff --git a/src/ovirt/node/setup/__init__.py b/src/ovirt/node/setup/__init__.py
index a990300..eb9a5b6 100644
--- a/src/ovirt/node/setup/__init__.py
+++ b/src/ovirt/node/setup/__init__.py
@@ -4,3 +4,12 @@
 
 Each plugin can create it's own directory (a so called plugin group).
 """
+
+
+def __call__(self=None, *a, **k):
+    """FIXME this is a workaround to get nosetests working
+    nosetests sees this module as the setup() funciton for unit tests
+    This method is defined to provide a no-op
+    See also: https://code.google.com/p/python-nose/issues/detail?id=326
+    """
+    pass


-- 
To view, visit https://gerrit.ovirt.org/43046
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifbcb535b199608d5aa53a28c9435811a218e36c3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list