1+ """
2+ Test module for Content Processing Solution Accelerator end-to-end tests.
3+ """
4+
15import logging
2- import time
36import pytest
47from pages .HomePage import HomePage
58
69logger = logging .getLogger (__name__ )
710
811
9- def _timed_refresh (home ):
10- """Refresh and wait for processing to complete with timing."""
11- start = time .time ()
12- home .refresh ()
13- end = time .time ()
14- logger .info (f"Refresh process took { end - start :.2f} seconds" )
15-
16-
1712def test_content_processing_golden_path (login_logout , request ):
1813 """
1914 Content Processing - Validate Golden path works as expected
@@ -48,7 +43,7 @@ def test_content_processing_golden_path(login_logout, request):
4843 try :
4944 action ()
5045 logger .info (f"Step passed: { description } " )
51- except Exception :
46+ except Exception : # pylint: disable=broad-exception-caught
5247 logger .error (f"Step failed: { description } " , exc_info = True )
5348 raise
5449
@@ -69,7 +64,7 @@ def test_content_processing_sections_display(login_logout, request):
6964 try :
7065 home .validate_home_page ()
7166 logger .info ("Test passed: All sections displayed properly" )
72- except Exception :
67+ except Exception : # pylint: disable=broad-exception-caught
7368 logger .error ("Test failed: All sections display validation" , exc_info = True )
7469 raise
7570
@@ -99,7 +94,7 @@ def test_content_processing_file_upload(login_logout, request):
9994 try :
10095 action ()
10196 logger .info (f"Step passed: { description } " )
102- except Exception :
97+ except Exception : # pylint: disable=broad-exception-caught
10398 logger .error (f"Step failed: { description } " , exc_info = True )
10499 raise
105100
@@ -128,7 +123,7 @@ def test_content_processing_refresh_screen(login_logout, request):
128123 try :
129124 action ()
130125 logger .info (f"Step passed: { description } " )
131- except Exception :
126+ except Exception : # pylint: disable=broad-exception-caught
132127 logger .error (f"Step failed: { description } " , exc_info = True )
133128 raise
134129
@@ -163,7 +158,7 @@ def test_content_processing_schema_validation(login_logout, request):
163158 try :
164159 action ()
165160 logger .info (f"Step passed: { description } " )
166- except Exception :
161+ except Exception : # pylint: disable=broad-exception-caught
167162 logger .error (f"Step failed: { description } " , exc_info = True )
168163 raise
169164
@@ -192,7 +187,7 @@ def test_content_processing_import_without_schema(login_logout, request):
192187 try :
193188 action ()
194189 logger .info (f"Step passed: { description } " )
195- except Exception :
190+ except Exception : # pylint: disable=broad-exception-caught
196191 logger .error (f"Step failed: { description } " , exc_info = True )
197192 raise
198193
@@ -221,7 +216,7 @@ def test_content_processing_delete_file(login_logout, request):
221216 try :
222217 action ()
223218 logger .info (f"Step passed: { description } " )
224- except Exception :
219+ except Exception : # pylint: disable=broad-exception-caught
225220 logger .error (f"Step failed: { description } " , exc_info = True )
226221 raise
227222
@@ -253,7 +248,7 @@ def test_content_processing_search_functionality(login_logout, request):
253248 try :
254249 action ()
255250 logger .info (f"Step passed: { description } " )
256- except Exception :
251+ except Exception : # pylint: disable=broad-exception-caught
257252 logger .error (f"Step failed: { description } " , exc_info = True )
258253 raise
259254
@@ -282,7 +277,7 @@ def test_content_processing_collapsible_panels(login_logout, request):
282277 try :
283278 action ()
284279 logger .info (f"Step passed: { description } " )
285- except Exception :
280+ except Exception : # pylint: disable=broad-exception-caught
286281 logger .error (f"Step failed: { description } " , exc_info = True )
287282 raise
288283
@@ -311,7 +306,7 @@ def test_content_processing_api_documentation(login_logout, request):
311306 try :
312307 action ()
313308 logger .info (f"Step passed: { description } " )
314- except Exception :
309+ except Exception : # pylint: disable=broad-exception-caught
315310 logger .error (f"Step failed: { description } " , exc_info = True )
316311 raise
317312
@@ -343,7 +338,7 @@ def test_content_processing_expandable_process_steps(login_logout, request):
343338 try :
344339 action ()
345340 logger .info (f"Step passed: { description } " )
346- except Exception :
341+ except Exception : # pylint: disable=broad-exception-caught
347342 logger .error (f"Step failed: { description } " , exc_info = True )
348343 raise
349344
0 commit comments