Skip to content

Commit 691c283

Browse files
committed
test code without using 'uid=' as parameter
1 parent 30b77bd commit 691c283

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_pykemon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def base_get_test(self, resource, method="name"):
2525
with requests_mock.mock() as mock:
2626
mock.get('%s/%s/1' % (self.base_url, resource), text=self.mock_data)
2727
response = getattr(self.client,
28-
'get_%s' % resource.replace("-", "_"))(uid=1)[0]
28+
'get_%s' % resource.replace("-", "_"))(1)[0]
2929

3030
if method == "name":
3131
self.assertEqual(response.name, 'test_name')
@@ -45,7 +45,7 @@ def base_404_test(self, resource):
4545
self.assertRaises(
4646
InvalidStatusCodeError,
4747
lambda: getattr(self.client,
48-
'get_%s' % resource.replace("-", "_"))(uid=1)[0])
48+
'get_%s' % resource.replace("-", "_"))(1)[0])
4949

5050

5151
class TestV2Client(unittest.TestCase):

0 commit comments

Comments
 (0)