Skip to content

Commit eedd3d3

Browse files
committed
Add test for test_remaining()
1 parent da9bfb0 commit eedd3d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test_pdftables_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@ def test_invalid_format(self):
144144
self.assertRaisesRegexp(ValueError, 'Invalid output format', c.dump, pdf_fo, 'invalid_format')
145145

146146
def test_remaining(self):
147-
pass
147+
with requests_mock.mock() as m:
148+
m.get('https://pdftables.com/api/remaining?key=fake_key', text='8584')
149+
150+
c = Client('fake_key')
151+
self.assertEqual(c.remaining(), 8584)
148152

149153
def test_response_invalid_format(self):
150154
with requests_mock.mock() as m:

0 commit comments

Comments
 (0)