Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
victorwu95 committed Nov 5, 2018
1 parent 37053db commit 0a7afc3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion bounce/server/api/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ async def put(self, request, username, id_from_token=None):
body = util.strip_whitespace(request.json)
secret = None
email = None
# email = body.get('email', None)
# Make sure the ID from the token is for the user we're updating
user_row = user.select(self.server.db_session, username)
if not user_row:
Expand Down
18 changes: 0 additions & 18 deletions tests/api/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,6 @@ def test_post_users__failure(server):
assert response.status == 400
assert 'error' in response.json


# def test_put_user__success(server):
# username = 'test'
# token = util.create_jwt(1, server.config.secret)
# _, response = server.app.test_client.put(
# f'/users/{username}',
# data=json.dumps({
# 'full_name': 'New Name',
# 'email': 'newemail@test.com'
# }),
# headers={'Authorization': token})
# assert response.status == 200
# assert response.json['username'] == username
# assert response.json['full_name'] == 'New Name'
# assert response.json['email'] == 'newemail@test.com'
# assert response.json['id'] == 1
# assert isinstance(response.json['created_at'], int)

def test_put_user__success(server):
username = 'test'
token = util.create_jwt(1, server.config.secret)
Expand Down

0 comments on commit 0a7afc3

Please sign in to comment.