Skip to content
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

Add tasks filters #72

Merged
merged 2 commits into from
Nov 26, 2021
Merged

Conversation

orzionpour
Copy link
Collaborator

Fixes #62

Changes you made

  • Add tasks filters
  • Add tests for tasks filters

- Add tasks filters
- Add tests for tasks filters
@orzionpour orzionpour changed the title Add Tasks Filters Add tasks filters Nov 23, 2021
tasks/models.py Outdated Show resolved Hide resolved
tasks/models.py Outdated Show resolved Hide resolved
tasks/models.py Outdated Show resolved Hide resolved
tasks/test_tasks_filters.py Outdated Show resolved Hide resolved
tasks/test_tasks_filters.py Outdated Show resolved Hide resolved
Asafh7
Asafh7 previously approved these changes Nov 24, 2021
- Refactor code.
- Remove dummy test.
- Create new directory 'tests' for tasks app's test.
Copy link
Collaborator

@AvivLiberman AvivLiberman left a comment

Choose a reason for hiding this comment

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

Just need to merge it correctly with my PR #66

@mgold1234 mgold1234 requested a review from Asafh7 November 25, 2021 20:28
@mgold1234 mgold1234 merged commit 125582e into redhat-beyond:main Nov 26, 2021
orzionpour added a commit to orzionpour/falcon that referenced this pull request Nov 26, 2021
This was referenced Nov 26, 2021
orzionpour added a commit to orzionpour/falcon that referenced this pull request Nov 26, 2021
mgold1234 pushed a commit that referenced this pull request Nov 29, 2021
* Fix merge between PRs

- Fix merge between #66 and #72

* Create conftest.py

- Create conftest.py for reusable fixtures

* Add change_assignee function

- Add change_assignee function to Task model.
- Add tests for change_assignee

* Refactor conftest.py

- Removed use of Random to prevent unexpected behavior in tests.
- Changed to named parameters in user creations.

* Handle special cases

- Add new tests to validate the correctness of the function in special cases.

* Fix flake8 error

* Update change_assignee

- Add new user case handling: new_assignee is a user but not part of the system (not in DB)
- Add corresponding test

* Refactor conftest.py

* Refactor conftest.py

* Refactor test_change_assignee.py
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.

Filters tasks functions
6 participants