[ckan-changes] [ckan/ckan] 41203f: Improve tests

David Read noreply at github.com
Fri Apr 12 16:29:11 UTC 2019


  Branch: refs/heads/3484_revision_ui_removal2
  Home:   https://github.com/ckan/ckan
  Commit: 41203fa73f90a411836362d56d789f2f777a31e8
      https://github.com/ckan/ckan/commit/41203fa73f90a411836362d56d789f2f777a31e8
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-04-12 (Fri, 12 Apr 2019)

  Changed paths:
    M ckan/migration/migrate_package_activity.py
    M ckan/migration/revision_legacy_code.py
    M ckan/model/__init__.py
    M ckan/tests/migration/test_migrate_package_activity.py
    M ckan/tests/migration/test_revision_legacy_code.py
    M ckan/views/dataset.py

  Log Message:
  -----------
  Improve tests

* Use PackageDictizeMonkeyPatch to patch package_dictize, because a context manager like this cleans up after itself effectively, so any tests that run after test_migrate_package_activity.py and test_revision_legacy_code.py will use the standard package_show now.
* Fix test_revision_legacy_code.py now package_extra_revision table is not being populated at the moment.
* Copied in create_object_version() from vdm, so we can use PackageExtraRevision without its .continuity being mapped to the PackageExtra.




More information about the ckan-changes mailing list