Update test using API.destroy_friendship to pass keyword argument
authorHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 03:41:04 +0000 (21:41 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 03:41:13 +0000 (21:41 -0600)
tests/test_api.py

index f9a8c49f7fee245a88a67dd3dfd5228b6f553cb7..e467f090a149d2849a347c09e4cc8b85c879c639 100644 (file)
@@ -156,7 +156,7 @@ class TweepyAPITests(TweepyTestCase):
 
     @tape.use_cassette('testcreatedestroyfriendship.yaml', serializer='yaml')
     def testcreatedestroyfriendship(self):
-        enemy = self.api.destroy_friendship('Twitter')
+        enemy = self.api.destroy_friendship(screen_name='Twitter')
         self.assertEqual(enemy.screen_name, 'Twitter')
 
         friend = self.api.create_friendship(screen_name='Twitter')