[ckan-changes] [ckan/ckan] 15507d: Improve tests

David Read noreply at github.com
Fri Apr 12 16:48:26 UTC 2019


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