File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ """Debug test to understand CI failures."""
2+
3+ import sys
4+ import platform
5+
6+
7+ def test_python_version ():
8+ """Print Python version info."""
9+ print (f"\n Python version: { sys .version } " )
10+ print (f"Platform: { platform .platform ()} " )
11+ assert True
12+
13+
14+ def test_import_watermark ():
15+ """Test importing the watermark functionality."""
16+ try :
17+ from nutrient_dws .api .direct import DirectAPIMixin
18+ print ("\n DirectAPIMixin imported successfully" )
19+
20+ # Check if watermark_pdf has image_file parameter
21+ import inspect
22+ sig = inspect .signature (DirectAPIMixin .watermark_pdf )
23+ params = list (sig .parameters .keys ())
24+ print (f"watermark_pdf parameters: { params } " )
25+ assert "image_file" in params
26+
27+ except Exception as e :
28+ print (f"\n Import failed: { e } " )
29+ import traceback
30+ traceback .print_exc ()
31+ raise
32+
33+
34+ def test_basic_watermark_import ():
35+ """Test basic imports work."""
36+ try :
37+ from nutrient_dws import NutrientClient
38+ print ("\n NutrientClient imported successfully" )
39+ assert True
40+ except Exception as e :
41+ print (f"\n Basic import failed: { e } " )
42+ raise
You can’t perform that action at this time.
0 commit comments