osf.io
osf.io copied to clipboard
[Django Upgrade] [Reference PR] The rest of the fixes
Purpose
These are the final test changes and misc fixes for the Django upgrade.
Changes
- fix
header
changes to the response object. - remove unused/broken
update_version_metadata
tests - add
DEFAULT_AUTO_FIELD
to silience depreciation warnings. - change
test_node_shows_related_count_for_linked_by_relationships
to match new behavior -
api_tests/nodes/views/test_node_draft_registration_detail.py
to use real registration schema - fixes
provider__reviews_workflow
keyword agruement provide subfactory problem with PreprintFactory - removes 'view_node', to fix admin tests.
- turn notification email off for tests.
- reload referents for cached properties
- ensure
creator
auth is passed inRegistrationFactory
QA Notes
Please make verification statements inspired by your code and what your code touches.
- Verify
- Verify
What are the areas of risk?
Any concerns/considerations/questions that development raised?