summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--require/mock.py2
-rw-r--r--setup.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/require/mock.py b/require/mock.py
index 2402159..3aa539a 100644
--- a/require/mock.py
+++ b/require/mock.py
@@ -54,7 +54,7 @@ def mock(requirement):
with unittest.mock.patch.object(export, 'create',
unittest.mock.Mock(name='mocked:%s' % requirement)) as mocked:
# Modify the mocked factory function
- mocker(mocked.return_value)
+ mocker(mocked)
# Call the wrapped function with the patch in place
return func(*args, **kwargs)
diff --git a/setup.py b/setup.py
index 43685b8..e403c1b 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setuptools.setup(
license = 'GNU GPLv3',
name = 'require',
- version = '0.1.0',
+ version = '0.1.1',
author = 'Dustin Frisch',
author_email = 'fooker@lab.sh',