-
Notifications
You must be signed in to change notification settings - Fork 44
test: remove failing test cases #567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
tests/controllers/test_fair_check.py
Outdated
| def test_check_unique_metadata_identifier(fair_check: FAIRCheck) -> None: | ||
| result = fair_check.check_unique_metadata_identifier() | ||
| expected = {"guid": UID, "guid_scheme": "doi"} | ||
| expected = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this output expected? It makes the test pass.
But it looks redundant to me. Can you please confirm?
expected = {
"unique_identifiers": [{"guid": UID, "guid_scheme": "doi", "target": "metadata"}],
"guid": UID,
"guid_scheme": "doi",
}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is indeed redundant already within the swagger yaml:
Uniqueness_output:
type: object
properties:
unique_identifiers:
type: array
items:
$ref: '#/components/schemas/Uniqueness_output_inner'
guid:
type: string
guid_scheme:
type: string
Uniqueness_output_inner:
type: object
properties:
guid:
type: string
guid_scheme:
type: string
target:
type: string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But according to this, the test looks correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. How to deal with this? Accept the redundancy?
I broke down this large PR into manageable chunks, the fix discussed here was merged yesterday via #568
|
This PR is ready for review. Tests are passing, due to removing failing tests. |
Description
Related issue: #566
Types of changes
Checklist