[ckan-changes] [ckan/ckan] 3e1bec: [#1701] Move and clean up search index tests

GitHub noreply at github.com
Fri Aug 1 16:00:10 UTC 2014


  Branch: refs/heads/release-v2.2.1
  Home:   https://github.com/ckan/ckan
  Commit: 3e1becd23608096c154730810b9796188dc4a6ce
      https://github.com/ckan/ckan/commit/3e1becd23608096c154730810b9796188dc4a6ce
  Author: amercader <amercadero at gmail.com>
  Date:   2014-08-01 (Fri, 01 Aug 2014)

  Changed paths:
    A ckan/new_tests/lib/search/test_index.py
    M ckan/tests/lib/test_solr_search_index.py

  Log Message:
  -----------
  [#1701] Move and clean up search index tests


  Commit: 6d4ebdcf2e8ae2b2318fc778cf78acf240f099f2
      https://github.com/ckan/ckan/commit/6d4ebdcf2e8ae2b2318fc778cf78acf240f099f2
  Author: amercader <amercadero at gmail.com>
  Date:   2014-08-01 (Fri, 01 Aug 2014)

  Changed paths:
    M ckan/new_tests/lib/search/test_index.py

  Log Message:
  -----------
  [#1701] Add tests for date fields, including a failing one for #1701


  Commit: 52761dc06bbff78185205c3d2778d2293d637448
      https://github.com/ckan/ckan/commit/52761dc06bbff78185205c3d2778d2293d637448
  Author: amercader <amercadero at gmail.com>
  Date:   2014-08-01 (Fri, 01 Aug 2014)

  Changed paths:
    M ckan/lib/search/index.py

  Log Message:
  -----------
  [#1701] Don't index empty dates as the current one

When parsing an empty string, dateutil will always use a default one,
which by default is now(). We use here a fake date to see if that was
the case, and if so remove the value from the dict to index.


Compare: https://github.com/ckan/ckan/compare/bfe55711a9ef...52761dc06bbf


More information about the ckan-changes mailing list