[ckan-changes] [okfn/ckan] 6d0a96: [#507] Refactoring tests, so they know less about ...

GitHub noreply at github.com
Fri Mar 1 20:04:47 UTC 2013


  Branch: refs/heads/507-template-cache-reset
  Home:   https://github.com/okfn/ckan
  Commit: 6d0a9659cf71acead3de5c35add1a5b9b36c501a
      https://github.com/okfn/ckan/commit/6d0a9659cf71acead3de5c35add1a5b9b36c501a
  Author: Vitor Baptista <vitor at vitorbaptista.com>
  Date:   2013-03-01 (Fri, 01 Mar 2013)

  Changed paths:
    M ckan/tests/lib/test_render.py

  Log Message:
  -----------
  [#507] Refactoring tests, so they know less about the code

Instead of stubbing ckan.lib.render methods, I simply create a
NamedTemporaryFile, add its folder to the template path, and we're done.





More information about the ckan-changes mailing list