Skip to content

Conversation

@Johnetordoff
Copy link
Contributor

Purpose

Fix problems api3 test branch and the collections submissions tests.

Changes

  • delete OSF groups test directory causing whole branch to silently pass
  • fix collection submission tests

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?

Documentation

Side Effects

Ticket

https://openscience.atlassian.net/browse/ENG-9681

def collection(collection_provider):
collection = CollectionFactory(is_public=True)
collection.provider = collection_provider
with capture_notifications():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would fail because it didn't send notifications.

def collection(collection_provider):
collection = CollectionFactory()
collection.provider = collection_provider
with capture_notifications():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would fail because it didn't send notifications.

collection_submission=collection_submission,
trigger=moderator_trigger.db_name
), auth=test_auth, expect_errors=True)
with capture_notifications() as notifications:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds needed email mocking.

'api_tests/guids',
'api_tests/meetings',
'api_tests/metadata_records',
'api_tests/osf_groups',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having this one line here forces the whole branch to silently pass automatically, obviously that is bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants