[ckan-changes] [ckan/ckan] b68a83: Modernize package model tests

David Read noreply at github.com
Fri May 10 13:10:58 UTC 2019


  Branch: refs/heads/modernize-model-tests
  Home:   https://github.com/ckan/ckan
  Commit: b68a836a416127bb119722d0a75b296d865fd32b
      https://github.com/ckan/ckan/commit/b68a836a416127bb119722d0a75b296d865fd32b
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-05-10 (Fri, 10 May 2019)

  Changed paths:
    M ckan/model/tag.py
    R ckan/tests/legacy/models/test_extras.py
    M ckan/tests/legacy/models/test_package.py
    A ckan/tests/model/test_package.py
    A ckan/tests/model/test_package_extra.py
    A ckan/tests/model/test_tags.py

  Log Message:
  -----------
  Modernize package model tests

* The rest of ckan/tests/legacy/models/test_package.py will go with the
revisioning.
* tag.by_name() is deprecated because it doesnt seem used anywhere and
is broken - missing a join in the query, so the Tag.name filter does
nothing.
* tag.search_by_name() is deprecated because it isn't used in core ckan.
I think some sites will have a tag search, but they should really have
the code in their own repo, so we're giving them warning.




More information about the ckan-changes mailing list