-
Notifications
You must be signed in to change notification settings - Fork 66
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
Basic file serving #28
Conversation
@@ -157,10 +163,11 @@ def post(self, **kwargs): | |||
args = parser.parse(self.post_args, request) | |||
try: | |||
if args['location_id']: | |||
location = Location.get(args['location_id']) | |||
# TODO: Check why query is used directly. | |||
location = Location.query.get(args['location_id']) |
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.
Location.get_by_name()
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.
Should I also rename args['location_id'] to 'location_name' or 'location'?
@drjova You can merge. Running to a meeting now :-) |
@ddaze could you please rebase :) |
I think you'll have to rebase again |
* Adds file serving tests. (addresses #15) * Replaces bucket `location_id` parameter with `location_name`. * Adds basic serialize function. * Adds objects test fixture. Signed-off-by: David Zerulla <ddaze@outlook.de>
okay 🚶 :D |
assert resp.status_code == 200 | ||
|
||
|
||
def test_post_bucket(app, dummy_location): |
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.
Do you really need the dummy_location
here?
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.
Yes, without a location no bucket can be created.
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.
👍
No description provided.