[ckan-changes] [ckan/ckan] 69a75b: Improve tests
David Read
noreply at github.com
Fri Apr 12 16:21:32 UTC 2019
Branch: refs/heads/3484_revision_ui_removal2
Home: https://github.com/ckan/ckan
Commit: 69a75bba1964039435f436b20d7f92d37207385e
https://github.com/ckan/ckan/commit/69a75bba1964039435f436b20d7f92d37207385e
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