Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

add delete method for activities & fix testing stub #130

Merged
merged 3 commits into from
Nov 8, 2018
Merged

Conversation

anneFly
Copy link
Member

@anneFly anneFly commented Nov 7, 2018

This PR adds delete methods for all activities:

  • delete_activity_email
  • delete_activity_call
  • delete_activity_note

Furthermore, this fixes the testing stub. The methods get_activity_call and get_activity_note did not return records with IDs.

Note: this PR should most likely be merged keeping separate commits.

The testing stub did not create IDs for notes and calls and therefore
did not return the correct result as the API would do.
This is a BREAKING CHANGE for testing. The methods get_activity_call
and get_activity_note will return a different response in tests.
@anneFly anneFly self-assigned this Nov 7, 2018
@codecov
Copy link

codecov bot commented Nov 7, 2018

Codecov Report

Merging #130 into master will decrease coverage by 0.27%.
The diff coverage is 30%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #130      +/-   ##
==========================================
- Coverage   41.34%   41.06%   -0.28%     
==========================================
  Files           9        9              
  Lines         786      823      +37     
==========================================
+ Hits          325      338      +13     
- Misses        461      485      +24
Impacted Files Coverage Δ
closeio/contrib/testing_stub.py 0% <0%> (ø) ⬆️
closeio/closeio.py 62.23% <100%> (+2.75%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eaf7bf9...c314556. Read the comment docs.

Copy link
Contributor

@anapaulagomes anapaulagomes left a comment

Choose a reason for hiding this comment

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

Looks good to me. 🏅

@@ -286,14 +287,50 @@ def create_activity_call(self, **kwargs):
calls[lead_id].append(call)

@parse_response
def create_activity_note(self, lead_id, note):
def create_activity_note(self, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@anneFly anneFly merged commit b22233b into master Nov 8, 2018
@anneFly anneFly deleted the activity-delete branch November 8, 2018 15:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants