Skip to content

Commit 25ead8c

Browse files
authored
Merge pull request #15 from pdftables/test-remaining
Add test for test_remaining()
2 parents da9bfb0 + eedd3d3 commit 25ead8c

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)