Skip to content

Commit c70d416

Browse files
author
Rasmus Lager
committed
changed comment and missed list.save in the new way
1 parent 8a1ee55 commit c70d416

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ganapi/contact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def subscribe_to(self, list):
1919
"""
2020
Subscribes the contact to a list.
2121
22-
Do not forget to call ContactManager.save()!
22+
Do not forget to call contact.save()!
2323
2424
:param list The list to subscribe on.
2525
"""

ganapi/test_list_manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ def test_get_list(self):
2828
self.assertTrue(list.is_persisted())
2929

3030
def test_update_without_hash(self):
31-
# Expects exception
3231
list = self.list_manager.create()
3332
list.name = 'list'
3433
list.sender = 'John Doe'
3534
list.set_persisted()
36-
self.assertRaises(Exception, self.list_manager.save, list)
35+
self.assertRaises(Exception, list.save)
3736

3837
@all_requests
3938
def create_new_list_mock(self, url, request):

0 commit comments

Comments
 (0)