From 129ea5d4a24c5fded3ef6fc0221f25f67b93c76a Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 11 Feb 2021 21:30:28 -0600 Subject: [PATCH] Update tests using API.create_friendship to pass keyword arguments --- tests/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_api.py b/tests/test_api.py index 089379e..2ba5c90 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -159,7 +159,7 @@ class TweepyAPITests(TweepyTestCase): enemy = self.api.destroy_friendship('Twitter') self.assertEqual(enemy.screen_name, 'Twitter') - friend = self.api.create_friendship('Twitter') + friend = self.api.create_friendship(screen_name='Twitter') self.assertEqual(friend.screen_name, 'Twitter') @tape.use_cassette('testshowfriendship.json') @@ -256,7 +256,7 @@ class TweepyAPITests(TweepyTestCase): def testcreatedestroyblock(self): self.api.create_block('twitter') self.api.destroy_block('twitter') - self.api.create_friendship('twitter') # restore + self.api.create_friendship(screen_name='twitter') # restore @tape.use_cassette('testblocks.json') def testblocks(self): -- 2.25.1