We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b76f2f commit d4351daCopy full SHA for d4351da
resources/table_test.png
79.4 KB
test/integration/test_compare_comply_v1.py
@@ -4,6 +4,8 @@
4
import os
5
from os.path import abspath
6
from unittest import TestCase
7
+from ibm_watson.compare_comply_v1 import TableReturn
8
+
9
10
@pytest.mark.skipif(
11
os.getenv('VCAP_SERVICES') is None, reason='requires VCAP_SERVICES')
@@ -34,9 +36,10 @@ def test_classify_elements(self):
34
36
assert result is not None
35
37
38
def test_extract_tables(self):
- table = abspath('resources/contract_A.pdf')
39
+ table = abspath('resources/table_test.png')
40
with open(table, 'rb') as file:
41
result = self.compare_comply.extract_tables(file).get_result()
42
+ TableReturn._from_dict(result)
43
44
45
def test_compare_documents(self):
0 commit comments