-
Notifications
You must be signed in to change notification settings - Fork 1
src(attachment): Use attrs + cattrs #134
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
Conversation
a4ba71a
to
4d3d608
Compare
4d3d608
to
70eb7e2
Compare
responses.add( | ||
responses.GET, | ||
ENDPOINT_BASE + f"/experiments/{EXP_ID}/attachments", | ||
json=[attachment.to_dict()], | ||
) | ||
att = Attachment.get(EXP_ID, attachment._id) | ||
att = client.get_attachment(EXP_ID, attachment._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.
Relates to #112 (comment)
It looks like we still have Attachment.get/upload
now, but they're no longer tested. Copy these tests to test both?
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.
👍
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.
Looks like you still need one for Attachment.upload
; only client.upload_attachment
is tested.
46b80e8
to
2d35c99
Compare
70eb7e2
to
13a2dcb
Compare
7148f83
to
d77f707
Compare
13a2dcb
to
804f6af
Compare
804f6af
to
507f981
Compare
Looks good % the missing test. Can you rebase on |
507f981
to
8b37037
Compare
Depends on #133