[ckan-changes] [ckan/ckan] 252e95: [#1386] Add factories for Dataset and Resources
GitHub
noreply at github.com
Tue Apr 22 20:27:29 UTC 2014
Branch: refs/heads/master
Home: https://github.com/ckan/ckan
Commit: 252e95918ee342058c2c8704752028096d665dbc
https://github.com/ckan/ckan/commit/252e95918ee342058c2c8704752028096d665dbc
Author: amercader <amercadero at gmail.com>
Date: 2013-12-12 (Thu, 12 Dec 2013)
Changed paths:
M ckan/new_tests/factories.py
Log Message:
-----------
[#1386] Add factories for Dataset and Resources
Commit: 56955c01c4588d4a7de955269f41bb4f514d4319
https://github.com/ckan/ckan/commit/56955c01c4588d4a7de955269f41bb4f514d4319
Author: amercader <amercadero at gmail.com>
Date: 2013-12-12 (Thu, 12 Dec 2013)
Changed paths:
M ckan/new_tests/factories.py
Log Message:
-----------
[#1386] Allow to define auth user when using factories
When creating an instance of the factory, users can provide an 'auth_user'
keyword argument with the name of the user that should perform the action.
If they don't provide the 'auth_user' argument the site user will be used
(this user is a sysadmin). If the action should be performed anonymously
(ie no logged in user), auth_user=None should be provided.
Note that the keyword argument could not be named 'user', as some action
functions use this same parameter.
Commit: 910573bfa0f5a2fc05f23f59ffa96cf73d4f648a
https://github.com/ckan/ckan/commit/910573bfa0f5a2fc05f23f59ffa96cf73d4f648a
Author: amercader <amercadero at gmail.com>
Date: 2013-12-13 (Fri, 13 Dec 2013)
Changed paths:
M ckan/new_tests/factories.py
Log Message:
-----------
[#1386] PEP8 fixes
Commit: f9961a56e441a5a3d05190bf64fe364ce2002a8e
https://github.com/ckan/ckan/commit/f9961a56e441a5a3d05190bf64fe364ce2002a8e
Author: Vitor Baptista <vitor at vitorbaptista.com>
Date: 2014-04-11 (Fri, 11 Apr 2014)
Changed paths:
R .gitmodules
M .travis.yml
M .tx/config
M CHANGELOG.rst
M CONTRIBUTING.rst
M MANIFEST.in
M README.rst
A __init__.py b/ckanext/example_theme/v20_pubsub/__init__.py
M bin/travis-install-dependencies
M ckan/__init__.py
M ckan/config/deployment.ini_tmpl
M ckan/config/middleware.py
A ckan/config/resource_formats.json
M ckan/config/routing.py
M ckan/config/who.ini
M ckan/controllers/feed.py
M ckan/controllers/group.py
M ckan/controllers/home.py
M ckan/controllers/package.py
M ckan/controllers/related.py
M ckan/controllers/revision.py
M ckan/controllers/user.py
M ckan/controllers/util.py
M ckan/i18n/ar/LC_MESSAGES/ckan.mo
M ckan/i18n/ar/LC_MESSAGES/ckan.po
M ckan/i18n/bg/LC_MESSAGES/ckan.mo
M ckan/i18n/bg/LC_MESSAGES/ckan.po
M ckan/i18n/ca/LC_MESSAGES/ckan.mo
M ckan/i18n/ca/LC_MESSAGES/ckan.po
M ckan/i18n/ckan.pot
M ckan/i18n/cs_CZ/LC_MESSAGES/ckan.mo
M ckan/i18n/cs_CZ/LC_MESSAGES/ckan.po
M ckan/i18n/da_DK/LC_MESSAGES/ckan.mo
M ckan/i18n/da_DK/LC_MESSAGES/ckan.po
M ckan/i18n/de/LC_MESSAGES/ckan.mo
M ckan/i18n/de/LC_MESSAGES/ckan.po
M ckan/i18n/dv/LC_MESSAGES/ckan.mo
M ckan/i18n/dv/LC_MESSAGES/ckan.po
M ckan/i18n/el/LC_MESSAGES/ckan.mo
M ckan/i18n/el/LC_MESSAGES/ckan.po
M ckan/i18n/en_AU/LC_MESSAGES/ckan.mo
M ckan/i18n/en_AU/LC_MESSAGES/ckan.po
M ckan/i18n/en_GB/LC_MESSAGES/ckan.mo
M ckan/i18n/en_GB/LC_MESSAGES/ckan.po
M ckan/i18n/es/LC_MESSAGES/ckan.mo
M ckan/i18n/es/LC_MESSAGES/ckan.po
M ckan/i18n/es_AR/LC_MESSAGES/ckan.mo
M ckan/i18n/es_AR/LC_MESSAGES/ckan.po
M ckan/i18n/fa_IR/LC_MESSAGES/ckan.mo
M ckan/i18n/fa_IR/LC_MESSAGES/ckan.po
M ckan/i18n/fi/LC_MESSAGES/ckan.mo
M ckan/i18n/fi/LC_MESSAGES/ckan.po
M ckan/i18n/fr/LC_MESSAGES/ckan.mo
M ckan/i18n/fr/LC_MESSAGES/ckan.po
A ckan/i18n/he/LC_MESSAGES/ckan.mo
A ckan/i18n/he/LC_MESSAGES/ckan.po
M ckan/i18n/hu/LC_MESSAGES/ckan.mo
M ckan/i18n/hu/LC_MESSAGES/ckan.po
M ckan/i18n/id/LC_MESSAGES/ckan.mo
M ckan/i18n/id/LC_MESSAGES/ckan.po
M ckan/i18n/is/LC_MESSAGES/ckan.mo
M ckan/i18n/is/LC_MESSAGES/ckan.po
M ckan/i18n/it/LC_MESSAGES/ckan.mo
M ckan/i18n/it/LC_MESSAGES/ckan.po
M ckan/i18n/ja/LC_MESSAGES/ckan.mo
M ckan/i18n/ja/LC_MESSAGES/ckan.po
M ckan/i18n/km/LC_MESSAGES/ckan.mo
M ckan/i18n/km/LC_MESSAGES/ckan.po
M ckan/i18n/ko_KR/LC_MESSAGES/ckan.mo
M ckan/i18n/ko_KR/LC_MESSAGES/ckan.po
M ckan/i18n/lt/LC_MESSAGES/ckan.mo
M ckan/i18n/lt/LC_MESSAGES/ckan.po
M ckan/i18n/lv/LC_MESSAGES/ckan.mo
M ckan/i18n/lv/LC_MESSAGES/ckan.po
M ckan/i18n/my_MM/LC_MESSAGES/ckan.mo
M ckan/i18n/my_MM/LC_MESSAGES/ckan.po
M ckan/i18n/nl/LC_MESSAGES/ckan.mo
M ckan/i18n/nl/LC_MESSAGES/ckan.po
M ckan/i18n/no/LC_MESSAGES/ckan.mo
M ckan/i18n/no/LC_MESSAGES/ckan.po
M ckan/i18n/pl/LC_MESSAGES/ckan.mo
M ckan/i18n/pl/LC_MESSAGES/ckan.po
M ckan/i18n/pt_BR/LC_MESSAGES/ckan.mo
M ckan/i18n/pt_BR/LC_MESSAGES/ckan.po
M ckan/i18n/ro/LC_MESSAGES/ckan.mo
M ckan/i18n/ro/LC_MESSAGES/ckan.po
M ckan/i18n/ru/LC_MESSAGES/ckan.mo
M ckan/i18n/ru/LC_MESSAGES/ckan.po
M ckan/i18n/sk/LC_MESSAGES/ckan.mo
M ckan/i18n/sk/LC_MESSAGES/ckan.po
M ckan/i18n/sl/LC_MESSAGES/ckan.mo
M ckan/i18n/sl/LC_MESSAGES/ckan.po
M ckan/i18n/sq/LC_MESSAGES/ckan.mo
M ckan/i18n/sq/LC_MESSAGES/ckan.po
M ckan/i18n/sr/LC_MESSAGES/ckan.mo
M ckan/i18n/sr/LC_MESSAGES/ckan.po
M ckan/i18n/sr_Latn/LC_MESSAGES/ckan.mo
M ckan/i18n/sr_Latn/LC_MESSAGES/ckan.po
M ckan/i18n/sv/LC_MESSAGES/ckan.mo
M ckan/i18n/sv/LC_MESSAGES/ckan.po
M ckan/i18n/tr/LC_MESSAGES/ckan.mo
M ckan/i18n/tr/LC_MESSAGES/ckan.po
M ckan/i18n/uk_UA/LC_MESSAGES/ckan.mo
M ckan/i18n/uk_UA/LC_MESSAGES/ckan.po
A ckan/i18n/vi/LC_MESSAGES/ckan.mo
A ckan/i18n/vi/LC_MESSAGES/ckan.po
A ckan/i18n/vi_VN/LC_MESSAGES/ckan.mo
A ckan/i18n/vi_VN/LC_MESSAGES/ckan.po
M ckan/i18n/zh_CN/LC_MESSAGES/ckan.mo
M ckan/i18n/zh_CN/LC_MESSAGES/ckan.po
M ckan/i18n/zh_TW/LC_MESSAGES/ckan.mo
M ckan/i18n/zh_TW/LC_MESSAGES/ckan.po
M ckan/lib/cli.py
M ckan/lib/create_test_data.py
M ckan/lib/dictization/__init__.py
M ckan/lib/dictization/model_dictize.py
M ckan/lib/dictization/model_save.py
M ckan/lib/helpers.py
M ckan/lib/mailer.py
M ckan/lib/munge.py
M ckan/lib/navl/validators.py
M ckan/lib/plugins.py
M ckan/logic/__init__.py
M ckan/logic/action/__init__.py
M ckan/logic/action/create.py
M ckan/logic/action/delete.py
M ckan/logic/action/get.py
M ckan/logic/action/update.py
M ckan/logic/auth/__init__.py
M ckan/logic/auth/create.py
M ckan/logic/auth/delete.py
M ckan/logic/auth/get.py
M ckan/logic/converters.py
M ckan/logic/schema.py
M ckan/logic/validators.py
M ckan/model/license.py
M ckan/model/resource.py
M ckan/model/user.py
A ckan/new_tests/controllers/test_util.py
M ckan/new_tests/factories.py
M ckan/new_tests/helpers.py
A ckan/new_tests/lib/test_helpers.py
M ckan/new_tests/logic/action/__init__.py
A ckan/new_tests/logic/action/test_create.py
M ckan/new_tests/logic/action/test_get.py
M ckan/new_tests/logic/auth/__init__.py
A ckan/new_tests/logic/auth/test_create.py
A ckan/new_tests/logic/auth/test_init.py
M ckan/new_tests/logic/auth/test_update.py
A ckan/new_tests/logic/test_converters.py
M ckan/new_tests/logic/test_validators.py
M ckan/plugins/interfaces.py
M ckan/plugins/toolkit.py
M ckan/public/base/css/fuchsia.css
M ckan/public/base/css/green.css
M ckan/public/base/css/main.css
M ckan/public/base/css/maroon.css
M ckan/public/base/css/red.css
M ckan/public/base/javascript/modules/autocomplete.js
M ckan/public/base/javascript/modules/custom-fields.js
M ckan/public/base/less/dataset.less
M ckan/public/base/less/layout.less
M ckan/public/base/test/spec/modules/custom-fields.spec.js
R ckan/public/base/vendor/jquery.ui.widget.min.js
M ckan/templates/activity_streams/activity_stream_items.html
M ckan/templates/admin/index.html
M ckan/templates/group/about.html
M ckan/templates/group/member_new.html
M ckan/templates/group/members.html
M ckan/templates/group/read.html
M ckan/templates/group/snippets/group_form.html
M ckan/templates/group/snippets/group_item.html
M ckan/templates/group/snippets/group_list.html
M ckan/templates/group/snippets/info.html
M ckan/templates/header.html
M ckan/templates/home/layout1.html
M ckan/templates/home/layout2.html
M ckan/templates/home/layout3.html
M ckan/templates/home/snippets/promoted.html
M ckan/templates/home/snippets/search.html
M ckan/templates/macros/form.html
M ckan/templates/organization/about.html
M ckan/templates/organization/bulk_process.html
M ckan/templates/organization/read.html
M ckan/templates/organization/snippets/feeds.html
M ckan/templates/organization/snippets/organization_item.html
M ckan/templates/organization/snippets/organization_list.html
M ckan/templates/package/edit_base.html
M ckan/templates/package/new_resource.html
M ckan/templates/package/new_resource_not_draft.html
M ckan/templates/package/resource_edit_base.html
M ckan/templates/package/resource_read.html
M ckan/templates/package/search.html
M ckan/templates/package/snippets/info.html
M ckan/templates/package/snippets/package_basic_fields.html
M ckan/templates/package/snippets/package_context.html
M ckan/templates/package/snippets/package_form.html
M ckan/templates/package/snippets/package_metadata_form.html
M ckan/templates/package/snippets/resource_form.html
M ckan/templates/package/snippets/resource_item.html
M ckan/templates/package/snippets/resources.html
M ckan/templates/package/snippets/resources_list.html
M ckan/templates/page.html
M ckan/templates/related/snippets/related_item.html
M ckan/templates/snippets/facet_list.html
M ckan/templates/snippets/follow_button.html
M ckan/templates/snippets/group.html
M ckan/templates/snippets/group_item.html
M ckan/templates/snippets/license.html
M ckan/templates/snippets/organization.html
M ckan/templates/snippets/organization_item.html
M ckan/templates/snippets/package_item.html
M ckan/templates/snippets/package_list.html
M ckan/templates/snippets/search_form.html
M ckan/templates/snippets/social.html
M ckan/templates/snippets/tag_list.html
M ckan/templates/user/login.html
M ckan/templates/user/new.html
M ckan/templates/user/new_user_form.html
M ckan/templates/user/perform_reset.html
M ckan/templates/user/read_base.html
M ckan/templates/user/request_reset.html
M ckan/templates/user/snippets/followee_dropdown.html
M ckan/templates/user/snippets/login_form.html
M ckan/templates_legacy/layout_base.html
M ckan/templates_legacy/snippets/data-viewer-embed-branded-link.html
M ckan/tests/functional/api/base.py
M ckan/tests/functional/api/model/test_package.py
M ckan/tests/functional/test_package.py
M ckan/tests/functional/test_related.py
M ckan/tests/functional/test_user.py
M ckan/tests/lib/test_dictization.py
M ckan/tests/lib/test_resource_search.py
M ckan/tests/logic/test_action.py
M ckan/tests/logic/test_auth.py
M ckan/tests/test_coding_standards.py
R ckan_deb/DEBIAN/control.template
R ckan_deb/usr/bin/ckan-create-instance
R ckan_deb/usr/bin/ckan-instance-maintenance
R ckan_deb/usr/bin/ckan-setup-solr
R ckan_deb/usr/lib/ckan/common.sh
M ckanext/datapusher/logic/action.py
M ckanext/datapusher/plugin.py
M ckanext/datapusher/tests/test.py
M ckanext/datastore/db.py
M ckanext/datastore/plugin.py
R ckanext/example_iauthfunctions/plugin.py
A ckanext/example_iauthfunctions/plugin_v4.py
A ckanext/example_iauthfunctions/plugin_v5_custom_config_setting.py
M ckanext/example_iauthfunctions/tests/test_example_iauthfunctions.py
A ckanext/example_theme/__init__.py
A ckanext/example_theme/custom_config_setting/__init__.py
A ckanext/example_theme/custom_config_setting/plugin.py
A ckanext/example_theme/custom_config_setting/templates/home/layout1.html
A ckanext/example_theme/custom_config_setting/templates/snippets
A ckanext/example_theme/v01_empty_extension/__init__.py
A ckanext/example_theme/v01_empty_extension/plugin.py
A ckanext/example_theme/v02_empty_template/__init__.py
A ckanext/example_theme/v02_empty_template/plugin.py
A ckanext/example_theme/v02_empty_template/templates/home/index.html
A ckanext/example_theme/v03_jinja/__init__.py
A ckanext/example_theme/v03_jinja/plugin.py
A ckanext/example_theme/v03_jinja/templates/home/index.html
A ckanext/example_theme/v04_ckan_extends/__init__.py
A ckanext/example_theme/v04_ckan_extends/plugin.py
A ckanext/example_theme/v04_ckan_extends/templates/home/index.html
A ckanext/example_theme/v05_block/__init__.py
A ckanext/example_theme/v05_block/plugin.py
A ckanext/example_theme/v05_block/templates/home/layout1.html
A ckanext/example_theme/v06_super/__init__.py
A ckanext/example_theme/v06_super/plugin.py
A ckanext/example_theme/v06_super/templates/home/layout1.html
A ckanext/example_theme/v07_helper_function/__init__.py
A ckanext/example_theme/v07_helper_function/plugin.py
A ckanext/example_theme/v07_helper_function/templates/home/layout1.html
A ckanext/example_theme/v08_custom_helper_function/__init__.py
A ckanext/example_theme/v08_custom_helper_function/plugin.py
A ckanext/example_theme/v08_custom_helper_function/templates/home/layout1.html
A ckanext/example_theme/v09_snippet/__init__.py
A ckanext/example_theme/v09_snippet/plugin.py
A ckanext/example_theme/v09_snippet/templates/home/layout1.html
A ckanext/example_theme/v10_custom_snippet/__init__.py
A ckanext/example_theme/v10_custom_snippet/plugin.py
A ckanext/example_theme/v10_custom_snippet/templates/home/layout1.html
A ckanext/example_theme/v10_custom_snippet/templates/snippets/example_theme_most_popular_groups.html
A ckanext/example_theme/v11_HTML_and_CSS/__init__.py
A ckanext/example_theme/v11_HTML_and_CSS/plugin.py
A ckanext/example_theme/v11_HTML_and_CSS/templates/home/layout1.html
A ckanext/example_theme/v11_HTML_and_CSS/templates/snippets/example_theme_most_popular_groups.html
A ckanext/example_theme/v12_extra_public_dir/__init__.py
A ckanext/example_theme/v12_extra_public_dir/plugin.py
A ckanext/example_theme/v12_extra_public_dir/public/promoted-image.jpg
A ckanext/example_theme/v12_extra_public_dir/templates/home/layout1.html
A ckanext/example_theme/v12_extra_public_dir/templates/home/snippets/promoted.html
A ckanext/example_theme/v12_extra_public_dir/templates/snippets
A ckanext/example_theme/v13_custom_css/__init__.py
A ckanext/example_theme/v13_custom_css/plugin.py
A ckanext/example_theme/v13_custom_css/public/example_theme.css
A ckanext/example_theme/v13_custom_css/public/promoted-image.jpg
A ckanext/example_theme/v13_custom_css/templates/base.html
A ckanext/example_theme/v13_custom_css/templates/home
A ckanext/example_theme/v13_custom_css/templates/snippets
A ckanext/example_theme/v14_more_custom_css/__init__.py
A ckanext/example_theme/v14_more_custom_css/plugin.py
A ckanext/example_theme/v14_more_custom_css/public/example_theme.css
A ckanext/example_theme/v14_more_custom_css/public/promoted-image.jpg
A ckanext/example_theme/v14_more_custom_css/templates
A ckanext/example_theme/v15_fanstatic/__init__.py
A ckanext/example_theme/v15_fanstatic/fanstatic/example_theme.css
A ckanext/example_theme/v15_fanstatic/plugin.py
A ckanext/example_theme/v15_fanstatic/public/promoted-image.jpg
A ckanext/example_theme/v15_fanstatic/templates/base.html
A ckanext/example_theme/v15_fanstatic/templates/home
A ckanext/example_theme/v15_fanstatic/templates/snippets
A ckanext/example_theme/v16_initialize_a_javascript_module/__init__.py
A ckanext/example_theme/v16_initialize_a_javascript_module/fanstatic/example_theme_popover.js
A ckanext/example_theme/v16_initialize_a_javascript_module/plugin.py
A ckanext/example_theme/v16_initialize_a_javascript_module/templates/snippets/package_item.html
A ckanext/example_theme/v17_popover/__init__.py
A ckanext/example_theme/v17_popover/fanstatic/example_theme_popover.js
A ckanext/example_theme/v17_popover/plugin.py
A ckanext/example_theme/v17_popover/templates/snippets/package_item.html
A ckanext/example_theme/v18_snippet_api/__init__.py
A ckanext/example_theme/v18_snippet_api/fanstatic/example_theme_popover.css
A ckanext/example_theme/v18_snippet_api/fanstatic/example_theme_popover.js
A ckanext/example_theme/v18_snippet_api/plugin.py
A ckanext/example_theme/v18_snippet_api/templates/ajax_snippets/example_theme_popover.html
A ckanext/example_theme/v18_snippet_api/templates/snippets/package_item.html
A ckanext/example_theme/v19_01_error/__init__.py
A ckanext/example_theme/v19_01_error/fanstatic/example_theme_popover.css
A ckanext/example_theme/v19_01_error/fanstatic/example_theme_popover.js
A ckanext/example_theme/v19_01_error/plugin.py
A ckanext/example_theme/v19_01_error/templates
A ckanext/example_theme/v19_02_error_handling/__init__.py
A ckanext/example_theme/v19_02_error_handling/fanstatic/example_theme_popover.css
A ckanext/example_theme/v19_02_error_handling/fanstatic/example_theme_popover.js
A ckanext/example_theme/v19_02_error_handling/plugin.py
A ckanext/example_theme/v19_02_error_handling/templates
A ckanext/example_theme/v20_pubsub/fanstatic/example_theme_popover.css
A ckanext/example_theme/v20_pubsub/fanstatic/example_theme_popover.js
A ckanext/example_theme/v20_pubsub/plugin.py
A ckanext/example_theme/v20_pubsub/templates
A ckanext/example_theme/v21_custom_jquery_plugin/__init__.py
A ckanext/example_theme/v21_custom_jquery_plugin/fanstatic/example_theme_popover.css
A ckanext/example_theme/v21_custom_jquery_plugin/fanstatic/example_theme_popover.js
A ckanext/example_theme/v21_custom_jquery_plugin/fanstatic/jquery.greenify.js
A ckanext/example_theme/v21_custom_jquery_plugin/plugin.py
A ckanext/example_theme/v21_custom_jquery_plugin/templates/ajax_snippets
A ckanext/example_theme/v21_custom_jquery_plugin/templates/snippets/package_item.html
M ckanext/textpreview/tests/test_preview.py
M dev-requirements.txt
A doc/.gitignore
M doc/_templates/footer.html
R doc/api.rst
A doc/api/index.rst
A doc/api/legacy-api.rst
R doc/appendices/index.rst
R doc/ckan-coding-standards.rst
M doc/conf.py
M doc/contents.rst
R doc/contributing.rst
A doc/contributing/architecture.rst
A doc/contributing/commit-messages.rst
A doc/contributing/css.rst
A doc/contributing/database-migrations.rst
A doc/contributing/documentation.rst
A doc/contributing/frontend/index.rst
A doc/contributing/frontend/javascript-module-tutorial.rst
A doc/contributing/frontend/resources.rst
A doc/contributing/frontend/template-blocks.rst
A doc/contributing/frontend/template-tutorial.rst
A doc/contributing/frontend/templating.rst
A doc/contributing/html.rst
A doc/contributing/i18n.rst
A doc/contributing/index.rst
R doc/css-coding-standards.rst
R doc/documentation-guidelines.rst
R doc/frontend-development.rst
R doc/html-coding-standards.rst
R doc/i18n.rst
R doc/javascript-module-tutorial.rst
R doc/legacy-api.rst
R doc/migration.rst
R doc/resources.rst
R doc/template-blocks.rst
R doc/template-tutorial.rst
R doc/templating.rst
Log Message:
-----------
Merge branch 'master' into 1386-improve-factories
Conflicts:
ckan/new_tests/factories.py
Commit: 82a32806d46fb08f5394afa816683ea2a3db4758
https://github.com/ckan/ckan/commit/82a32806d46fb08f5394afa816683ea2a3db4758
Author: Vitor Baptista <vitor at vitorbaptista.com>
Date: 2014-04-11 (Fri, 11 Apr 2014)
Changed paths:
M ckan/new_tests/factories.py
Log Message:
-----------
[#1386] Fix bug when creating multiple sysadmins
Commit: cacb9340fa25fb8a231450fe79ee0e6b2aa70e04
https://github.com/ckan/ckan/commit/cacb9340fa25fb8a231450fe79ee0e6b2aa70e04
Author: Vitor Baptista <vitor at vitorbaptista.com>
Date: 2014-04-11 (Fri, 11 Apr 2014)
Changed paths:
M ckan/new_tests/factories.py
A ckan/new_tests/test_factories.py
Log Message:
-----------
[#1386] Add basic tests for the factories
These tests are very simple: try to create two objects using each factory, but
they already helped me find some bugs (fixed in this commit).
This also guarantees that we can safely call each factory with no parameters,
and they're not reusing unique variables (like was the case for the Sysadmin).
Commit: b7ffdf299e450159044c54df822ec060d71731f2
https://github.com/ckan/ckan/commit/b7ffdf299e450159044c54df822ec060d71731f2
Author: Vitor Baptista <vitor at vitorbaptista.com>
Date: 2014-04-15 (Tue, 15 Apr 2014)
Changed paths:
M ckan/new_tests/test_factories.py
Log Message:
-----------
[#1386] The factories' tests must work without reseting the DB between methods
The factories' methods should work no mater which order they're called, nor how
many times they're called. Because of this, we don't need to reset the DB
inbetween each test method. If this doesn't work, it's because the factories
are broken.
Commit: 3e14850edd94cad7e8a299cea6334098223e4e82
https://github.com/ckan/ckan/commit/3e14850edd94cad7e8a299cea6334098223e4e82
Author: Vitor Baptista <vitor at vitorbaptista.com>
Date: 2014-04-15 (Tue, 15 Apr 2014)
Changed paths:
M ckan/new_tests/factories.py
Log Message:
-----------
[#1386] Fix _get_action_user_name() docs, as we renamed auth_user -> user
Commit: 80b531966407a1a48d23ad80b971fde337ebf046
https://github.com/ckan/ckan/commit/80b531966407a1a48d23ad80b971fde337ebf046
Author: Vitor Baptista <vitor at vitorbaptista.com>
Date: 2014-04-15 (Tue, 15 Apr 2014)
Changed paths:
M ckan/new_tests/factories.py
M ckan/new_tests/test_factories.py
Log Message:
-----------
[#1386] Fix bug where the dataset factory didn't allow to use anonymous user
Commit: 05b87bdcb399fa50019096cb30b67b7f5dbaca79
https://github.com/ckan/ckan/commit/05b87bdcb399fa50019096cb30b67b7f5dbaca79
Author: Vitor Baptista <vitor at vitorbaptista.com>
Date: 2014-04-15 (Tue, 15 Apr 2014)
Changed paths:
M ckan/new_tests/factories.py
Log Message:
-----------
[#1386] Simplify docs for _get_action_user_name()
The documentation on how to create, for example, a Dataset with an specific
user is specific to the Dataset factory. The same can be said for any factory
that allows an user.
It would be good to use the same pattern (passing a user dict as "user" to the
factory) in all factories.
Commit: da028ac32514af5b03d4fbec1662ea34e9de22dc
https://github.com/ckan/ckan/commit/da028ac32514af5b03d4fbec1662ea34e9de22dc
Author: Vitor Baptista <vitor at vitorbaptista.com>
Date: 2014-04-15 (Tue, 15 Apr 2014)
Changed paths:
M ckan/new_tests/factories.py
Log Message:
-----------
[#1386] Use a unique name for each created Resource
Commit: 9567f83a2460e9acc251fb18e96f9ea60e1447bd
https://github.com/ckan/ckan/commit/9567f83a2460e9acc251fb18e96f9ea60e1447bd
Author: Vitor Baptista <vitor at vitorbaptista.com>
Date: 2014-04-22 (Tue, 22 Apr 2014)
Changed paths:
M ckan/new_tests/factories.py
Log Message:
-----------
[#1386] Small refactoring in a factories' helper
Commit: 84536aa099f86b7a251028a59e923a4a21f2a1de
https://github.com/ckan/ckan/commit/84536aa099f86b7a251028a59e923a4a21f2a1de
Author: Vitor Baptista <vitor at vitorbaptista.com>
Date: 2014-04-22 (Tue, 22 Apr 2014)
Changed paths:
M ckan/new_tests/factories.py
A ckan/new_tests/test_factories.py
Log Message:
-----------
Merge pull request #1386 from ckan/1386-improve-factories
[WIP] Improve new tests factories
Compare: https://github.com/ckan/ckan/compare/78b6e6dadc0e...84536aa099f8
More information about the ckan-changes
mailing list