Browse Source

Fixed begin test resource test

main
Lakshmi Vyasarajan 13 years ago
parent
commit
d529e7e2b5
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      README.markdown
  2. +2
    -2
      hyde/tests/test_plugin.py
  3. +1
    -1
      hyde/version.py

+ 1
- 1
README.markdown View File

@@ -1,4 +1,4 @@
Version 0.8b1
Version 0.8b3

# A brand new **hyde**



+ 2
- 2
hyde/tests/test_plugin.py View File

@@ -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):



+ 1
- 1
hyde/version.py View File

@@ -3,4 +3,4 @@
Handles hyde version
TODO: Use fabric like versioning scheme
"""
__version__ = '0.8b2'
__version__ = '0.8b3'

Loading…
Cancel
Save