-
Notifications
You must be signed in to change notification settings - Fork 7
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
Task change assignee #83
Task change assignee #83
Conversation
- Fix merge between redhat-beyond#66 and redhat-beyond#72
- Create conftest.py for reusable fixtures
- Add change_assignee function to Task model. - Add tests for change_assignee
@orzionpour - Please add a meaningful description, In a human language - what is the change done in this PR - not which files are added etc. but something that your readers (including your future self) will understand. |
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.
Added some non-blocking comment. Please consider to fix them.
@nunnatsa |
- Removed use of Random to prevent unexpected behavior in tests. - Changed to named parameters in user creations.
- Add new tests to validate the correctness of the function in special cases.
- Add new user case handling: new_assignee is a user but not part of the system (not in DB) - Add corresponding test
Resolved conflicts with #74 - can be merged now. |
Fixes #77
This PR adds the ability to change the assigned employee of a given task in DB.
Changes you made
- Create conftest.py for reusable fixtures
Added fixtures that create a test DB we can use in future tests (and refactor previous tests to prevent code duplications that we already have).
- Add change_assignee function to Task model
This function is a Task instance's function that changes the assigned employee for the given task.
- Add change_assignee tests
Tests for change_assignee tests.