Skip to content

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

Merged
merged 1 commit into from
Dec 24, 2021
Merged

src(attachment): Use attrs + cattrs #134

merged 1 commit into from
Dec 24, 2021

Conversation

gegnew
Copy link
Contributor

@gegnew gegnew commented Dec 14, 2021

  • src(attachment): Use attrs + cattrs

Depends on #133

@gegnew gegnew force-pushed the ge/cattrs-attachment branch 3 times, most recently from a4ba71a to 4d3d608 Compare December 14, 2021 12:24
@gegnew gegnew requested a review from zbjornson December 14, 2021 13:38
@gegnew gegnew changed the base branch from master to ge/cattrs2 December 14, 2021 14:29
@gegnew gegnew force-pushed the ge/cattrs-attachment branch from 4d3d608 to 70eb7e2 Compare December 14, 2021 14:45
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)
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

Copy link
Member

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.

@gegnew gegnew force-pushed the ge/cattrs2 branch 5 times, most recently from 46b80e8 to 2d35c99 Compare December 15, 2021 21:49
@gegnew gegnew force-pushed the ge/cattrs-attachment branch from 70eb7e2 to 13a2dcb Compare December 15, 2021 21:53
@gegnew gegnew requested a review from zbjornson December 15, 2021 22:12
@gegnew gegnew force-pushed the ge/cattrs2 branch 3 times, most recently from 7148f83 to d77f707 Compare December 17, 2021 07:44
@gegnew gegnew force-pushed the ge/cattrs-attachment branch from 13a2dcb to 804f6af Compare December 17, 2021 07:45
@gegnew gegnew force-pushed the ge/cattrs-attachment branch from 804f6af to 507f981 Compare December 17, 2021 07:48
Base automatically changed from ge/cattrs2 to master December 23, 2021 17:56
@zbjornson
Copy link
Member

Looks good % the missing test. Can you rebase on master while you're at it please?

@gegnew gegnew force-pushed the ge/cattrs-attachment branch from 507f981 to 8b37037 Compare December 24, 2021 09:32
@gegnew gegnew merged commit 833dea5 into master Dec 24, 2021
@gegnew gegnew deleted the ge/cattrs-attachment branch December 24, 2021 09:34
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.

2 participants