-
Notifications
You must be signed in to change notification settings - Fork 45
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
[301] teams endpoints (fixes#301) #311
[301] teams endpoints (fixes#301) #311
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.
Just some minor comments
backend/tests/test_team_details.py
Outdated
response = rv.get_json() | ||
assert rv.status_code == HTTPStatus.OK | ||
if method == "get": | ||
assert response == TeamSchema().dump(team_db) |
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.
Shouldn't we check for delete
metohd that the item is removed?
backend/tests/test_team_details.py
Outdated
def test_remove_all_members_from_team(auth_client, add_members_to_team): | ||
"""Test remove all members from team.""" | ||
team_db = Team.query.get(1) | ||
members_id = [member.id for member in team_db.members] |
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 think that would be pluarl for ids, not members: member_ids
Story / Bug id:
301
Description:
New endpoints for teams
Migrations:
N/A
New imports / dependencies:
N/A
What tests do I need to run to validate this change:
Populate database (team factory was created). Then check new endpoints:
GET,POST: /api/teams/
GET,PUT,DELETE: /api/teams//
POST,DELETE: /api/teams//members/