-
Notifications
You must be signed in to change notification settings - Fork 8
Remove redundant tests #466
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
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
322cae7
Remove some redundant tests.
gusmith 1b07fb0
When waiting for a run to finish in tests, always check that it is pr…
gusmith 429fc7d
run description is tested everytime we are posting a new run.
gusmith c76dd21
Crrect a typo.
gusmith f75f08f
Merge branch 'develop' into fix-457
gusmith File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
27 changes: 1 addition & 26 deletions
27
backend/entityservice/tests/test_project_run_description.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,5 @@ | ||
| import pytest | ||
| from entityservice.tests.config import url | ||
| from entityservice.tests.util import create_project_upload_fake_data, post_run, get_run | ||
|
|
||
|
|
||
| def test_run_description_missing_run(requests, project): | ||
| _ = get_run(requests, project, 'invalid', expected_status = 403) | ||
|
|
||
|
|
||
| def test_run_description_no_data(requests, project): | ||
| run_id = post_run(requests, project, 0.95) | ||
| run = get_run(requests, project, run_id) | ||
|
|
||
| assert 'run_id' in run | ||
| assert 'notes' in run | ||
| assert 'threshold' in run | ||
|
|
||
|
|
||
| def test_run_description(requests, result_type_number_parties): | ||
| THRESHOLD = .98 | ||
|
|
||
| result_type, number_parties = result_type_number_parties | ||
| project, _ = create_project_upload_fake_data( | ||
| requests, [100] * number_parties, overlap=0.5, result_type=result_type) | ||
| run_id = post_run(requests, project, THRESHOLD) | ||
| run = get_run(requests, project, run_id) | ||
|
|
||
| assert 'run_id' in run | ||
| assert 'notes' in run | ||
| assert run['threshold'] == THRESHOLD | ||
| _ = get_run(requests, project, 'invalid', expected_status=403) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 do not not approve of this change ;)