From d529e7e2b5e3981570c74fa7603a9fc4698b2c4f Mon Sep 17 00:00:00 2001 From: Lakshmi Vyasarajan Date: Sun, 13 Mar 2011 21:28:40 +0530 Subject: [PATCH] Fixed begin test resource test --- README.markdown | 2 +- hyde/tests/test_plugin.py | 4 ++-- hyde/version.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.markdown b/README.markdown index 3b2d024..990f961 100644 --- a/README.markdown +++ b/README.markdown @@ -1,4 +1,4 @@ -Version 0.8b1 +Version 0.8b3 # A brand new **hyde** diff --git a/hyde/tests/test_plugin.py b/hyde/tests/test_plugin.py index c412f8b..7a136bf 100644 --- a/hyde/tests/test_plugin.py +++ b/hyde/tests/test_plugin.py @@ -260,13 +260,13 @@ class TestPlugins(object): def test_generator_template_begin_text_resource_called(self): with patch.object(PluginLoaderStub, 'begin_text_resource') as begin_text_resource_stub: + begin_text_resource_stub.reset_mock() begin_text_resource_stub.return_value = '' gen = Generator(self.site) gen.generate_all() called_with_resources = sorted([arg[0][0].path for arg in begin_text_resource_stub.call_args_list]) - assert begin_text_resource_stub.call_count == len(self.content_text_resources) - assert called_with_resources == self.content_text_resources + assert set(called_with_resources) == set(self.content_text_resources) def test_generator_template_begin_text_resource_called_for_single_resource(self): diff --git a/hyde/version.py b/hyde/version.py index e5e9422..0b60bb1 100644 --- a/hyde/version.py +++ b/hyde/version.py @@ -3,4 +3,4 @@ Handles hyde version TODO: Use fabric like versioning scheme """ -__version__ = '0.8b2' +__version__ = '0.8b3'