File tree Expand file tree Collapse file tree 1 file changed +3
-31
lines changed
test_unstructured_client/unit Expand file tree Collapse file tree 1 file changed +3
-31
lines changed Original file line number Diff line number Diff line change @@ -48,38 +48,10 @@ def test_unit_clear_operation(self):
48
48
def test_unit_get_split_pdf_call_threads_default (self ):
49
49
"""Test get split pdf call threads method returns the right values."""
50
50
hook = SplitPdfHook ()
51
-
52
51
assert hook ._get_split_pdf_call_threads ({}) == DEFAULT_NUM_THREADS
53
-
54
- # Test custom value
55
- assert (
56
- hook ._get_split_pdf_call_threads (
57
- {
58
- "split_pdf_threads" : 10 ,
59
- }
60
- )
61
- == 10
62
- )
63
-
64
- # Test over limit value
65
- assert (
66
- hook ._get_split_pdf_call_threads (
67
- {
68
- "split_pdf_threads" : "20" ,
69
- }
70
- )
71
- == MAX_THREADS
72
- )
73
-
74
- # Test negative value
75
- assert (
76
- hook ._get_split_pdf_call_threads (
77
- {
78
- "split_pdf_threads" : - 3 ,
79
- }
80
- )
81
- == DEFAULT_NUM_THREADS
82
- )
52
+ assert hook ._get_split_pdf_call_threads ({"split_pdf_threads" : 10 }) == 10
53
+ assert hook ._get_split_pdf_call_threads ({"split_pdf_threads" : "20" }) == MAX_THREADS
54
+ assert hook ._get_split_pdf_call_threads ({"split_pdf_threads" : - 3 }) == DEFAULT_NUM_THREADS
83
55
84
56
def test_unit_prepare_request_payload (self ):
85
57
"""Test prepare request payload method properly sets split_pdf_page to 'false'
You can’t perform that action at this time.
0 commit comments