File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def runTest(self):
101
101
self .assertTrue (html_file_df .select ("html" ).count () > 0 )
102
102
103
103
104
- @pytest .mark .fast
104
+ @pytest .mark .slow
105
105
class PartitionUrlTesSpec (unittest .TestCase ):
106
106
107
107
def runTest (self ):
@@ -122,8 +122,8 @@ def runTest(self):
122
122
pdf_df = Partition (content_type = "application/pdf" ).partition (self .html_directory )
123
123
pdf_file_df = Partition ().partition (f"{ self .html_directory } /text_3_pages.pdf" )
124
124
125
- self .assertTrue (pdf_df .select ("text " ).count () > 0 )
126
- self .assertTrue (pdf_file_df .select ("text " ).count () > 0 )
125
+ self .assertTrue (pdf_df .select ("pdf " ).count () > 0 )
126
+ self .assertTrue (pdf_file_df .select ("pdf " ).count () > 0 )
127
127
128
128
@pytest .mark .fast
129
129
class PartitionTextInMemoryTesSpec (unittest .TestCase ):
@@ -139,6 +139,5 @@ def setUp(self):
139
139
140
140
def runTest (self ):
141
141
text_df = Partition (group_broken_paragraphs = True ).partition_text (text = self .raw_text )
142
- text_df .show (truncate = False )
143
142
144
143
self .assertTrue (text_df .select ("txt" ).count () > 0 )
Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ def runTest(self):
79
79
pipelineModel = pipeline .fit (emptyDataSet )
80
80
81
81
resultDf = pipelineModel .transform (self .testDataSet )
82
- resultDf .show (truncate = False )
83
82
84
83
self .assertTrue (resultDf .select ("partition" ).count () > 0 )
85
84
@@ -108,6 +107,5 @@ def runTest(self):
108
107
pipelineModel = pipeline .fit (self .emptyDataSet )
109
108
110
109
resultDf = pipelineModel .transform (self .emptyDataSet )
111
- resultDf .show (truncate = False )
112
110
113
111
self .assertTrue (resultDf .select ("partition" ).count () >= 0 )
You can’t perform that action at this time.
0 commit comments