-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix backend tests on develop #6977
Fix backend tests on develop #6977
Conversation
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.
The PR is fine. But how did this pass before but fail after merge? Any insights on that please.
@nithusha21 its really strange that the tests passed on the previous PR. It really shouldn't as the previous test should fail(it was incorrect). At the moment I cannot understand why this happened. I will update you if I figure it out. |
@@ -956,6 +947,14 @@ def test_pre_update_validate_change_question_dict(self): | |||
'skill_id': 'skill_1' |
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.
Make it more obvious that this change is different, for example:
different_change = copy.copy(expected_suggestion_dict['change'])
del different_change['linked_skill_ids']
suggestion = # ...
# Adding questions will fail because the change is different.
with self.assertRaisesRegexp(...):
# ...
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.
This test will fail because the change is same not different. Not sure what you mean though
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 manually diffed self.suggestion_dict['change']
and the local change
here, and your local one is missing linked_skill_ids
. Are you saying that this was unintentional?
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.
Done as we discussed offline
Codecov Report
@@ Coverage Diff @@
## develop #6977 +/- ##
==========================================
Coverage ? 95.86%
==========================================
Files ? 371
Lines ? 52091
Branches ? 0
==========================================
Hits ? 49935
Misses ? 2156
Partials ? 0
Continue to review full report at Codecov.
|
Explanation
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.