[ckan-changes] [ckan/ckan] 6c89fa: Improve tests

David Read noreply at github.com
Fri Apr 12 16:44:51 UTC 2019


  Branch: refs/heads/3484_revision_ui_removal2
  Home:   https://github.com/ckan/ckan
  Commit: 6c89fa0327bd5f7201de500c0650a32ef5f1d517
      https://github.com/ckan/ckan/commit/6c89fa0327bd5f7201de500c0650a32ef5f1d517
  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