Table of Contents
Test Report
View CI Run 1803 | Commit c31072b
🧪 Test Report
Generated on 2025-08-07 11:41:16 CEST
🧾 General Info
- duration: 14.465158462524414
- root: /workspace/tligui_y/slic
- environment: {}
📋 Summary
- Passed: 474
- Failed: 35
- Total: 509
- Collected: 509
🔎 Tests
✅ Passed (474)
-
📄 morbidissimo/morbidissimo/morioc/test_infer_type.py
↳ Function: test_it_type_str
-
✅ Test 1
📌 Setup phase
duration:
0.0008877860382199287outcome:
passed📌 Call phase
duration:
0.00028966087847948074outcome:
passed📌 Teardown phase
duration:
0.0002614022232592106outcome:
passed
↳ Function: test_it_type_float
-
✅ Test 2
📌 Setup phase
duration:
0.0001591760665178299outcome:
passed📌 Call phase
duration:
0.0001904708333313465outcome:
passed📌 Teardown phase
duration:
0.00012891320511698723outcome:
passed
↳ Function: test_it_type_int
-
✅ Test 3
📌 Setup phase
duration:
0.00011468585580587387outcome:
passed📌 Call phase
duration:
0.0001587849110364914outcome:
passed📌 Teardown phase
duration:
0.00012216204777359962outcome:
passed
↳ Function: test_it_value_str
-
✅ Test 4
📌 Setup phase
duration:
0.00011508213356137276outcome:
passed📌 Call phase
duration:
0.00015125423669815063outcome:
passed📌 Teardown phase
duration:
0.00010323198512196541outcome:
passed
↳ Function: test_it_value_long_str
-
✅ Test 5
📌 Setup phase
duration:
0.00011179130524396896outcome:
passed📌 Call phase
duration:
0.00015260279178619385outcome:
passed📌 Teardown phase
duration:
0.00010499497875571251outcome:
passed
↳ Function: test_it_value_float
-
✅ Test 6
📌 Setup phase
duration:
0.00011459272354841232outcome:
passed📌 Call phase
duration:
0.00018399907276034355outcome:
passed📌 Teardown phase
duration:
0.00010062707588076591outcome:
passed
↳ Function: test_it_value_int
-
✅ Test 7
📌 Setup phase
duration:
0.0001738639548420906outcome:
passed📌 Call phase
duration:
0.0001876489259302616outcome:
passed📌 Teardown phase
duration:
0.00013962527737021446outcome:
passed
↳ Function: test_it_empty_value_str
-
✅ Test 8
📌 Setup phase
duration:
0.00011026719585061073outcome:
passed📌 Call phase
duration:
0.000156451016664505outcome:
passed📌 Teardown phase
duration:
0.00014006998389959335outcome:
passed
↳ Function: test_it_empty_value_float
-
✅ Test 9
📌 Setup phase
duration:
0.00012239301577210426outcome:
passed📌 Call phase
duration:
0.0001457161270081997outcome:
passed📌 Teardown phase
duration:
0.00012565823271870613outcome:
passed
↳ Function: test_it_empty_value_int
-
✅ Test 10
📌 Setup phase
duration:
0.00013008061796426773outcome:
passed📌 Call phase
duration:
0.00016419077292084694outcome:
passed📌 Teardown phase
duration:
0.00013295281678438187outcome:
passed
↳ Function: test_pstrue_str
-
✅ Test 11
📌 Setup phase
duration:
0.00013665389269590378outcome:
passed📌 Call phase
duration:
0.0001602470874786377outcome:
passed📌 Teardown phase
duration:
0.00016214698553085327outcome:
passed
↳ Function: test_pstrue_float
-
✅ Test 12
📌 Setup phase
duration:
0.00017895828932523727outcome:
passed📌 Call phase
duration:
0.00015273410826921463outcome:
passed📌 Teardown phase
duration:
0.00010165898129343987outcome:
passed
↳ Function: test_pstrue_int
-
✅ Test 13
📌 Setup phase
duration:
0.00013692211359739304outcome:
passed📌 Call phase
duration:
0.00014984188601374626outcome:
passed📌 Teardown phase
duration:
0.00010104896500706673outcome:
passed
↳ Function: test_psfalse_str
-
✅ Test 14
📌 Setup phase
duration:
0.00012550828978419304outcome:
passed📌 Call phase
duration:
0.0001470576971769333outcome:
passed📌 Teardown phase
duration:
9.867595508694649e-05outcome:
passed
↳ Function: test_psfalse_float
-
✅ Test 15
📌 Setup phase
duration:
0.00010637007653713226outcome:
passed📌 Call phase
duration:
0.0001468360424041748outcome:
passed📌 Teardown phase
duration:
0.00010097585618495941outcome:
passed
↳ Function: test_psfalse_int
-
✅ Test 16
📌 Setup phase
duration:
0.00010940898209810257outcome:
passed📌 Call phase
duration:
0.00014054588973522186outcome:
passed📌 Teardown phase
duration:
9.727198630571365e-05outcome:
passed
↳ Function: test_it_None
-
✅ Test 17
📌 Setup phase
duration:
0.0001095249317586422outcome:
passed📌 Call phase
duration:
0.00019039679318666458outcome:
passed📌 Teardown phase
duration:
0.00010136980563402176outcome:
passed
↳ Function: test_it_True
-
✅ Test 18
📌 Setup phase
duration:
0.00010604783892631531outcome:
passed📌 Call phase
duration:
0.00016357563436031342outcome:
passed📌 Teardown phase
duration:
9.934091940522194e-05outcome:
passed
↳ Function: test_it_False
-
✅ Test 19
📌 Setup phase
duration:
0.00012760097160935402outcome:
passed📌 Call phase
duration:
0.00040051108226180077outcome:
passed📌 Teardown phase
duration:
0.0001137731596827507outcome:
passed
↳ Function: test_it_nan
-
✅ Test 20
📌 Setup phase
duration:
0.00013493094593286514outcome:
passed📌 Call phase
duration:
0.00014067580923438072outcome:
passed📌 Teardown phase
duration:
0.00010218005627393723outcome:
passed
↳ Function: test_it_np_nan
-
✅ Test 21
📌 Setup phase
duration:
0.00012031989172101021outcome:
passed📌 Call phase
duration:
0.0001582740806043148outcome:
passed📌 Teardown phase
duration:
0.00010002125054597855outcome:
passed
↳ Function: test_it_np1D_int
-
✅ Test 22
📌 Setup phase
duration:
0.00010575074702501297outcome:
passed📌 Call phase
duration:
0.0002244901843369007outcome:
passed📌 Teardown phase
duration:
0.00011058896780014038outcome:
passed
↳ Function: test_it_np2D_int
-
✅ Test 23
📌 Setup phase
duration:
0.00013735191896557808outcome:
passed📌 Call phase
duration:
0.0001858128234744072outcome:
passed📌 Teardown phase
duration:
0.00011660903692245483outcome:
passed
↳ Function: test_it_np1D_float
-
✅ Test 24
📌 Setup phase
duration:
0.00013161404058337212outcome:
passed📌 Call phase
duration:
0.0002557579427957535outcome:
passed📌 Teardown phase
duration:
0.00012521492317318916outcome:
passed
↳ Function: test_it_np2D_float
-
✅ Test 25
📌 Setup phase
duration:
0.00012313900515437126outcome:
passed📌 Call phase
duration:
0.00022125011309981346outcome:
passed📌 Teardown phase
duration:
0.00010385224595665932outcome:
passed
↳ Function: test_it_np1D_bool
-
✅ Test 26
📌 Setup phase
duration:
0.00012429384514689445outcome:
passed📌 Call phase
duration:
0.00016716402024030685outcome:
passed📌 Teardown phase
duration:
0.00010429928079247475outcome:
passed
↳ Function: test_it_np1D_object
-
✅ Test 27
📌 Setup phase
duration:
0.00011904211714863777outcome:
passed📌 Call phase
duration:
0.0001633521169424057outcome:
passed📌 Teardown phase
duration:
0.00010223686695098877outcome:
passed
↳ Function: test_it_np_scalar_int
-
✅ Test 28
📌 Setup phase
duration:
0.00011975178495049477outcome:
passed📌 Call phase
duration:
0.00017597805708646774outcome:
passed📌 Teardown phase
duration:
9.952113032341003e-05outcome:
passed
↳ Function: test_it_np_scalar_float
-
✅ Test 29
📌 Setup phase
duration:
0.00011534197255969048outcome:
passed📌 Call phase
duration:
0.00017492379993200302outcome:
passed📌 Teardown phase
duration:
0.00010264106094837189outcome:
passed
↳ Function: test_it_np_scalar_bool
-
✅ Test 30
📌 Setup phase
duration:
0.00011635664850473404outcome:
passed📌 Call phase
duration:
0.00017099501565098763outcome:
passed📌 Teardown phase
duration:
9.95672307908535e-05outcome:
passed
↳ Function: test_it_list
-
✅ Test 31
📌 Setup phase
duration:
0.00011066673323512077outcome:
passed📌 Call phase
duration:
0.00014831125736236572outcome:
passed📌 Teardown phase
duration:
9.962590411305428e-05outcome:
passed
↳ Function: test_it_tuple
-
✅ Test 32
📌 Setup phase
duration:
0.0001107589341700077outcome:
passed📌 Call phase
duration:
0.00014595314860343933outcome:
passed📌 Teardown phase
duration:
0.00010745599865913391outcome:
passed
-
-
📄 test_utils_argfwd.py
↳ Function: test_split_at
-
✅ Test 33
params: lst=["a", "b", "c", "d"], index=2, expected="a", "b"], ["c", "d"📌 Runtime Parameters
params: lst: - a - b - c - d index: 2 expected: - - a - b - - c - d id: lst0-2-expected0📌 Setup phase
duration:
0.0004945462569594383outcome:
passed📌 Call phase
duration:
0.00016265874728560448outcome:
passed📌 Teardown phase
duration:
0.00018628593534231186outcome:
passed -
✅ Test 34
params: lst=["x", "y"], index=1, expected="x"], ["y"📌 Runtime Parameters
params: lst: - x - y index: 1 expected: - - x - - y id: lst1-1-expected1📌 Setup phase
duration:
0.0003345976583659649outcome:
passed📌 Call phase
duration:
0.00015545077621936798outcome:
passed📌 Teardown phase
duration:
0.00018071290105581284outcome:
passed -
✅ Test 35
params: lst=[], index=0, expected=], [📌 Runtime Parameters
params: lst: [] index: 0 expected: - (vide) - (vide) id: lst2-0-expected2📌 Setup phase
duration:
0.00029589515179395676outcome:
passed📌 Call phase
duration:
0.00014134403318166733outcome:
passed📌 Teardown phase
duration:
0.00017154589295387268outcome:
passed
↳ Function: test_merge_lists_unique
-
✅ Test 36
params: a=["a", "b"], b=["b", "c"], expected=["a", "b", "c"]📌 Runtime Parameters
params: a: - a - b b: - b - c expected: - a - b - c id: a0-b0-expected0📌 Setup phase
duration:
0.00028049107640981674outcome:
passed📌 Call phase
duration:
0.00015608500689268112outcome:
passed📌 Teardown phase
duration:
0.0001709158532321453outcome:
passed -
✅ Test 37
params: a=[], b=["x"], expected=["x"]📌 Runtime Parameters
params: a: [] b: - x expected: - x id: a1-b1-expected1📌 Setup phase
duration:
0.000285447109490633outcome:
passed📌 Call phase
duration:
0.00015695299953222275outcome:
passed📌 Teardown phase
duration:
0.0001532738097012043outcome:
passed -
✅ Test 38
params: a=["x", "y"], b=["x", "y"], expected=["x", "y"]📌 Runtime Parameters
params: a: - x - y b: - x - y expected: - x - y id: a2-b2-expected2📌 Setup phase
duration:
0.00029475800693035126outcome:
passed📌 Call phase
duration:
0.00014657387509942055outcome:
passed📌 Teardown phase
duration:
0.0001841941848397255outcome:
passed
↳ Function: test_merge_dicts_unique
-
✅ Test 39
params: a={"a": 1}, b={"b": 2}, expected={"a": 1, "b": 2}📌 Runtime Parameters
params: a: a: 1 b: b: 2 expected: a: 1 b: 2 id: a0-b0-expected0📌 Setup phase
duration:
0.00027050217613577843outcome:
passed📌 Call phase
duration:
0.0001687910407781601outcome:
passed📌 Teardown phase
duration:
0.00017951009795069695outcome:
passed -
✅ Test 40
params: a={"x": 1}, b={"x": 9, "y": 3}, expected={"x": 1, "y": 3}📌 Runtime Parameters
params: a: x: 1 b: x: 9 y: 3 expected: x: 1 y: 3 id: a1-b1-expected1📌 Setup phase
duration:
0.0004016631282866001outcome:
passed📌 Call phase
duration:
0.00018033897504210472outcome:
passed📌 Teardown phase
duration:
0.00016437098383903503outcome:
passed -
✅ Test 41
params: a={}, b={"k": 4}, expected={"k": 4}📌 Runtime Parameters
params: a: {} b: k: 4 expected: k: 4 id: a2-b2-expected2📌 Setup phase
duration:
0.0002769259735941887outcome:
passed📌 Call phase
duration:
0.0001673288643360138outcome:
passed📌 Teardown phase
duration:
0.00017022015526890755outcome:
passed
↳ Function: test_make_params_pos_basic
-
✅ Test 42
params: pos=["a", "b"], expected_names=["a", "b"]📌 Runtime Parameters
params: pos: - a - b expected_names: - a - b id: pos0-expected_names0📌 Setup phase
duration:
0.00026198988780379295outcome:
passed📌 Call phase
duration:
0.00018124515190720558outcome:
passed📌 Teardown phase
duration:
0.0001536896452307701outcome:
passed -
✅ Test 43
params: pos=["param1", "value_2", "Z"], expected_names=["param1", "value_2", "Z"]📌 Runtime Parameters
params: pos: - param1 - value_2 - Z expected_names: - param1 - value_2 - Z id: pos1-expected_names1📌 Setup phase
duration:
0.0002333945594727993outcome:
passed📌 Call phase
duration:
0.00019063381478190422outcome:
passed📌 Teardown phase
duration:
0.0001671724021434784outcome:
passed -
✅ Test 44
params: pos=[], expected_names=[]📌 Runtime Parameters
params: pos: [] expected_names: [] id: pos2-expected_names2📌 Setup phase
duration:
0.0002294289879500866outcome:
passed📌 Call phase
duration:
0.0001627379097044468outcome:
passed📌 Teardown phase
duration:
0.00014479178935289383outcome:
passed
↳ Function: test_make_params_kw_basic
-
✅ Test 45
params: kw={"a": 1, "b": 2}, expected_keys=["a", "b"], expected_defaults=[1, 2]📌 Runtime Parameters
params: kw: a: 1 b: 2 expected_keys: - a - b expected_defaults: - 1 - 2 id: kw0-expected_keys0-expected_defaults0📌 Setup phase
duration:
0.0002880389802157879outcome:
passed📌 Call phase
duration:
0.00019475910812616348outcome:
passed📌 Teardown phase
duration:
0.00015938794240355492outcome:
passed -
✅ Test 46
params: kw={"param_x": 0}, expected_keys=["param_x"], expected_defaults=[0]📌 Runtime Parameters
params: kw: param_x: 0 expected_keys: - param_x expected_defaults: - (vide) id: kw1-expected_keys1-expected_defaults1📌 Setup phase
duration:
0.00031747110188007355outcome:
passed📌 Call phase
duration:
0.00020082620903849602outcome:
passed📌 Teardown phase
duration:
0.00016364501789212227outcome:
passed -
✅ Test 47
params: kw={}, expected_keys=[], expected_defaults=[]📌 Runtime Parameters
params: kw: {} expected_keys: [] expected_defaults: [] id: kw2-expected_keys2-expected_defaults2📌 Setup phase
duration:
0.00026842299848794937outcome:
passed📌 Call phase
duration:
0.0001546209678053856outcome:
passed📌 Teardown phase
duration:
0.00016701826825737953outcome:
passed
↳ Function: test_make_signature_parametrized
-
✅ Test 48
params: pos=["x", "y"], kw={"z": 3}, expected_signature="(x, y, z=3)"📌 Runtime Parameters
params: pos: - x - y kw: z: 3 expected_signature: (x, y, z=3) id: pos0-kw0-(x, y, z=3)📌 Setup phase
duration:
0.00028606317937374115outcome:
passed📌 Call phase
duration:
0.00022532185539603233outcome:
passed📌 Teardown phase
duration:
0.00016150157898664474outcome:
passed -
✅ Test 49
params: pos=["a"], kw={"b": 1, "c": 2}, expected_signature="(a, b=1, c=2)"📌 Runtime Parameters
params: pos: - a kw: b: 1 c: 2 expected_signature: (a, b=1, c=2) id: pos1-kw1-(a, b=1, c=2)📌 Setup phase
duration:
0.00028039002791047096outcome:
passed📌 Call phase
duration:
0.00019341986626386642outcome:
passed📌 Teardown phase
duration:
0.00017517711967229843outcome:
passed -
✅ Test 50
params: pos=[], kw={"flag": false}, expected_signature="(flag=False)"📌 Runtime Parameters
params: pos: [] kw: flag: False expected_signature: (flag=False) id: pos2-kw2-(flag=False)📌 Setup phase
duration:
0.00028425920754671097outcome:
passed📌 Call phase
duration:
0.00019366340711712837outcome:
passed📌 Teardown phase
duration:
0.00019103894010186195outcome:
passed
↳ Function: test_get_args_parametrized
-
✅ Test 51
params: func=" at 0x7f958ab5a5e0>", expected_pos=["a", "b"], expected_kw={"c": 3, "d": 4}📌 Runtime Parameters
params: func: <function <lambda> at 0x7f958ab5a5e0> expected_pos: - a - b expected_kw: c: 3 d: 4 id: <lambda>-expected_pos0-expected_kw0📌 Setup phase
duration:
0.000271541066467762outcome:
passed📌 Call phase
duration:
0.00024007819592952728outcome:
passed📌 Teardown phase
duration:
0.00016763340681791306outcome:
passed -
✅ Test 52
params: func=" at 0x7f958ab61550>", expected_pos=[], expected_kw="{'x': 1, 'y': , 'z': 0}"📌 Runtime Parameters
params: func: <function <lambda> at 0x7f958ab61550> expected_pos: [] expected_kw: {'x': 1, 'y': <class 'inspect._empty'>, 'z': 0} id: <lambda>-expected_pos1-expected_kw1📌 Setup phase
duration:
0.00028907088562846184outcome:
passed📌 Call phase
duration:
0.00020797410979866982outcome:
passed📌 Teardown phase
duration:
0.00018588406965136528outcome:
passed -
✅ Test 53
params: func=" at 0x7f958ab61670>", expected_pos=[], expected_kw={}📌 Runtime Parameters
params: func: <function <lambda> at 0x7f958ab61670> expected_pos: [] expected_kw: {} id: <lambda>-expected_pos2-expected_kw2📌 Setup phase
duration:
0.0002796771004796028outcome:
passed📌 Call phase
duration:
0.00020343204960227013outcome:
passed📌 Teardown phase
duration:
0.00018361397087574005outcome:
passed
↳ Function: test_signature_visible
-
✅ Test 54
params: func="", expected_sig="(a, b, d=30, c=10)"📌 Runtime Parameters
params: func: <function wrap_all at 0x7f958ab618b0> expected_sig: (a, b, d=30, c=10) id: wrap_all-(a, b, d=30, c=10)📌 Setup phase
duration:
0.00022797705605626106outcome:
passed📌 Call phase
duration:
0.00016306107863783836outcome:
passed📌 Teardown phase
duration:
0.00015265587717294693outcome:
passed -
✅ Test 55
params: func="", expected_sig="(a, b, c=10, d=20)"📌 Runtime Parameters
params: func: <function wrap_skip at 0x7f958ab61940> expected_sig: (a, b, c=10, d=20) id: wrap_skip-(a, b, c=10, d=20)📌 Setup phase
duration:
0.0002463068813085556outcome:
passed📌 Call phase
duration:
0.00018264492973685265outcome:
passed📌 Teardown phase
duration:
0.0001381360925734043outcome:
passed -
✅ Test 56
params: func="", expected_sig="(x, y, c=10, d=20)"📌 Runtime Parameters
params: func: <function wrap_ignore_all at 0x7f958ab619d0> expected_sig: (x, y, c=10, d=20) id: wrap_ignore_all-(x, y, c=10, d=20)📌 Setup phase
duration:
0.00022380705922842026outcome:
passed📌 Call phase
duration:
0.0001687188632786274outcome:
passed📌 Teardown phase
duration:
0.00014372821897268295outcome:
passed
↳ Function: test_wrapper_behavior
-
✅ Test 57
params: func="", args=[1, 2, 3], kwargs={}, expected_result=36📌 Runtime Parameters
params: func: <function wrap_all at 0x7f958ab618b0> args: - 1 - 2 - 3 kwargs: {} expected_result: 36 id: wrap_all-args0-kwargs0-36📌 Setup phase
duration:
0.0003387606702744961outcome:
passed📌 Call phase
duration:
0.00028371764346957207outcome:
passed📌 Teardown phase
duration:
0.00019533419981598854outcome:
passed -
✅ Test 58
params: func="", args=[1, 2, 3], kwargs={"d": 5}, expected_result=11📌 Runtime Parameters
params: func: <function wrap_all at 0x7f958ab618b0> args: - 1 - 2 - 3 kwargs: d: 5 expected_result: 11 id: wrap_all-args1-kwargs1-11📌 Setup phase
duration:
0.00034053297713398933outcome:
passed📌 Call phase
duration:
0.00015115691348910332outcome:
passed📌 Teardown phase
duration:
0.000170830637216568outcome:
passed -
✅ Test 59
params: func="", args=[0, 0], kwargs={"c": 3, "d": 4}, expected_result=10📌 Runtime Parameters
params: func: <function wrap_skip at 0x7f958ab61940> args: - (vide) - (vide) kwargs: c: 3 d: 4 expected_result: 10 id: wrap_skip-args2-kwargs2-10📌 Setup phase
duration:
0.0003538951277732849outcome:
passed📌 Call phase
duration:
0.00017106672748923302outcome:
passed📌 Teardown phase
duration:
0.0002137073315680027outcome:
passed -
✅ Test 60
params: func="", args=[0, 0], kwargs={}, expected_result=10📌 Runtime Parameters
params: func: <function wrap_ignore_all at 0x7f958ab619d0> args: - (vide) - (vide) kwargs: {} expected_result: 10 id: wrap_ignore_all-args3-kwargs3-10📌 Setup phase
duration:
0.000315333716571331outcome:
passed📌 Call phase
duration:
0.00014806585386395454outcome:
passed📌 Teardown phase
duration:
0.00017868075519800186outcome:
passed
-
-
📄 test_utils_ask_yes_no.py
↳ Function: test_ask_yes_no
-
✅ Test 61
params: default=null, user_input="y", expected_output=true, expected_prompt="Question? [y/n] "📌 Runtime Parameters
params: default: None user_input: y expected_output: True expected_prompt: Question? [y/n] id: None-y-True-Question? [y/n]📌 Setup phase
duration:
0.00036159204319119453outcome:
passed📌 Call phase
duration:
0.0010193516500294209outcome:
passed📌 Teardown phase
duration:
0.00020980089902877808outcome:
passed -
✅ Test 62
params: default=null, user_input="yes", expected_output=true, expected_prompt="Question? [y/n] "📌 Runtime Parameters
params: default: None user_input: yes expected_output: True expected_prompt: Question? [y/n] id: None-yes-True-Question? [y/n]📌 Setup phase
duration:
0.0003388402983546257outcome:
passed📌 Call phase
duration:
0.0006327889859676361outcome:
passed📌 Teardown phase
duration:
0.00021771900355815887outcome:
passed -
✅ Test 63
params: default=null, user_input="n", expected_output=false, expected_prompt="Question? [y/n] "📌 Runtime Parameters
params: default: None user_input: n expected_output: False expected_prompt: Question? [y/n] id: None-n-False-Question? [y/n]📌 Setup phase
duration:
0.00035463273525238037outcome:
passed📌 Call phase
duration:
0.000593929085880518outcome:
passed📌 Teardown phase
duration:
0.00020865397527813911outcome:
passed -
✅ Test 64
params: default=null, user_input="no", expected_output=false, expected_prompt="Question? [y/n] "📌 Runtime Parameters
params: default: None user_input: no expected_output: False expected_prompt: Question? [y/n] id: None-no-False-Question? [y/n]📌 Setup phase
duration:
0.00032585812732577324outcome:
passed📌 Call phase
duration:
0.0006553521379828453outcome:
passed📌 Teardown phase
duration:
0.00018562795594334602outcome:
passed -
✅ Test 65
params: default=null, user_input=["maybe", "y"], expected_output=true, expected_prompt="Question? [y/n] "📌 Runtime Parameters
params: default: None user_input: - maybe - y expected_output: True expected_prompt: Question? [y/n] id: None-user_input4-True-Question? [y/n]📌 Setup phase
duration:
0.000330459326505661outcome:
passed📌 Call phase
duration:
0.0005558701232075691outcome:
passed📌 Teardown phase
duration:
0.00018640188500285149outcome:
passed -
✅ Test 66
params: default=null, user_input=["", "no"], expected_output=false, expected_prompt="Question? [y/n] "📌 Runtime Parameters
params: default: None user_input: - (vide) - no expected_output: False expected_prompt: Question? [y/n] id: None-user_input5-False-Question? [y/n]📌 Setup phase
duration:
0.0003497111611068249outcome:
passed📌 Call phase
duration:
0.0005418993532657623outcome:
passed📌 Teardown phase
duration:
0.00018710177391767502outcome:
passed -
✅ Test 67
params: default=null, user_input=["invalid", "", "invalid", "yes"], expected_output=true, expected_prompt="Question? [y/n] "📌 Runtime Parameters
params: default: None user_input: - invalid - (vide) - invalid - yes expected_output: True expected_prompt: Question? [y/n] id: None-user_input6-True-Question? [y/n]📌 Setup phase
duration:
0.00033096084371209145outcome:
passed📌 Call phase
duration:
0.0005528549663722515outcome:
passed📌 Teardown phase
duration:
0.0002269800752401352outcome:
passed -
✅ Test 68
params: default="y", user_input="y", expected_output=true, expected_prompt="Question? [Y/n] "📌 Runtime Parameters
params: default: y user_input: y expected_output: True expected_prompt: Question? [Y/n] id: y-y-True-Question? [Y/n]📌 Setup phase
duration:
0.0003177584148943424outcome:
passed📌 Call phase
duration:
0.0006172400899231434outcome:
passed📌 Teardown phase
duration:
0.00018818071112036705outcome:
passed -
✅ Test 69
params: default="y", user_input="n", expected_output=false, expected_prompt="Question? [Y/n] "📌 Runtime Parameters
params: default: y user_input: n expected_output: False expected_prompt: Question? [Y/n] id: y-n-False-Question? [Y/n]📌 Setup phase
duration:
0.00031994888558983803outcome:
passed📌 Call phase
duration:
0.0005169040523469448outcome:
passed📌 Teardown phase
duration:
0.00018813321366906166outcome:
passed -
✅ Test 70
params: default="y", user_input="", expected_output=true, expected_prompt="Question? [Y/n] "📌 Runtime Parameters
params: default: y user_input: None expected_output: True expected_prompt: Question? [Y/n] id: y--True-Question? [Y/n]📌 Setup phase
duration:
0.0003474201075732708outcome:
passed📌 Call phase
duration:
0.0004982789978384972outcome:
passed📌 Teardown phase
duration:
0.0001975041814148426outcome:
passed -
✅ Test 71
params: default="n", user_input="y", expected_output=true, expected_prompt="Question? [y/N] "📌 Runtime Parameters
params: default: n user_input: y expected_output: True expected_prompt: Question? [y/N] id: n-y-True-Question? [y/N]📌 Setup phase
duration:
0.00033021625131368637outcome:
passed📌 Call phase
duration:
0.0005912850610911846outcome:
passed📌 Teardown phase
duration:
0.0001998557709157467outcome:
passed -
✅ Test 72
params: default="n", user_input="n", expected_output=false, expected_prompt="Question? [y/N] "📌 Runtime Parameters
params: default: n user_input: n expected_output: False expected_prompt: Question? [y/N] id: n-n-False-Question? [y/N]📌 Setup phase
duration:
0.0003116209991276264outcome:
passed📌 Call phase
duration:
0.0005154232494533062outcome:
passed📌 Teardown phase
duration:
0.00017952313646674156outcome:
passed -
✅ Test 73
params: default="n", user_input="", expected_output=false, expected_prompt="Question? [y/N] "📌 Runtime Parameters
params: default: n user_input: None expected_output: False expected_prompt: Question? [y/N] id: n--False-Question? [y/N]📌 Setup phase
duration:
0.00032160477712750435outcome:
passed📌 Call phase
duration:
0.0004889070987701416outcome:
passed📌 Teardown phase
duration:
0.00018280372023582458outcome:
passed
↳ Function: test_ask_yes_no_ctrl_c
-
✅ Test 74
params: default=null, user_input="", expected_output=false, ctrl_c="n"📌 Runtime Parameters
params: default: None user_input: <class 'KeyboardInterrupt'> expected_output: False ctrl_c: n id: None-KeyboardInterrupt-False-n📌 Setup phase
duration:
0.0003193528391420841outcome:
passed📌 Call phase
duration:
0.0005108220502734184outcome:
passed📌 Teardown phase
duration:
0.0001845131628215313outcome:
passed -
✅ Test 75
params: default=null, user_input="", expected_output=true, ctrl_c="y"📌 Runtime Parameters
params: default: None user_input: <class 'KeyboardInterrupt'> expected_output: True ctrl_c: y id: None-KeyboardInterrupt-True-y📌 Setup phase
duration:
0.0003313077613711357outcome:
passed📌 Call phase
duration:
0.0006257472559809685outcome:
passed📌 Teardown phase
duration:
0.00019604479894042015outcome:
passed -
✅ Test 76
params: default="y", user_input="", expected_output=false, ctrl_c="n"📌 Runtime Parameters
params: default: y user_input: <class 'KeyboardInterrupt'> expected_output: False ctrl_c: n id: y-KeyboardInterrupt-False-n📌 Setup phase
duration:
0.00031262682750821114outcome:
passed📌 Call phase
duration:
0.0005172081291675568outcome:
passed📌 Teardown phase
duration:
0.000185440294444561outcome:
passed -
✅ Test 77
params: default="y", user_input="", expected_output=true, ctrl_c="y"📌 Runtime Parameters
params: default: y user_input: <class 'KeyboardInterrupt'> expected_output: True ctrl_c: y id: y-KeyboardInterrupt-True-y📌 Setup phase
duration:
0.0003835158422589302outcome:
passed📌 Call phase
duration:
0.0005256622098386288outcome:
passed📌 Teardown phase
duration:
0.00018971040844917297outcome:
passed -
✅ Test 78
params: default="n", user_input="", expected_output=false, ctrl_c="n"📌 Runtime Parameters
params: default: n user_input: <class 'KeyboardInterrupt'> expected_output: False ctrl_c: n id: n-KeyboardInterrupt-False-n📌 Setup phase
duration:
0.0003191940486431122outcome:
passed📌 Call phase
duration:
0.0005084178410470486outcome:
passed📌 Teardown phase
duration:
0.0001959400251507759outcome:
passed -
✅ Test 79
params: default=null, user_input="['invalid', '', 'invalid', ]", expected_output=false, ctrl_c="n"📌 Runtime Parameters
params: default: None user_input: ['invalid', '', 'invalid', <class 'KeyboardInterrupt'>] expected_output: False ctrl_c: n id: None-user_input5-False-n📌 Setup phase
duration:
0.00032928166911005974outcome:
passed📌 Call phase
duration:
0.0006353519856929779outcome:
passed📌 Teardown phase
duration:
0.00018721073865890503outcome:
passed -
✅ Test 80
params: default=null, user_input="['invalid', '', 'invalid', ]", expected_output=true, ctrl_c="y"📌 Runtime Parameters
params: default: None user_input: ['invalid', '', 'invalid', <class 'KeyboardInterrupt'>] expected_output: True ctrl_c: y id: None-user_input6-True-y📌 Setup phase
duration:
0.0003160778433084488outcome:
passed📌 Call phase
duration:
0.0005413061007857323outcome:
passed📌 Teardown phase
duration:
0.00017990684136748314outcome:
passed -
✅ Test 81
params: default=null, user_input="['foo', '', , '', 'invalid', , 'no']", expected_output=false, ctrl_c=null📌 Runtime Parameters
params: default: None user_input: ['foo', '', <class 'KeyboardInterrupt'>, '', 'invalid', <class 'KeyboardInterrupt'>, 'no'] expected_output: False ctrl_c: None id: None-user_input7-False-None📌 Setup phase
duration:
0.0003258991055190563outcome:
passed📌 Call phase
duration:
0.0005772160366177559outcome:
passed📌 Teardown phase
duration:
0.00017986400052905083outcome:
passed -
✅ Test 82
params: default="n", user_input="[, , , '']", expected_output=false, ctrl_c=null📌 Runtime Parameters
params: default: n user_input: [<class 'KeyboardInterrupt'>, <class 'KeyboardInterrupt'>, <class 'KeyboardInterrupt'>, ''] expected_output: False ctrl_c: None id: n-user_input8-False-None📌 Setup phase
duration:
0.0003176368772983551outcome:
passed📌 Call phase
duration:
0.0006655990146100521outcome:
passed📌 Teardown phase
duration:
0.00019816309213638306outcome:
passed -
✅ Test 83
params: default="n", user_input="[, , , '']", expected_output=false, ctrl_c="Invalid"📌 Runtime Parameters
params: default: n user_input: [<class 'KeyboardInterrupt'>, <class 'KeyboardInterrupt'>, <class 'KeyboardInterrupt'>, ''] expected_output: False ctrl_c: Invalid id: n-user_input9-False-Invalid📌 Setup phase
duration:
0.00032446812838315964outcome:
passed📌 Call phase
duration:
0.0005472786724567413outcome:
passed📌 Teardown phase
duration:
0.00018890807405114174outcome:
passed
↳ Function: test_ask_yes_no_ctrl_d
-
✅ Test 84
params: default=null, user_input="", expected_output=false, ctrl_d="n"📌 Runtime Parameters
params: default: None user_input: <class 'EOFError'> expected_output: False ctrl_d: n id: None-EOFError-False-n📌 Setup phase
duration:
0.00032253609970211983outcome:
passed📌 Call phase
duration:
0.0005183406174182892outcome:
passed📌 Teardown phase
duration:
0.00019433489069342613outcome:
passed -
✅ Test 85
params: default=null, user_input="", expected_output=true, ctrl_d="y"📌 Runtime Parameters
params: default: None user_input: <class 'EOFError'> expected_output: True ctrl_d: y id: None-EOFError-True-y📌 Setup phase
duration:
0.000337040051817894outcome:
passed📌 Call phase
duration:
0.0005030101165175438outcome:
passed📌 Teardown phase
duration:
0.0001913551241159439outcome:
passed -
✅ Test 86
params: default="y", user_input="", expected_output=true, ctrl_d="y"📌 Runtime Parameters
params: default: y user_input: <class 'EOFError'> expected_output: True ctrl_d: y id: y-EOFError-True-y📌 Setup phase
duration:
0.0003438987769186497outcome:
passed📌 Call phase
duration:
0.0006176712922751904outcome:
passed📌 Teardown phase
duration:
0.0001962766982614994outcome:
passed -
✅ Test 87
params: default="n", user_input="", expected_output=true, ctrl_d="y"📌 Runtime Parameters
params: default: n user_input: <class 'EOFError'> expected_output: True ctrl_d: y id: n-EOFError-True-y📌 Setup phase
duration:
0.00032446905970573425outcome:
passed📌 Call phase
duration:
0.0005012326873838902outcome:
passed📌 Teardown phase
duration:
0.00018575787544250488outcome:
passed -
✅ Test 88
params: default="n", user_input="", expected_output=false, ctrl_d="n"📌 Runtime Parameters
params: default: n user_input: <class 'EOFError'> expected_output: False ctrl_d: n id: n-EOFError-False-n📌 Setup phase
duration:
0.0003326679579913616outcome:
passed📌 Call phase
duration:
0.0005488009192049503outcome:
passed📌 Teardown phase
duration:
0.00019109109416604042outcome:
passed -
✅ Test 89
params: default=null, user_input="['foo', ]", expected_output=true, ctrl_d="y"📌 Runtime Parameters
params: default: None user_input: ['foo', <class 'EOFError'>] expected_output: True ctrl_d: y id: None-user_input5-True-y📌 Setup phase
duration:
0.00033596204593777657outcome:
passed📌 Call phase
duration:
0.0005290159024298191outcome:
passed📌 Teardown phase
duration:
0.00018898909911513329outcome:
passed -
✅ Test 90
params: default=null, user_input="['foo', ]", expected_output=false, ctrl_d="n"📌 Runtime Parameters
params: default: None user_input: ['foo', <class 'EOFError'>] expected_output: False ctrl_d: n id: None-user_input6-False-n📌 Setup phase
duration:
0.00031954795122146606outcome:
passed📌 Call phase
duration:
0.000600714236497879outcome:
passed📌 Teardown phase
duration:
0.00020031724125146866outcome:
passed -
✅ Test 91
params: default="y", user_input="", expected_output=true, ctrl_d=null📌 Runtime Parameters
params: default: y user_input: <class 'EOFError'> expected_output: True ctrl_d: None id: y-EOFError-True-None📌 Setup phase
duration:
0.0003176801837980747outcome:
passed📌 Call phase
duration:
0.0005127890035510063outcome:
passed📌 Teardown phase
duration:
0.00018085679039359093outcome:
passed -
✅ Test 92
params: default="n", user_input="", expected_output=false, ctrl_d=null📌 Runtime Parameters
params: default: n user_input: <class 'EOFError'> expected_output: False ctrl_d: None id: n-EOFError-False-None📌 Setup phase
duration:
0.00033206725493073463outcome:
passed📌 Call phase
duration:
0.0005032527260482311outcome:
passed📌 Teardown phase
duration:
0.00018072593957185745outcome:
passed -
✅ Test 93
params: default=null, user_input="['invalid', 'ok', '', , 'ok', 'y']", expected_output=true, ctrl_d=null📌 Runtime Parameters
params: default: None user_input: ['invalid', 'ok', '', <class 'EOFError'>, 'ok', 'y'] expected_output: True ctrl_d: None id: None-user_input9-True-None📌 Setup phase
duration:
0.00031562894582748413outcome:
passed📌 Call phase
duration:
0.0015414250083267689outcome:
passed📌 Teardown phase
duration:
0.00020718807354569435outcome:
passed -
✅ Test 94
params: default="n", user_input="['no', ]", expected_output=false, ctrl_d=null📌 Runtime Parameters
params: default: n user_input: ['no', <class 'EOFError'>] expected_output: False ctrl_d: None id: n-user_input10-False-None📌 Setup phase
duration:
0.0003276551142334938outcome:
passed📌 Call phase
duration:
0.0005121282301843166outcome:
passed📌 Teardown phase
duration:
0.00018907804042100906outcome:
passed -
✅ Test 95
params: default=null, user_input="[, , , 'y']", expected_output=true, ctrl_d=null📌 Runtime Parameters
params: default: None user_input: [<class 'EOFError'>, <class 'EOFError'>, <class 'EOFError'>, 'y'] expected_output: True ctrl_d: None id: None-user_input11-True-None📌 Setup phase
duration:
0.00032154470682144165outcome:
passed📌 Call phase
duration:
0.0005429340526461601outcome:
passed📌 Teardown phase
duration:
0.00018904870375990868outcome:
passed -
✅ Test 96
params: default=null, user_input="['invalid', '', 'nope', ]", expected_output=false, ctrl_d="n"📌 Runtime Parameters
params: default: None user_input: ['invalid', '', 'nope', <class 'EOFError'>] expected_output: False ctrl_d: n id: None-user_input12-False-n📌 Setup phase
duration:
0.0003341641277074814outcome:
passed📌 Call phase
duration:
0.0005322480574250221outcome:
passed📌 Teardown phase
duration:
0.00018707290291786194outcome:
passed -
✅ Test 97
params: default=null, user_input="['nope', 'nope', ]", expected_output=true, ctrl_d="y"📌 Runtime Parameters
params: default: None user_input: ['nope', 'nope', <class 'EOFError'>] expected_output: True ctrl_d: y id: None-user_input13-True-y📌 Setup phase
duration:
0.0003134598955512047outcome:
passed📌 Call phase
duration:
0.000620678998529911outcome:
passed📌 Teardown phase
duration:
0.00023147696629166603outcome:
passed
↳ Function: test_ask_yes_no_mixed_sequences
-
✅ Test 98
params: default=null, ctrl_c="invalid", ctrl_d=null, user_input="['what', '', 'nope', , 'ok', , 'no']", expected_output=false📌 Runtime Parameters
params: default: None ctrl_c: invalid ctrl_d: None user_input: ['what', '', 'nope', <class 'KeyboardInterrupt'>, 'ok', <class 'EOFError'>, 'no'] expected_output: False id: None-invalid-None-user_input0-False📌 Setup phase
duration:
0.00036841025575995445outcome:
passed📌 Call phase
duration:
0.000581422820687294outcome:
passed📌 Teardown phase
duration:
0.00020136311650276184outcome:
passed -
✅ Test 99
params: default=null, ctrl_c=null, ctrl_d="notananswer", user_input="['maybe', , 'nop', 'yep', , 'yes']", expected_output=true📌 Runtime Parameters
params: default: None ctrl_c: None ctrl_d: notananswer user_input: ['maybe', <class 'KeyboardInterrupt'>, 'nop', 'yep', <class 'EOFError'>, 'yes'] expected_output: True id: None-None-notananswer-user_input1-True📌 Setup phase
duration:
0.0003747781738638878outcome:
passed📌 Call phase
duration:
0.00057247094810009outcome:
passed📌 Teardown phase
duration:
0.000196932815015316outcome:
passed -
✅ Test 100
params: default=null, ctrl_c="n", ctrl_d="nop", user_input="['ok', , , 'maybe', , 'nah', ]", expected_output=false📌 Runtime Parameters
params: default: None ctrl_c: n ctrl_d: nop user_input: ['ok', <class 'EOFError'>, <class 'EOFError'>, 'maybe', <class 'EOFError'>, 'nah', <class 'KeyboardInterrupt'>] expected_output: False id: None-n-nop-user_input2-False📌 Setup phase
duration:
0.0003656377084553242outcome:
passed📌 Call phase
duration:
0.0006721238605678082outcome:
passed📌 Teardown phase
duration:
0.0002183336764574051outcome:
passed
-
-
📄 test_utils_channels.py
↳ Function: test_load_channels_and_channels_class_with_professional_names
-
✅ Test 101
📌 Setup phase
duration:
0.00012739095836877823outcome:
passed📌 Call phase
duration:
0.001130423042923212outcome:
passed📌 Teardown phase
duration:
0.00012578722089529037outcome:
passed
-
-
📄 test_utils_config.py
↳ Function: test_config_with_nested_and_list_data
-
✅ Test 102
📌 Setup phase
duration:
0.00012319814413785934outcome:
passed📌 Call phase
duration:
0.0006481800228357315outcome:
passed📌 Teardown phase
duration:
0.00011166511103510857outcome:
passed
↳ Function: test_config_with_strange_and_edge_keys
-
✅ Test 103
📌 Setup phase
duration:
0.00011732662096619606outcome:
passed📌 Call phase
duration:
0.0007693599909543991outcome:
passed📌 Teardown phase
duration:
0.00011599622666835785outcome:
passed
-
-
📄 test_utils_cpint.py
↳ Function: test_load_color_variants_all_keys_and_types
-
✅ Test 104
params: base_color="red"📌 Runtime Parameters
params: base_color: red id: red📌 Setup phase
duration:
0.00020384369418025017outcome:
passed📌 Call phase
duration:
0.00021692970767617226outcome:
passed📌 Teardown phase
duration:
0.0001323898322880268outcome:
passed -
✅ Test 105
params: base_color="blue"📌 Runtime Parameters
params: base_color: blue id: blue📌 Setup phase
duration:
0.00017525861039757729outcome:
passed📌 Call phase
duration:
0.0001654759980738163outcome:
passed📌 Teardown phase
duration:
0.0001263846643269062outcome:
passed -
✅ Test 106
params: base_color="yellow"📌 Runtime Parameters
params: base_color: yellow id: yellow📌 Setup phase
duration:
0.00017711427062749863outcome:
passed📌 Call phase
duration:
0.00015449710190296173outcome:
passed📌 Teardown phase
duration:
0.00012149801477789879outcome:
passed -
✅ Test 107
params: base_color="green"📌 Runtime Parameters
params: base_color: green id: green📌 Setup phase
duration:
0.0001726727932691574outcome:
passed📌 Call phase
duration:
0.00016327900812029839outcome:
passed📌 Teardown phase
duration:
0.0001232912763953209outcome:
passed -
✅ Test 108
params: base_color="cyan"📌 Runtime Parameters
params: base_color: cyan id: cyan📌 Setup phase
duration:
0.00017556082457304outcome:
passed📌 Call phase
duration:
0.00014973385259509087outcome:
passed📌 Teardown phase
duration:
0.00012071896344423294outcome:
passed -
✅ Test 109
params: base_color="magenta"📌 Runtime Parameters
params: base_color: magenta id: magenta📌 Setup phase
duration:
0.00019473396241664886outcome:
passed📌 Call phase
duration:
0.00015226472169160843outcome:
passed📌 Teardown phase
duration:
0.00012229522690176964outcome:
passed -
✅ Test 110
params: base_color="white"📌 Runtime Parameters
params: base_color: white id: white📌 Setup phase
duration:
0.00017910683527588844outcome:
passed📌 Call phase
duration:
0.00014486396685242653outcome:
passed📌 Teardown phase
duration:
0.00012950971722602844outcome:
passed -
✅ Test 111
params: base_color="black"📌 Runtime Parameters
params: base_color: black id: black📌 Setup phase
duration:
0.00020072562620043755outcome:
passed📌 Call phase
duration:
0.00015360163524746895outcome:
passed📌 Teardown phase
duration:
0.00012415554374456406outcome:
passed
↳ Function: test_cprint_all_cases_fancy
-
✅ Test 112
params: objects=[["Fancy", "list"], {"a": 7}, null], color_spec=["red", "+"], sep=" | ", expected_flatten="['Fancy', 'list'] | {'a': 7} | None", expected_error=null📌 Runtime Parameters
params: objects: - - Fancy - list - a: 7 - (vide) color_spec: - red - + sep: | expected_flatten: ['Fancy', 'list'] | {'a': 7} | None expected_error: None id: objects0-color_spec0- | -['Fancy', 'list'] | {'a': 7} | None-None📌 Setup phase
duration:
0.0006513171829283237outcome:
passed📌 Call phase
duration:
0.0002632131800055504outcome:
passed📌 Teardown phase
duration:
0.00025377795100212097outcome:
passed -
✅ Test 113
params: objects=[{"k": [1, 2]}, 99, ["X", ["Y"]]], color_spec=["blue", "++"], sep=" - ", expected_flatten="{'k': [1, 2]} - 99 - ['X', ['Y']]", expected_error=null📌 Runtime Parameters
params: objects: - k: - 1 - 2 - 99 - - X - - Y color_spec: - blue - ++ sep: - expected_flatten: {'k': [1, 2]} - 99 - ['X', ['Y']] expected_error: None id: objects1-color_spec1- - -{'k': [1, 2]} - 99 - ['X', ['Y']]-None📌 Setup phase
duration:
0.0004968992434442043outcome:
passed📌 Call phase
duration:
0.00023642415180802345outcome:
passed📌 Teardown phase
duration:
0.0002637389115989208outcome:
passed -
✅ Test 114
params: objects=[[], {}, "End"], color_spec=["magenta", "--"], sep=" / ", expected_flatten="[] / {} / End", expected_error=null📌 Runtime Parameters
params: objects: - (vide) - (vide) - End color_spec: - magenta - -- sep: / expected_flatten: [] / {} / End expected_error: None id: objects2-color_spec2- / -[] / {} / End-None📌 Setup phase
duration:
0.00046426383778452873outcome:
passed📌 Call phase
duration:
0.0002219150774180889outcome:
passed📌 Teardown phase
duration:
0.0002515469677746296outcome:
passed -
✅ Test 115
params: objects="", [3, 4, "done", 0], color_spec=["green", ""], sep=";", expected_flatten="['', [3, 4]];done;0", expected_error=null📌 Runtime Parameters
params: objects: - - (vide) - - 3 - 4 - done - (vide) color_spec: - green - (vide) sep: ; expected_flatten: ['', [3, 4]];done;0 expected_error: None id: objects3-color_spec3-;-['', [3, 4]];done;0-None📌 Setup phase
duration:
0.000463360920548439outcome:
passed📌 Call phase
duration:
0.0002179127186536789outcome:
passed📌 Teardown phase
duration:
0.00024637579917907715outcome:
passed -
✅ Test 116
params: objects=[["alpha", null], ["beta", {}], "stop"], color_spec=["yellow", ""], sep="::", expected_flatten="['alpha', None]::['beta', {}]::stop", expected_error=null📌 Runtime Parameters
params: objects: - - alpha - (vide) - - beta - (vide) - stop color_spec: - yellow - (vide) sep: :: expected_flatten: ['alpha', None]::['beta', {}]::stop expected_error: None id: objects4-color_spec4-::-['alpha', None]::['beta', {}]::stop-None📌 Setup phase
duration:
0.0008245380595326424outcome:
passed📌 Call phase
duration:
0.00022737588733434677outcome:
passed📌 Teardown phase
duration:
0.00026340968906879425outcome:
passed -
✅ Test 117
params: objects="deep", ["deeper", ["deepest"], "X"], color_spec=["cyan", "+"], sep=" ... ", expected_flatten="['deep', ['deeper', ['deepest']]] ... X", expected_error=null📌 Runtime Parameters
params: objects: - - deep - - deeper - - deepest - X color_spec: - cyan - + sep: ... expected_flatten: ['deep', ['deeper', ['deepest']]] ... X expected_error: None id: objects5-color_spec5- ... -['deep', ['deeper', ['deepest']]] ... X-None📌 Setup phase
duration:
0.0004668082110583782outcome:
passed📌 Call phase
duration:
0.00022443896159529686outcome:
passed📌 Teardown phase
duration:
0.0002466370351612568outcome:
passed -
✅ Test 118
params: objects=[{"dict": {"nested": [4, 5]}}, [true, false], 6.28], color_spec=["white", "++"], sep=" // ", expected_flatten="{'dict': {'nested': [4, 5]}} // [True, False] // 6.28", expected_error=null📌 Runtime Parameters
params: objects: - dict: nested: - 4 - 5 - - True - (vide) - 6.28 color_spec: - white - ++ sep: // expected_flatten: {'dict': {'nested': [4, 5]}} // [True, False] // 6.28 expected_error: None id: objects6-color_spec6- // -{'dict': {'nested': [4, 5]}} // [True, False] // 6.28-None📌 Setup phase
duration:
0.00045065581798553467outcome:
passed📌 Call phase
duration:
0.0002453988417983055outcome:
passed📌 Teardown phase
duration:
0.0002449839375913143outcome:
passed -
✅ Test 119
params: objects="A", ["B", "string", "C"], color_spec=["red", "--"], sep="==", expected_flatten="['A', ['B']]==string==C", expected_error=null📌 Runtime Parameters
params: objects: - - A - - B - string - C color_spec: - red - -- sep: == expected_flatten: ['A', ['B']]==string==C expected_error: None id: objects7-color_spec7-==-['A', ['B']]==string==C-None📌 Setup phase
duration:
0.00048213405534625053outcome:
passed📌 Call phase
duration:
0.0003317086957395077outcome:
passed📌 Teardown phase
duration:
0.0002757222391664982outcome:
passed -
✅ Test 120
params: objects="Test", null, [, {"v": 0}], color_spec=["green", "++"], sep=" ++ ", expected_flatten="['Test', None, []] ++ {'v': 0}", expected_error=null📌 Runtime Parameters
params: objects: - - Test - (vide) - (vide) - v: 0 color_spec: - green - ++ sep: ++ expected_flatten: ['Test', None, []] ++ {'v': 0} expected_error: None id: objects8-color_spec8- ++ -['Test', None, []] ++ {'v': 0}-None📌 Setup phase
duration:
0.00045522674918174744outcome:
passed📌 Call phase
duration:
0.00022915611043572426outcome:
passed📌 Teardown phase
duration:
0.00023955106735229492outcome:
passed -
✅ Test 121
params: objects=[["no", "color"], "plain"], color_spec=null, sep=";", expected_flatten="['no', 'color'];plain", expected_error=null📌 Runtime Parameters
params: objects: - - no - color - plain color_spec: None sep: ; expected_flatten: ['no', 'color'];plain expected_error: None id: objects9-None-;-['no', 'color'];plain-None📌 Setup phase
duration:
0.00043996889144182205outcome:
passed📌 Call phase
duration:
0.00021458091214299202outcome:
passed📌 Teardown phase
duration:
0.0002426719292998314outcome:
passed -
✅ Test 122
params: objects=[["simple"], "", 12], color_spec=null, sep=" | ", expected_flatten="['simple'] | | 12", expected_error=null📌 Runtime Parameters
params: objects: - - simple - (vide) - 12 color_spec: None sep: | expected_flatten: ['simple'] | | 12 expected_error: None id: objects10-None- | -['simple'] | | 12-None📌 Setup phase
duration:
0.000455338042229414outcome:
passed📌 Call phase
duration:
0.00021102512255311012outcome:
passed📌 Teardown phase
duration:
0.00024416204541921616outcome:
passed -
✅ Test 123
params: objects=["very", "deep", {"ok": true}], color_spec=null, sep=" : ", expected_flatten="'very', 'deep' : {'ok': True}", expected_error=null📌 Runtime Parameters
params: objects: - - - very - deep - ok: True color_spec: None sep: : expected_flatten: [['very', 'deep']] : {'ok': True} expected_error: None id: objects11-None- : -[['very', 'deep']] : {'ok': True}-None📌 Setup phase
duration:
0.0004521850496530533outcome:
passed📌 Call phase
duration:
0.0002150731161236763outcome:
passed📌 Teardown phase
duration:
0.00024391897022724152outcome:
passed -
✅ Test 124
params: objects=[["fail", "color"], 123], color_spec=["green", "!!"], sep="|", expected_flatten="['fail', 'color']|123", expected_error=""📌 Runtime Parameters
params: objects: - - fail - color - 123 color_spec: - green - !! sep: | expected_flatten: ['fail', 'color']|123 expected_error: <class 'ValueError'> id: objects12-color_spec12-|-['fail', 'color']|123-ValueError📌 Setup phase
duration:
0.00045833131298422813outcome:
passed📌 Call phase
duration:
0.00025034230202436447outcome:
passed📌 Teardown phase
duration:
0.0002538212575018406outcome:
passed -
✅ Test 125
params: objects=[["error"], {}], color_spec=["cyan", "xxx"], sep=" * ", expected_flatten="['error'] * {}", expected_error=""📌 Runtime Parameters
params: objects: - - error - (vide) color_spec: - cyan - xxx sep: * expected_flatten: ['error'] * {} expected_error: <class 'ValueError'> id: objects13-color_spec13- * -['error'] * {}-ValueError📌 Setup phase
duration:
0.0004679691046476364outcome:
passed📌 Call phase
duration:
0.0002507907338440418outcome:
passed📌 Teardown phase
duration:
0.0002565239556133747outcome:
passed -
✅ Test 126
params: objects="nope"], ["bad", color_spec=["magenta", "invalid"], sep="//", expected_flatten="['nope']//['bad']", expected_error=""📌 Runtime Parameters
params: objects: - - nope - - bad color_spec: - magenta - invalid sep: // expected_flatten: ['nope']//['bad'] expected_error: <class 'ValueError'> id: objects14-color_spec14-//-['nope']//['bad']-ValueError📌 Setup phase
duration:
0.00046900101006031036outcome:
passed📌 Call phase
duration:
0.00023727677762508392outcome:
passed📌 Teardown phase
duration:
0.0002432679757475853outcome:
passed -
✅ Test 127
params: objects=["wrong", "base"], color_spec=["notacolor", ""], sep="--", expected_flatten="wrong--base", expected_error=""📌 Runtime Parameters
params: objects: - wrong - base color_spec: - notacolor - (vide) sep: -- expected_flatten: wrong--base expected_error: <class 'ValueError'> id: objects15-color_spec15----wrong--base-ValueError📌 Setup phase
duration:
0.0004819151945412159outcome:
passed📌 Call phase
duration:
0.0002275276929140091outcome:
passed📌 Teardown phase
duration:
0.00025200238451361656outcome:
passed
-
-
📄 test_utils_debug.py
↳ Function: test_traceable
-
✅ Test 128
params: cls="", entry=[[10, 20], {}], expected="creating: A(10, 20)"📌 Runtime Parameters
params: cls: <class 'test_utils_debug.A'> entry: - - 10 - 20 - (vide) expected: creating: A(10, 20) id: A-entry0-creating: A(10, 20)📌 Setup phase
duration:
0.0002915728837251663outcome:
passed📌 Call phase
duration:
0.0010017533786594868outcome:
passed📌 Teardown phase
duration:
0.0001803799532353878outcome:
passed -
✅ Test 129
params: cls="", entry=[[10, 20], {"e": 100}], expected="creating: A(10, 20, e=100)"📌 Runtime Parameters
params: cls: <class 'test_utils_debug.A'> entry: - - 10 - 20 - e: 100 expected: creating: A(10, 20, e=100) id: A-entry1-creating: A(10, 20, e=100)📌 Setup phase
duration:
0.0002794051542878151outcome:
passed📌 Call phase
duration:
0.0009679379872977734outcome:
passed📌 Teardown phase
duration:
0.00017935596406459808outcome:
passed -
✅ Test 130
params: cls="", entry="foo", [1, 2, 3, {"flag": true, "data": {"x": 9}}], expected="creating: A('foo', [1, 2, 3], flag=True, data={'x': 9})"📌 Runtime Parameters
params: cls: <class 'test_utils_debug.A'> entry: - - foo - - 1 - 2 - 3 - flag: True data: x: 9 expected: creating: A('foo', [1, 2, 3], flag=True, data={'x': 9}) id: A-entry2-creating: A('foo', [1, 2, 3], flag=True, data={'x': 9})📌 Setup phase
duration:
0.0002950681373476982outcome:
passed📌 Call phase
duration:
0.000812058337032795outcome:
passed📌 Teardown phase
duration:
0.00019421428442001343outcome:
passed -
✅ Test 131
params: cls="", entry="([CustomObj(big), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], {'name': 'test', 'meta': 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'})", expected="creating: A(CustomObj(big), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], name='test', meta='yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...)"📌 Runtime Parameters
params: cls: <class 'test_utils_debug.A'> entry: ([CustomObj(big), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], {'name': 'test', 'meta': 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'}) expected: creating: A(CustomObj(big), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], name='test', meta='yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...) id: A-entry3-creating: A(CustomObj(big), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], name='test', meta='yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...)📌 Setup phase
duration:
0.00029395613819360733outcome:
passed📌 Call phase
duration:
0.0008943038992583752outcome:
passed📌 Teardown phase
duration:
0.00018042000010609627outcome:
passed -
✅ Test 132
params: cls="", entry="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", [0, 0, 0, 0, 0, {}], expected="creating: A('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..., [0, 0, 0, 0, 0])"📌 Runtime Parameters
params: cls: <class 'test_utils_debug.A'> entry: - - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) expected: creating: A('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..., [0, 0, 0, 0, 0]) id: A-entry4-creating: A('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..., [0, 0, 0, 0, 0])📌 Setup phase
duration:
0.00028965016826987267outcome:
passed📌 Call phase
duration:
0.0008674692362546921outcome:
passed📌 Teardown phase
duration:
0.0002565542235970497outcome:
passed
↳ Function: test_short_repr
-
✅ Test 133
params: value="abc", cutoff=10, expected="'abc'"📌 Runtime Parameters
params: value: abc cutoff: 10 expected: 'abc' id: abc-10-'abc'📌 Setup phase
duration:
0.0003902711905539036outcome:
passed📌 Call phase
duration:
0.00015277788043022156outcome:
passed📌 Teardown phase
duration:
0.00018267007544636726outcome:
passed -
✅ Test 135
params: value=12345, cutoff=10, expected="12345"📌 Runtime Parameters
params: value: 12345 cutoff: 10 expected: 12345 id: 12345-10-12345📌 Setup phase
duration:
0.0003876746632158756outcome:
passed📌 Call phase
duration:
0.00017521344125270844outcome:
passed📌 Teardown phase
duration:
0.00016371486708521843outcome:
passed -
✅ Test 136
params: value=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], cutoff=15, expected="[0, 0, 0, 0, 0,..."📌 Runtime Parameters
params: value: - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) - (vide) cutoff: 15 expected: [0, 0, 0, 0, 0,... id: value3-15-[0, 0, 0, 0, 0,...📌 Setup phase
duration:
0.0002743210643529892outcome:
passed📌 Call phase
duration:
0.0001567089930176735outcome:
passed📌 Teardown phase
duration:
0.000168489757925272outcome:
passed -
✅ Test 137
params: value=null, cutoff=10, expected="None"📌 Runtime Parameters
params: value: None cutoff: 10 expected: None id: None-10-None📌 Setup phase
duration:
0.00026769470423460007outcome:
passed📌 Call phase
duration:
0.00013624317944049835outcome:
passed📌 Teardown phase
duration:
0.0001700492575764656outcome:
passed
-
-
📄 test_utils_dictext.py
↳ Function: test_attrdict_getattr
-
✅ Test 139
params: data={"x": 1, "y": 2}, attr="x", expected=1📌 Runtime Parameters
params: data: x: 1 y: 2 attr: x expected: 1 id: data0-x-1📌 Setup phase
duration:
0.0003402181901037693outcome:
passed📌 Call phase
duration:
0.0001637730747461319outcome:
passed📌 Teardown phase
duration:
0.00015669502317905426outcome:
passed -
✅ Test 140
params: data={"world": "ok"}, attr="world", expected="ok"📌 Runtime Parameters
params: data: world: ok attr: world expected: ok id: data1-world-ok📌 Setup phase
duration:
0.0002788458950817585outcome:
passed📌 Call phase
duration:
0.00014668982475996017outcome:
passed📌 Teardown phase
duration:
0.0001607653684914112outcome:
passed -
✅ Test 141
params: data={"outer": {"inner": 42}}, attr="outer", expected={"inner": 42}📌 Runtime Parameters
params: data: outer: inner: 42 attr: outer expected: inner: 42 id: data2-outer-expected2📌 Setup phase
duration:
0.0002596159465610981outcome:
passed📌 Call phase
duration:
0.00014430098235607147outcome:
passed📌 Teardown phase
duration:
0.00015641003847122192outcome:
passed
↳ Function: test_attrdict_setattr
-
✅ Test 142
params: initial={}, attr="nouveau", value=123📌 Runtime Parameters
params: initial: {} attr: nouveau value: 123 id: initial0-nouveau-123📌 Setup phase
duration:
0.00026659201830625534outcome:
passed📌 Call phase
duration:
0.00014480063691735268outcome:
passed📌 Teardown phase
duration:
0.00015192199498414993outcome:
passed -
✅ Test 143
params: initial={"a": 1}, attr="b", value="valeur"📌 Runtime Parameters
params: initial: a: 1 attr: b value: valeur id: initial1-b-valeur📌 Setup phase
duration:
0.00029400037601590157outcome:
passed📌 Call phase
duration:
0.0001467270776629448outcome:
passed📌 Teardown phase
duration:
0.00015080394223332405outcome:
passed
↳ Function: test_attrdict_delattr
-
✅ Test 144
params: initial={"a": 1, "b": 2}, to_del="a", expected_keys=["b"]📌 Runtime Parameters
params: initial: a: 1 b: 2 to_del: a expected_keys: - b id: initial0-a-expected_keys0📌 Setup phase
duration:
0.0002829479053616524outcome:
passed📌 Call phase
duration:
0.0001984001137316227outcome:
passed📌 Teardown phase
duration:
0.00015457021072506905outcome:
passed -
✅ Test 145
params: initial={"k": "v"}, to_del="k", expected_keys=[]📌 Runtime Parameters
params: initial: k: v to_del: k expected_keys: [] id: initial1-k-expected_keys1📌 Setup phase
duration:
0.0002684979699552059outcome:
passed📌 Call phase
duration:
0.00017790310084819794outcome:
passed📌 Teardown phase
duration:
0.0001727389171719551outcome:
passed
↳ Function: test_attrdict_dir
-
✅ Test 146
params: data={"alpha": 1, "beta": 2}, expected_keys="{'alpha', 'beta'}"📌 Runtime Parameters
params: data: alpha: 1 beta: 2 expected_keys: {'alpha', 'beta'} id: data0-expected_keys0📌 Setup phase
duration:
0.00021314993500709534outcome:
passed📌 Call phase
duration:
0.0001463848166167736outcome:
passed📌 Teardown phase
duration:
0.00014354893937706947outcome:
passed -
✅ Test 147
params: data={}, expected_keys="set()"📌 Runtime Parameters
params: data: {} expected_keys: set() id: data1-expected_keys1📌 Setup phase
duration:
0.00022162776440382004outcome:
passed📌 Call phase
duration:
0.00019330624490976334outcome:
passed📌 Teardown phase
duration:
0.00014443881809711456outcome:
passed
↳ Function: test_attrdict_getattr_and_missing
-
✅ Test 148
params: data={"x": 1, "y": 2}, attr="x", expect_value=1, expect_error=null📌 Runtime Parameters
params: data: x: 1 y: 2 attr: x expect_value: 1 expect_error: None id: data0-x-1-None📌 Setup phase
duration:
0.0003053969703614712outcome:
passed📌 Call phase
duration:
0.00013969792053103447outcome:
passed📌 Teardown phase
duration:
0.00016266386955976486outcome:
passed -
✅ Test 149
params: data={"number": 42}, attr="missing", expect_value=null, expect_error="'MyDict' object has no attribute 'missing'"📌 Runtime Parameters
params: data: number: 42 attr: missing expect_value: None expect_error: 'MyDict' object has no attribute 'missing' id: data1-missing-None-'MyDict' object has no attribute 'missing'📌 Setup phase
duration:
0.0003191721625626087outcome:
passed📌 Call phase
duration:
0.00018185283988714218outcome:
passed📌 Teardown phase
duration:
0.00016986578702926636outcome:
passed
↳ Function: test_dictupdatemixin_init_and_update
-
✅ Test 150
params: init_kwargs={"a": 1, "b": 2}, other=null, kwargs={}, expected={"a": 1, "b": 2}📌 Runtime Parameters
params: init_kwargs: a: 1 b: 2 other: None kwargs: {} expected: a: 1 b: 2 id: init_kwargs0-None-kwargs0-expected0📌 Setup phase
duration:
0.00030518369749188423outcome:
passed📌 Call phase
duration:
0.00015218323096632957outcome:
passed📌 Teardown phase
duration:
0.00019277911633253098outcome:
passed -
✅ Test 151
params: init_kwargs={}, other={"x": 10, "y": 20}, kwargs={}, expected={"x": 10, "y": 20}📌 Runtime Parameters
params: init_kwargs: {} other: x: 10 y: 20 kwargs: {} expected: x: 10 y: 20 id: init_kwargs1-other1-kwargs1-expected1📌 Setup phase
duration:
0.00031325966119766235outcome:
passed📌 Call phase
duration:
0.00018311990424990654outcome:
passed📌 Teardown phase
duration:
0.00017476128414273262outcome:
passed -
✅ Test 152
params: init_kwargs={"world": "ok"}, other={"number": 42}, kwargs={"num2": 100}, expected={"world": "ok", "number": 42, "num2": 100}📌 Runtime Parameters
params: init_kwargs: world: ok other: number: 42 kwargs: num2: 100 expected: world: ok number: 42 num2: 100 id: init_kwargs2-other2-kwargs2-expected2📌 Setup phase
duration:
0.0003189537674188614outcome:
passed📌 Call phase
duration:
0.00015416089445352554outcome:
passed📌 Teardown phase
duration:
0.00017283298075199127outcome:
passed -
✅ Test 153
params: init_kwargs={}, other=null, kwargs={"alpha": "beta"}, expected={"alpha": "beta"}📌 Runtime Parameters
params: init_kwargs: {} other: None kwargs: alpha: beta expected: alpha: beta id: init_kwargs3-None-kwargs3-expected3📌 Setup phase
duration:
0.00033119600266218185outcome:
passed📌 Call phase
duration:
0.0001517687924206257outcome:
passed📌 Teardown phase
duration:
0.00017454195767641068outcome:
passed -
✅ Test 154
params: init_kwargs={}, other={"key": "value"}, kwargs={"extra": 1}, expected={"key": "value", "extra": 1}📌 Runtime Parameters
params: init_kwargs: {} other: key: value kwargs: extra: 1 expected: key: value extra: 1 id: init_kwargs4-other4-kwargs4-expected4📌 Setup phase
duration:
0.0003267652355134487outcome:
passed📌 Call phase
duration:
0.00014366582036018372outcome:
passed📌 Teardown phase
duration:
0.0001771426759660244outcome:
passed -
✅ Test 155
params: init_kwargs={}, other="key", "value"], ["list", [5, 6], kwargs={"extra": {"subkey": 123}}, expected={"key": "value", "list": [5, 6], "extra": {"subkey": 123}}📌 Runtime Parameters
params: init_kwargs: {} other: - - key - value - - list - - 5 - 6 kwargs: extra: subkey: 123 expected: key: value list: - 5 - 6 extra: subkey: 123 id: init_kwargs5-other5-kwargs5-expected5📌 Setup phase
duration:
0.00030964892357587814outcome:
passed📌 Call phase
duration:
0.0003193160519003868outcome:
passed📌 Teardown phase
duration:
0.00018661515787243843outcome:
passed
-
-
📄 test_utils_dotdir.py
↳ Function: test_dotdir_creation_and_base_exists
-
✅ Test 156
📌 Setup phase
duration:
0.0016540009528398514outcome:
passed📌 Call phase
duration:
0.0003676796332001686outcome:
passed📌 Teardown phase
duration:
0.0002254103310406208outcome:
passed
↳ Function: test_dotdir_repr_returns_path_str
-
✅ Test 157
📌 Setup phase
duration:
0.0006653377786278725outcome:
passed📌 Call phase
duration:
0.00025015557184815407outcome:
passed📌 Teardown phase
duration:
0.00020784791558980942outcome:
passed
↳ Function: test_dotdir_call
-
✅ Test 158
📌 Setup phase
duration:
0.0006821569986641407outcome:
passed📌 Call phase
duration:
0.0002530827187001705outcome:
passed📌 Teardown phase
duration:
0.00022130087018013outcome:
passed
-
-
📄 test_utils_eval.py
↳ Function: test_arithmetic_eval_valid
-
✅ Test 164
params: expr="1 + 2", expected=3📌 Runtime Parameters
params: expr: 1 + 2 expected: 3 id: 1 + 2-3📌 Setup phase
duration:
0.0004328540526330471outcome:
passed📌 Call phase
duration:
0.00023316778242588043outcome:
passed📌 Teardown phase
duration:
0.00017058104276657104outcome:
passed -
✅ Test 165
params: expr="4 - 2", expected=2📌 Runtime Parameters
params: expr: 4 - 2 expected: 2 id: 4 - 2-2📌 Setup phase
duration:
0.00024011777713894844outcome:
passed📌 Call phase
duration:
0.00018248660489916801outcome:
passed📌 Teardown phase
duration:
0.00014908844605088234outcome:
passed -
✅ Test 166
params: expr="3 * 5", expected=15📌 Runtime Parameters
params: expr: 3 * 5 expected: 15 id: 3 * 5-15📌 Setup phase
duration:
0.00022622616961598396outcome:
passed📌 Call phase
duration:
0.00015790387988090515outcome:
passed📌 Teardown phase
duration:
0.00013675587251782417outcome:
passed -
✅ Test 167
params: expr="10 / 2", expected=5.0📌 Runtime Parameters
params: expr: 10 / 2 expected: 5.0 id: 10 / 2-5.0📌 Setup phase
duration:
0.00032933522015810013outcome:
passed📌 Call phase
duration:
0.0001798388548195362outcome:
passed📌 Teardown phase
duration:
0.0001445431262254715outcome:
passed -
✅ Test 168
params: expr="10 % 3", expected=1📌 Runtime Parameters
params: expr: 10 % 3 expected: 1 id: 10 % 3-1📌 Setup phase
duration:
0.00022001191973686218outcome:
passed📌 Call phase
duration:
0.0001621972769498825outcome:
passed📌 Teardown phase
duration:
0.00015268102288246155outcome:
passed -
✅ Test 169
params: expr="-5", expected=-5📌 Runtime Parameters
params: expr: -5 expected: -5 id: -5--5📌 Setup phase
duration:
0.0002243993803858757outcome:
passed📌 Call phase
duration:
0.00017092935740947723outcome:
passed📌 Teardown phase
duration:
0.00014159828424453735outcome:
passed -
✅ Test 170
params: expr="+7", expected=7📌 Runtime Parameters
params: expr: +7 expected: 7 id: +7-7📌 Setup phase
duration:
0.00022148806601762772outcome:
passed📌 Call phase
duration:
0.00015159137547016144outcome:
passed📌 Teardown phase
duration:
0.00013691699132323265outcome:
passed -
✅ Test 171
params: expr="1 + 2 * 3", expected=7📌 Runtime Parameters
params: expr: 1 + 2 * 3 expected: 7 id: 1 + 2 * 3-7📌 Setup phase
duration:
0.00022745318710803986outcome:
passed📌 Call phase
duration:
0.0001817750744521618outcome:
passed📌 Teardown phase
duration:
0.00015685101971030235outcome:
passed -
✅ Test 172
params: expr="(1 + 2) * 3", expected=9📌 Runtime Parameters
params: expr: (1 + 2) * 3 expected: 9 id: (1 + 2) * 3-9📌 Setup phase
duration:
0.00023603904992341995outcome:
passed📌 Call phase
duration:
0.0001675751991569996outcome:
passed📌 Teardown phase
duration:
0.00013993866741657257outcome:
passed -
✅ Test 173
params: expr="-(-3)", expected=3📌 Runtime Parameters
params: expr: -(-3) expected: 3 id: -(-3)-3📌 Setup phase
duration:
0.0002256319858133793outcome:
passed📌 Call phase
duration:
0.00015718908980488777outcome:
passed📌 Teardown phase
duration:
0.00014047883450984955outcome:
passed -
✅ Test 174
params: expr="-2 + 4 * 2", expected=6📌 Runtime Parameters
params: expr: -2 + 4 * 2 expected: 6 id: -2 + 4 * 2-6📌 Setup phase
duration:
0.00023417221382260323outcome:
passed📌 Call phase
duration:
0.00016339775174856186outcome:
passed📌 Teardown phase
duration:
0.000141992699354887outcome:
passed -
✅ Test 175
params: expr="(4 + 5) * (6 - 1)", expected=45📌 Runtime Parameters
params: expr: (4 + 5) * (6 - 1) expected: 45 id: (4 + 5) * (6 - 1)-45📌 Setup phase
duration:
0.00022527016699314117outcome:
passed📌 Call phase
duration:
0.00017152586951851845outcome:
passed📌 Teardown phase
duration:
0.00013801828026771545outcome:
passed -
✅ Test 176
params: expr="(((3)))", expected=3📌 Runtime Parameters
params: expr: (((3))) expected: 3 id: (((3)))-3📌 Setup phase
duration:
0.0002209329977631569outcome:
passed📌 Call phase
duration:
0.00015590572729706764outcome:
passed📌 Teardown phase
duration:
0.00014865724369883537outcome:
passed -
✅ Test 177
params: expr="-(-(-2))", expected=-2📌 Runtime Parameters
params: expr: -(-(-2)) expected: -2 id: -(-(-2))--2📌 Setup phase
duration:
0.00021299486979842186outcome:
passed📌 Call phase
duration:
0.00015676487237215042outcome:
passed📌 Teardown phase
duration:
0.0001468840055167675outcome:
passed -
✅ Test 178
params: expr="3 + +4", expected=7📌 Runtime Parameters
params: expr: 3 + +4 expected: 7 id: 3 + +4-7📌 Setup phase
duration:
0.00022300519049167633outcome:
passed📌 Call phase
duration:
0.00016331207007169724outcome:
passed📌 Teardown phase
duration:
0.0001410776749253273outcome:
passed -
✅ Test 179
params: expr="3 + -4", expected=-1📌 Runtime Parameters
params: expr: 3 + -4 expected: -1 id: 3 + -4--1📌 Setup phase
duration:
0.00021461397409439087outcome:
passed📌 Call phase
duration:
0.00016474025323987007outcome:
passed📌 Teardown phase
duration:
0.00014420505613088608outcome:
passed -
✅ Test 180
params: expr="True + 1", expected=2📌 Runtime Parameters
params: expr: True + 1 expected: 2 id: True + 1-2📌 Setup phase
duration:
0.00021963100880384445outcome:
passed📌 Call phase
duration:
0.00016967393457889557outcome:
passed📌 Teardown phase
duration:
0.00017479993402957916outcome:
passed -
✅ Test 181
params: expr="'string'", expected="string"📌 Runtime Parameters
params: expr: 'string' expected: string id: 'string'-string📌 Setup phase
duration:
0.00023794500157237053outcome:
passed📌 Call phase
duration:
0.00015534693375229836outcome:
passed📌 Teardown phase
duration:
0.00014190608635544777outcome:
passed -
✅ Test 182
params: expr="1e1000 * 1e1000", expected=Infinity📌 Runtime Parameters
params: expr: 1e1000 * 1e1000 expected: inf id: 1e1000 * 1e1000-inf📌 Setup phase
duration:
0.00022445200011134148outcome:
passed📌 Call phase
duration:
0.00015390990301966667outcome:
passed📌 Teardown phase
duration:
0.00013739895075559616outcome:
passed -
✅ Test 183
params: expr="'a' + 'b'", expected="ab"📌 Runtime Parameters
params: expr: 'a' + 'b' expected: ab id: 'a' + 'b'-ab📌 Setup phase
duration:
0.00024158088490366936outcome:
passed📌 Call phase
duration:
0.00015706708654761314outcome:
passed📌 Teardown phase
duration:
0.0001463852822780609outcome:
passed
↳ Function: test_arithmetic_eval_raises_with_message
-
✅ Test 184
params: expr="2 ** 3", expected_message="Unsupported BinOp Pow"📌 Runtime Parameters
params: expr: 2 ** 3 expected_message: Unsupported BinOp Pow id: 2 ** 3-Unsupported BinOp Pow📌 Setup phase
duration:
0.00021860376000404358outcome:
passed📌 Call phase
duration:
0.00044105108827352524outcome:
passed📌 Teardown phase
duration:
0.00015648500993847847outcome:
passed -
✅ Test 185
params: expr="3 << 1", expected_message="Unsupported BinOp LShift"📌 Runtime Parameters
params: expr: 3 << 1 expected_message: Unsupported BinOp LShift id: 3 << 1-Unsupported BinOp LShift📌 Setup phase
duration:
0.0002243989147245884outcome:
passed📌 Call phase
duration:
0.0003990991972386837outcome:
passed📌 Teardown phase
duration:
0.00014688679948449135outcome:
passed -
✅ Test 186
params: expr="1 < 2", expected_message="Unsupported node type Compare"📌 Runtime Parameters
params: expr: 1 < 2 expected_message: Unsupported node type Compare id: 1 < 2-Unsupported node type Compare📌 Setup phase
duration:
0.00023664114996790886outcome:
passed📌 Call phase
duration:
0.00036214012652635574outcome:
passed📌 Teardown phase
duration:
0.00017438223585486412outcome:
passed -
✅ Test 187
params: expr="abs(3)", expected_message="Unsupported node type Call"📌 Runtime Parameters
params: expr: abs(3) expected_message: Unsupported node type Call id: abs(3)-Unsupported node type Call📌 Setup phase
duration:
0.00022645806893706322outcome:
passed📌 Call phase
duration:
0.0003593410365283489outcome:
passed📌 Teardown phase
duration:
0.0001509157009422779outcome:
passed -
✅ Test 188
params: expr="a + 2", expected_message="Unsupported node type Name"📌 Runtime Parameters
params: expr: a + 2 expected_message: Unsupported node type Name id: a + 2-Unsupported node type Name📌 Setup phase
duration:
0.00022742105647921562outcome:
passed📌 Call phase
duration:
0.0003541181795299053outcome:
passed📌 Teardown phase
duration:
0.00015652971342206outcome:
passed -
✅ Test 189
params: expr="string", expected_message="Unsupported node type Name"📌 Runtime Parameters
params: expr: string expected_message: Unsupported node type Name id: string-Unsupported node type Name📌 Setup phase
duration:
0.00022802501916885376outcome:
passed📌 Call phase
duration:
0.0001824670471251011outcome:
passed📌 Teardown phase
duration:
0.000146517064422369outcome:
passed -
✅ Test 190
params: expr="[1, 2] + [3]", expected_message="Unsupported node type List"📌 Runtime Parameters
params: expr: [1, 2] + [3] expected_message: Unsupported node type List id: [1, 2] + [3]-Unsupported node type List📌 Setup phase
duration:
0.0002206508070230484outcome:
passed📌 Call phase
duration:
0.0005666040815412998outcome:
passed📌 Teardown phase
duration:
0.00015037739649415016outcome:
passed -
✅ Test 191
params: expr="{1: 2}", expected_message="Unsupported node type Dict"📌 Runtime Parameters
params: expr: {1: 2} expected_message: Unsupported node type Dict id: {1: 2}-Unsupported node type Dict📌 Setup phase
duration:
0.00021989690139889717outcome:
passed📌 Call phase
duration:
0.00033833738416433334outcome:
passed📌 Teardown phase
duration:
0.00015097716823220253outcome:
passed
↳ Function: test_arithmetic_eval_runtime_errors
-
✅ Test 192
params: expr="1 / 0", exception=""📌 Runtime Parameters
params: expr: 1 / 0 exception: <class 'ZeroDivisionError'> id: 1 / 0-ZeroDivisionError📌 Setup phase
duration:
0.00023038126528263092outcome:
passed📌 Call phase
duration:
0.00017865095287561417outcome:
passed📌 Teardown phase
duration:
0.00019401218742132187outcome:
passed -
✅ Test 193
params: expr="10 % 0", exception=""📌 Runtime Parameters
params: expr: 10 % 0 exception: <class 'ZeroDivisionError'> id: 10 % 0-ZeroDivisionError📌 Setup phase
duration:
0.00023333728313446045outcome:
passed📌 Call phase
duration:
0.00018861889839172363outcome:
passed📌 Teardown phase
duration:
0.00014166999608278275outcome:
passed
↳ Function: test_forgiving_eval
-
✅ Test 194
params: expr="1 + 2", expected=3📌 Runtime Parameters
params: expr: 1 + 2 expected: 3 id: 1 + 2-3📌 Setup phase
duration:
0.00021824007853865623outcome:
passed📌 Call phase
duration:
0.00016871141269803047outcome:
passed📌 Teardown phase
duration:
0.0001481948420405388outcome:
passed -
✅ Test 195
params: expr="bad + 2", expected="bad + 2"📌 Runtime Parameters
params: expr: bad + 2 expected: bad + 2 id: bad + 2-bad + 2📌 Setup phase
duration:
0.00022321101278066635outcome:
passed📌 Call phase
duration:
0.00017461366951465607outcome:
passed📌 Teardown phase
duration:
0.0001349220983684063outcome:
passed -
✅ Test 196
params: expr="1 / 0", expected="1 / 0"📌 Runtime Parameters
params: expr: 1 / 0 expected: 1 / 0 id: 1 / 0-1 / 0📌 Setup phase
duration:
0.00022890837863087654outcome:
passed📌 Call phase
duration:
0.00016100192442536354outcome:
passed📌 Teardown phase
duration:
0.00014307210221886635outcome:
passed -
✅ Test 197
params: expr="2 ** 10", expected="2 ** 10"📌 Runtime Parameters
params: expr: 2 ** 10 expected: 2 ** 10 id: 2 ** 10-2 ** 10📌 Setup phase
duration:
0.0002498989924788475outcome:
passed📌 Call phase
duration:
0.00016363570466637611outcome:
passed📌 Teardown phase
duration:
0.00013861386105418205outcome:
passed
↳ Function: test_defaulting_eval
-
✅ Test 198
params: expr="3 * 4", default=0, expected=12📌 Runtime Parameters
params: expr: 3 * 4 default: 0 expected: 12 id: 3 * 4-0-12📌 Setup phase
duration:
0.0002685766667127609outcome:
passed📌 Call phase
duration:
0.00015667779371142387outcome:
passed📌 Teardown phase
duration:
0.0001725209876894951outcome:
passed -
✅ Test 199
params: expr="invalid + 1", default=99, expected=99📌 Runtime Parameters
params: expr: invalid + 1 default: 99 expected: 99 id: invalid + 1-99-99📌 Setup phase
duration:
0.0002687908709049225outcome:
passed📌 Call phase
duration:
0.00016558310016989708outcome:
passed📌 Teardown phase
duration:
0.00016170600429177284outcome:
passed -
✅ Test 200
params: expr="1 / 0", default=-1, expected=-1📌 Runtime Parameters
params: expr: 1 / 0 default: -1 expected: -1 id: 1 / 0--1--1📌 Setup phase
duration:
0.000259223859757185outcome:
passed📌 Call phase
duration:
0.00018785614520311356outcome:
passed📌 Teardown phase
duration:
0.00015725288540124893outcome:
passed -
✅ Test 201
params: expr="2 ** 10", default=42, expected=42📌 Runtime Parameters
params: expr: 2 ** 10 default: 42 expected: 42 id: 2 ** 10-42-42📌 Setup phase
duration:
0.0002834298647940159outcome:
passed📌 Call phase
duration:
0.0001659267581999302outcome:
passed📌 Teardown phase
duration:
0.00015957094728946686outcome:
passed
-
-
📄 test_utils_exceptions.py
↳ Function: test_chained_exception_various
-
✅ Test 202
params: func="", expected_output="High-level task failed\ncaused by KeyError: 'missing'"📌 Runtime Parameters
params: func: <function cause_key_error at 0x7f95f0b85ca0> expected_output: High-level task failed caused by KeyError: 'missing' id: cause_key_error-High-level task failed\ncaused by KeyError: 'missing'📌 Setup phase
duration:
0.00025474606081843376outcome:
passed📌 Call phase
duration:
0.00016518868505954742outcome:
passed📌 Teardown phase
duration:
0.0001392480917274952outcome:
passed -
✅ Test 203
params: func="", expected_output="High-level task failed\ncaused by IndexError: list index out of range"📌 Runtime Parameters
params: func: <function cause_index_error at 0x7f95f0b85dc0> expected_output: High-level task failed caused by IndexError: list index out of range id: cause_index_error-High-level task failed\ncaused by IndexError: list index out of range📌 Setup phase
duration:
0.00023815780878067017outcome:
passed📌 Call phase
duration:
0.0001562219113111496outcome:
passed📌 Teardown phase
duration:
0.00015939073637127876outcome:
passed -
✅ Test 204
params: func="", expected_output="High-level task failed\ncaused by ZeroDivisionError: division by zero"📌 Runtime Parameters
params: func: <function cause_zero_division at 0x7f95f0b85e50> expected_output: High-level task failed caused by ZeroDivisionError: division by zero id: cause_zero_division-High-level task failed\ncaused by ZeroDivisionError: division by zero📌 Setup phase
duration:
0.0002176780253648758outcome:
passed📌 Call phase
duration:
0.00014886120334267616outcome:
passed📌 Teardown phase
duration:
0.00014661205932497978outcome:
passed -
✅ Test 205
params: func="", expected_output="High-level task failed\ncaused by ValueError: invalid literal for int() with base 10: 'not_a_number'"📌 Runtime Parameters
params: func: <function cause_value_error at 0x7f95f0b85ee0> expected_output: High-level task failed caused by ValueError: invalid literal for int() with base 10: 'not_a_number' id: cause_value_error-High-level task failed\ncaused by ValueError: invalid literal for int() with base 10: 'not_a_number'📌 Setup phase
duration:
0.00022501591593027115outcome:
passed📌 Call phase
duration:
0.0001614387147128582outcome:
passed📌 Teardown phase
duration:
0.00013982830569148064outcome:
passed -
✅ Test 206
params: func="", expected_output="High-level task failed\ncaused by TypeError: can only concatenate str (not \"int\") to str"📌 Runtime Parameters
params: func: <function cause_type_error at 0x7f95f0b85f70> expected_output: High-level task failed caused by TypeError: can only concatenate str (not "int") to str id: cause_type_error-High-level task failed\ncaused by TypeError: can only concatenate str (not "int") to str📌 Setup phase
duration:
0.00025720614939928055outcome:
passed📌 Call phase
duration:
0.00015706708654761314outcome:
passed📌 Teardown phase
duration:
0.00014152424409985542outcome:
passed
↳ Function: test_printed_exception
-
✅ Test 207
params: func="", expected_output="KeyError: 'missing'"📌 Runtime Parameters
params: func: <function cause_key_error at 0x7f95f0b85ca0> expected_output: KeyError: 'missing' id: cause_key_error-KeyError: 'missing'📌 Setup phase
duration:
0.0008303998038172722outcome:
passed📌 Call phase
duration:
0.0010916627943515778outcome:
passed📌 Teardown phase
duration:
0.0005094441585242748outcome:
passed -
✅ Test 208
params: func="", expected_output="IndexError: list index out of range"📌 Runtime Parameters
params: func: <function cause_index_error at 0x7f95f0b85dc0> expected_output: IndexError: list index out of range id: cause_index_error-IndexError: list index out of range📌 Setup phase
duration:
0.0006066523492336273outcome:
passed📌 Call phase
duration:
0.0010485081002116203outcome:
passed📌 Teardown phase
duration:
0.00046670669689774513outcome:
passed -
✅ Test 209
params: func="", expected_output="ZeroDivisionError: division by zero"📌 Runtime Parameters
params: func: <function cause_zero_division at 0x7f95f0b85e50> expected_output: ZeroDivisionError: division by zero id: cause_zero_division-ZeroDivisionError: division by zero📌 Setup phase
duration:
0.0006322730332612991outcome:
passed📌 Call phase
duration:
0.0009523099288344383outcome:
passed📌 Teardown phase
duration:
0.0004832940176129341outcome:
passed -
✅ Test 210
params: func="", expected_output="ValueError: invalid literal for int() with base 10: 'not_a_number'"📌 Runtime Parameters
params: func: <function cause_value_error at 0x7f95f0b85ee0> expected_output: ValueError: invalid literal for int() with base 10: 'not_a_number' id: cause_value_error-ValueError: invalid literal for int() with base 10: 'not_a_number'📌 Setup phase
duration:
0.000598859041929245outcome:
passed📌 Call phase
duration:
0.0010098540224134922outcome:
passed📌 Teardown phase
duration:
0.0004606880247592926outcome:
passed -
✅ Test 211
params: func="", expected_output="TypeError: can only concatenate str (not \"int\") to str"📌 Runtime Parameters
params: func: <function cause_type_error at 0x7f95f0b85f70> expected_output: TypeError: can only concatenate str (not "int") to str id: cause_type_error-TypeError: can only concatenate str (not "int") to str📌 Setup phase
duration:
0.000573446974158287outcome:
passed📌 Call phase
duration:
0.0009561781771481037outcome:
passed📌 Teardown phase
duration:
0.0008851606398820877outcome:
passed
-
-
📄 test_utils_get_adj.py
↳ Function: test_get_adj_success
-
✅ Test 212
📌 Setup phase
duration:
0.00016543688252568245outcome:
passed📌 Call phase
duration:
0.0010608644224703312outcome:
passed📌 Teardown phase
duration:
0.00012547895312309265outcome:
passed
↳ Function: test_get_adj_not_found
-
✅ Test 213
📌 Setup phase
duration:
0.0006296117790043354outcome:
passed📌 Call phase
duration:
0.0011901059187948704outcome:
passed📌 Teardown phase
duration:
0.0004281620495021343outcome:
passed
↳ Function: test_ensure_adjs_mixed
-
✅ Test 214
📌 Setup phase
duration:
0.0001400178298354149outcome:
passed📌 Call phase
duration:
0.0008479151874780655outcome:
passed📌 Teardown phase
duration:
0.00012443074956536293outcome:
passed
↳ Function: test_get_adjs_filter
-
✅ Test 215
📌 Setup phase
duration:
0.00012147519737482071outcome:
passed📌 Call phase
duration:
0.000879896804690361outcome:
passed📌 Teardown phase
duration:
0.00011876598000526428outcome:
passed
-
-
📄 test_utils_hastyepics.py
↳ Function: test_motor_invalid_name_raises
-
✅ Test 218
📌 Setup phase
duration:
0.0001593511551618576outcome:
passed📌 Call phase
duration:
0.00029392121359705925outcome:
passed📌 Teardown phase
duration:
0.00015528826043009758outcome:
passed
↳ Function: test_motor_init_list_has_no_disabled
-
✅ Test 219
📌 Setup phase
duration:
0.00013409415259957314outcome:
passed📌 Call phase
duration:
0.00016636168584227562outcome:
passed📌 Teardown phase
duration:
0.00010518589988350868outcome:
passed
↳ Function: test_motor_pv_connection_skipped_by_default
-
✅ Test 221
📌 Setup phase
duration:
0.00014924490824341774outcome:
passed📌 Call phase
duration:
0.0004290156066417694outcome:
passed📌 Teardown phase
duration:
0.00011819787323474884outcome:
passed
↳ Function: test_motor_adds_all_extras_pvs
-
✅ Test 222
📌 Setup phase
duration:
0.00011969823390245438outcome:
passed📌 Call phase
duration:
0.0003023361787199974outcome:
passed📌 Teardown phase
duration:
0.0001097777858376503outcome:
passed
↳ Function: test_motor_PV_method_exists_and_works
-
✅ Test 223
📌 Setup phase
duration:
0.00010865321382880211outcome:
passed📌 Call phase
duration:
0.000373810064047575outcome:
passed📌 Teardown phase
duration:
0.00011901417747139931outcome:
passed
-
-
📄 test_utils_ipy.py
↳ Function: test_devices_repr_fallback_and_ignore
-
✅ Test 224
📌 Setup phase
duration:
0.0008491761982440948outcome:
passed📌 Call phase
duration:
0.0009348518215119839outcome:
passed📌 Teardown phase
duration:
0.0002947230823338032outcome:
passed
-
-
📄 test_utils_jsonext.py
↳ Function: test_json_validate_save_load
-
✅ Test 225
params: input_obj="[1 2 3]", expected=[1, 2, 3]📌 Runtime Parameters
params: input_obj: [1 2 3] expected: - 1 - 2 - 3 id: input_obj0-expected0📌 Setup phase
duration:
0.0011843228712677956outcome:
passed📌 Call phase
duration:
0.0007331939414143562outcome:
passed📌 Teardown phase
duration:
0.0002070157788693905outcome:
passed -
✅ Test 226
params: input_obj="42", expected=42📌 Runtime Parameters
params: input_obj: 42 expected: 42 id: input_obj1-42📌 Setup phase
duration:
0.000751239713281393outcome:
passed📌 Call phase
duration:
0.0004662889987230301outcome:
passed📌 Teardown phase
duration:
0.00024958280846476555outcome:
passed -
✅ Test 227
params: input_obj="(1-1j)", expected={"real": 1.0, "imag": -1.0}📌 Runtime Parameters
params: input_obj: (1-1j) expected: real: 1.0 imag: -1.0 id: (1-1j)-expected2📌 Setup phase
duration:
0.0006431611254811287outcome:
passed📌 Call phase
duration:
0.0004919860512018204outcome:
passed📌 Teardown phase
duration:
0.00019978685304522514outcome:
passed -
✅ Test 228
params: input_obj="/tmp/file.txt", expected="/tmp/file.txt"📌 Runtime Parameters
params: input_obj: /tmp/file.txt expected: /tmp/file.txt id: input_obj3-/tmp/file.txt📌 Setup phase
duration:
0.0006414102390408516outcome:
passed📌 Call phase
duration:
0.0004142150282859802outcome:
passed📌 Teardown phase
duration:
0.00023393286392092705outcome:
passed -
✅ Test 229
params: input_obj="{1, 2, 3}", expected=[1, 2, 3]📌 Runtime Parameters
params: input_obj: {1, 2, 3} expected: - 1 - 2 - 3 id: input_obj4-expected4📌 Setup phase
duration:
0.0006848541088402271outcome:
passed📌 Call phase
duration:
0.00039289379492402077outcome:
passed📌 Teardown phase
duration:
0.00021843193098902702outcome:
passed -
✅ Test 230
params: input_obj="{'a': array([10, 20])}", expected={"a": [10, 20]}📌 Runtime Parameters
params: input_obj: {'a': array([10, 20])} expected: a: - 10 - 20 id: input_obj5-expected5📌 Setup phase
duration:
0.0006381929852068424outcome:
passed📌 Call phase
duration:
0.00043730996549129486outcome:
passed📌 Teardown phase
duration:
0.00018727686256170273outcome:
passed -
✅ Test 231
params: input_obj="{'c': (2+3j)}", expected={"c": {"real": 2.0, "imag": 3.0}}📌 Runtime Parameters
params: input_obj: {'c': (2+3j)} expected: c: real: 2.0 imag: 3.0 id: input_obj6-expected6📌 Setup phase
duration:
0.0007633487693965435outcome:
passed📌 Call phase
duration:
0.00046103261411190033outcome:
passed📌 Teardown phase
duration:
0.00018512969836592674outcome:
passed -
✅ Test 232
params: input_obj="{'nested': {'arr': array(10, 20],\n [30, 40), 'complex_num': (-1+5j), 'files': [PosixPath('/file1'), PosixPath('/file2')], 'set_values': {200, 100}, 'inner': {'num': 7}}}", expected={"nested": {"arr": 10, 20], [30, 40, "complex_num": {"real": -1.0, "imag": 5.0}, "files": ["/file1", "/file2"], "set_values": [100, 200], "inner": {"num": 7}}}📌 Runtime Parameters
params: input_obj: {'nested': {'arr': array([[10, 20], [30, 40]]), 'complex_num': (-1+5j), 'files': [PosixPath('/file1'), PosixPath('/file2')], 'set_values': {200, 100}, 'inner': {'num': 7}}} expected: nested: arr: - - 10 - 20 - - 30 - 40 complex_num: real: -1.0 imag: 5.0 files: - /file1 - /file2 set_values: - 100 - 200 inner: num: 7 id: input_obj7-expected7📌 Setup phase
duration:
0.0006393231451511383outcome:
passed📌 Call phase
duration:
0.0006434409879148006outcome:
passed📌 Teardown phase
duration:
0.00019068317487835884outcome:
passed
-
-
📄 test_utils_lazypv.py
↳ Function: test_getattr
-
✅ Test 233
📌 Setup phase
duration:
0.0001436350867152214outcome:
passed📌 Call phase
duration:
0.0004096240736544132outcome:
passed📌 Teardown phase
duration:
0.00011675432324409485outcome:
passed
-
-
📄 test_utils_logcfg.py
↳ Function: test_custom_log_outputs
-
✅ Test 234
params: levelname="LONG", logfunc=" at 0x7f95f0fe7700>", message="This is a LONG message"📌 Runtime Parameters
params: levelname: LONG logfunc: <function <lambda> at 0x7f95f0fe7700> message: This is a LONG message id: LONG-<lambda>-This is a LONG message📌 Setup phase
duration:
0.001731892116367817outcome:
passed📌 Call phase
duration:
0.0008886801078915596outcome:
passed📌 Teardown phase
duration:
0.00027965521439909935outcome:
passed -
✅ Test 235
params: levelname="ENLARGE", logfunc=" at 0x7f95f0fe7790>", message="Please ENLARGE this!"📌 Runtime Parameters
params: levelname: ENLARGE logfunc: <function <lambda> at 0x7f95f0fe7790> message: Please ENLARGE this! id: ENLARGE-<lambda>-Please ENLARGE this!📌 Setup phase
duration:
0.00042726006358861923outcome:
passed📌 Call phase
duration:
0.0004352480173110962outcome:
passed📌 Teardown phase
duration:
0.0002491171471774578outcome:
passed
-
-
📄 test_utils_logign.py
↳ Function: test_ignore_log_msg_behavior
-
✅ Test 237
params: levelname="WARNING", msg_to_ignore="This should be ignored", msg_to_keep="This should appear"📌 Runtime Parameters
params: levelname: WARNING msg_to_ignore: This should be ignored msg_to_keep: This should appear id: WARNING-This should be ignored-This should appear📌 Setup phase
duration:
0.0007012868300080299outcome:
passed📌 Call phase
duration:
0.0009245951659977436outcome:
passed📌 Teardown phase
duration:
0.00025736214593052864outcome:
passed -
✅ Test 238
params: levelname="ENLARGE", msg_to_ignore="ENLARGE this", msg_to_keep="Keep this ENLARGE"📌 Runtime Parameters
params: levelname: ENLARGE msg_to_ignore: ENLARGE this msg_to_keep: Keep this ENLARGE id: ENLARGE-ENLARGE this-Keep this ENLARGE📌 Setup phase
duration:
0.0004073311574757099outcome:
passed📌 Call phase
duration:
0.0005330173298716545outcome:
passed📌 Teardown phase
duration:
0.00023963116109371185outcome:
passed
↳ Function: test_ignore_only_by_level
-
✅ Test 239
📌 Setup phase
duration:
0.00023742299526929855outcome:
passed📌 Call phase
duration:
0.0003825756721198559outcome:
passed📌 Teardown phase
duration:
0.00018092896789312363outcome:
passed
↳ Function: test_ignore_only_by_msg
-
✅ Test 240
📌 Setup phase
duration:
0.00025664130225777626outcome:
passed📌 Call phase
duration:
0.0003795982338488102outcome:
passed📌 Teardown phase
duration:
0.0001664869487285614outcome:
passed
↳ Function: test_filter_removed_after_context
-
✅ Test 241
📌 Setup phase
duration:
0.00024494994431734085outcome:
passed📌 Call phase
duration:
0.00037895701825618744outcome:
passed📌 Teardown phase
duration:
0.00023481529206037521outcome:
passed
-
-
📄 test_utils_metaclasses.py
↳ Function: test_combine_classes_combines_methods
-
✅ Test 242
📌 Setup phase
duration:
0.000119056086987257outcome:
passed📌 Call phase
duration:
0.0002497970126569271outcome:
passed📌 Teardown phase
duration:
0.00010743411257863045outcome:
passed
↳ Function: test_registryabc_combines_registrymeta_and_abcmeta
-
✅ Test 243
📌 Setup phase
duration:
0.00011989381164312363outcome:
passed📌 Call phase
duration:
0.0063792322762310505outcome:
passed📌 Teardown phase
duration:
0.00018293503671884537outcome:
passed
-
-
📄 test_utils_namespace.py
↳ Function: test_namespace_pretty_repr_mixed_and_nested
-
✅ Test 244
📌 Setup phase
duration:
0.00017024297267198563outcome:
passed📌 Call phase
duration:
0.00032123876735568047outcome:
passed📌 Teardown phase
duration:
0.00012914324179291725outcome:
passed
-
-
📄 test_utils_npy.py
↳ Function: test_nice_arange
-
✅ Test 245
params: start=0, stop=5, step=1, expected="[0. 1. 2. 3. 4. 5.]"📌 Runtime Parameters
params: start: 0 stop: 5 step: 1 expected: [0. 1. 2. 3. 4. 5.] id: 0-5-1-expected0📌 Setup phase
duration:
0.00043516000732779503outcome:
passed📌 Call phase
duration:
0.02177954465150833outcome:
passed📌 Teardown phase
duration:
0.0003094780258834362outcome:
passed -
✅ Test 247
params: start=1, stop=2, step=0.3, expected="[1. 1.33333333 1.66666667 2. ]"📌 Runtime Parameters
params: start: 1 stop: 2 step: 0.3 expected: [1. 1.33333333 1.66666667 2. ] id: 1-2-0.3-expected2📌 Setup phase
duration:
0.0004004952497780323outcome:
passed📌 Call phase
duration:
0.0006856112740933895outcome:
passed📌 Teardown phase
duration:
0.00023092469200491905outcome:
passed
↳ Function: test_nice_linspace
-
✅ Test 250
params: start=0, stop=10, num=4, expected="[ 0. 2.5 5. 7.5 10. ]"📌 Runtime Parameters
params: start: 0 stop: 10 num: 4 expected: [ 0. 2.5 5. 7.5 10. ] id: 0-10-4-expected0📌 Setup phase
duration:
0.00041745882481336594outcome:
passed📌 Call phase
duration:
0.0004730718210339546outcome:
passed📌 Teardown phase
duration:
0.0002002711407840252outcome:
passed -
✅ Test 251
params: start=5, stop=15, num=2, expected="[ 5. 10. 15.]"📌 Runtime Parameters
params: start: 5 stop: 15 num: 2 expected: [ 5. 10. 15.] id: 5-15-2-expected1📌 Setup phase
duration:
0.00037472788244485855outcome:
passed📌 Call phase
duration:
0.00036866171285510063outcome:
passed📌 Teardown phase
duration:
0.000186992809176445outcome:
passed -
✅ Test 252
params: start=-5, stop=5, num=4, expected="[-5. -2.5 0. 2.5 5. ]"📌 Runtime Parameters
params: start: -5 stop: 5 num: 4 expected: [-5. -2.5 0. 2.5 5. ] id: -5-5-4-expected2📌 Setup phase
duration:
0.00035696104168891907outcome:
passed📌 Call phase
duration:
0.0003417348489165306outcome:
passed📌 Teardown phase
duration:
0.0001845918595790863outcome:
passed -
✅ Test 253
params: start=0, stop=1, num=3, expected="[0. 0.33333333 0.66666667 1. ]"📌 Runtime Parameters
params: start: 0 stop: 1 num: 3 expected: [0. 0.33333333 0.66666667 1. ] id: 0-1-3-expected3📌 Setup phase
duration:
0.00034572603181004524outcome:
passed📌 Call phase
duration:
0.00035823043435811996outcome:
passed📌 Teardown phase
duration:
0.0001826067455112934outcome:
passed -
✅ Test 254
params: start=2, stop=2, num=3, expected="[2. 2. 2. 2.]"📌 Runtime Parameters
params: start: 2 stop: 2 num: 3 expected: [2. 2. 2. 2.] id: 2-2-3-expected4📌 Setup phase
duration:
0.00033360300585627556outcome:
passed📌 Call phase
duration:
0.00035622715950012207outcome:
passed📌 Teardown phase
duration:
0.0001841699704527855outcome:
passed -
✅ Test 255
params: start=3, stop=0, num=3, expected="[3. 2. 1. 0.]"📌 Runtime Parameters
params: start: 3 stop: 0 num: 3 expected: [3. 2. 1. 0.] id: 3-0-3-expected5📌 Setup phase
duration:
0.00032143713906407356outcome:
passed📌 Call phase
duration:
0.0003329371102154255outcome:
passed📌 Teardown phase
duration:
0.0001977318897843361outcome:
passed -
✅ Test 256
params: start=0, stop=1, num=0, expected="[0.]"📌 Runtime Parameters
params: start: 0 stop: 1 num: 0 expected: [0.] id: 0-1-0-expected6📌 Setup phase
duration:
0.00034522125497460365outcome:
passed📌 Call phase
duration:
0.0003549591638147831outcome:
passed📌 Teardown phase
duration:
0.0002002478577196598outcome:
passed
↳ Function: test_nice_steps_centered
-
✅ Test 257
params: start=-2, stop=2, step=2, endpoint=true, expected="[-2. 0. 2.]"📌 Runtime Parameters
params: start: -2 stop: 2 step: 2 endpoint: True expected: [-2. 0. 2.] id: -2-2-2-True-expected0📌 Setup phase
duration:
0.00039490824565291405outcome:
passed📌 Call phase
duration:
0.0004271692596375942outcome:
passed📌 Teardown phase
duration:
0.0003389306366443634outcome:
passed -
✅ Test 258
params: start=0, stop=5, step=2, endpoint=true, expected="[0. 2. 4.]"📌 Runtime Parameters
params: start: 0 stop: 5 step: 2 endpoint: True expected: [0. 2. 4.] id: 0-5-2-True-expected1📌 Setup phase
duration:
0.0003838939592242241outcome:
passed📌 Call phase
duration:
0.00038081081584095955outcome:
passed📌 Teardown phase
duration:
0.00020810868591070175outcome:
passed -
✅ Test 259
params: start=0, stop=5, step=2, endpoint=false, expected="[0. 2.]"📌 Runtime Parameters
params: start: 0 stop: 5 step: 2 endpoint: False expected: [0. 2.] id: 0-5-2-False-expected2📌 Setup phase
duration:
0.00040384894236922264outcome:
passed📌 Call phase
duration:
0.00038073910400271416outcome:
passed📌 Teardown phase
duration:
0.0002586902119219303outcome:
passed -
✅ Test 260
params: start=-1, stop=2, step=1.5, endpoint=true, expected="[-1.5 0. 1.5]"📌 Runtime Parameters
params: start: -1 stop: 2 step: 1.5 endpoint: True expected: [-1.5 0. 1.5] id: -1-2-1.5-True-expected3📌 Setup phase
duration:
0.00040895678102970123outcome:
passed📌 Call phase
duration:
0.0003434782847762108outcome:
passed📌 Teardown phase
duration:
0.00020012585446238518outcome:
passed
↳ Function: test_nice_steps_left_aligned
-
✅ Test 263
params: start=-1, stop=2, step=1.5, endpoint=true, expected="[-1. 0.5 2. ]"📌 Runtime Parameters
params: start: -1 stop: 2 step: 1.5 endpoint: True expected: [-1. 0.5 2. ] id: -1-2-1.5-True-expected2📌 Setup phase
duration:
0.0004064152017235756outcome:
passed📌 Call phase
duration:
0.0003963629715144634outcome:
passed📌 Teardown phase
duration:
0.00021808594465255737outcome:
passed -
✅ Test 264
params: start=-1, stop=2, step=1.5, endpoint=false, expected="[-1. 0.5]"📌 Runtime Parameters
params: start: -1 stop: 2 step: 1.5 endpoint: False expected: [-1. 0.5] id: -1-2-1.5-False-expected3📌 Setup phase
duration:
0.0004042740911245346outcome:
passed📌 Call phase
duration:
0.00035378197208046913outcome:
passed📌 Teardown phase
duration:
0.000204441137611866outcome:
passed
↳ Function: test_within_scalar
-
✅ Test 275
params: val=5, vmin=0, vmax=10, expected=true📌 Runtime Parameters
params: val: 5 vmin: 0 vmax: 10 expected: True id: 5-0-10-True📌 Setup phase
duration:
0.00041684694588184357outcome:
passed📌 Call phase
duration:
0.00017506908625364304outcome:
passed📌 Teardown phase
duration:
0.00017938809469342232outcome:
passed -
✅ Test 276
params: val=5, vmin=6, vmax=10, expected=false📌 Runtime Parameters
params: val: 5 vmin: 6 vmax: 10 expected: False id: 5-6-10-False📌 Setup phase
duration:
0.0003304537385702133outcome:
passed📌 Call phase
duration:
0.00015239370986819267outcome:
passed📌 Teardown phase
duration:
0.00017549283802509308outcome:
passed -
✅ Test 277
params: val=5, vmin=null, vmax=10, expected=true📌 Runtime Parameters
params: val: 5 vmin: None vmax: 10 expected: True id: 5-None-10-True📌 Setup phase
duration:
0.00031738216057419777outcome:
passed📌 Call phase
duration:
0.00013647088780999184outcome:
passed📌 Teardown phase
duration:
0.0001842067576944828outcome:
passed -
✅ Test 278
params: val=5, vmin=0, vmax=null, expected=true📌 Runtime Parameters
params: val: 5 vmin: 0 vmax: None expected: True id: 5-0-None-True📌 Setup phase
duration:
0.0003069741651415825outcome:
passed📌 Call phase
duration:
0.00014678016304969788outcome:
passed📌 Teardown phase
duration:
0.00016748858615756035outcome:
passed -
✅ Test 279
params: val=5, vmin=null, vmax=null, expected=true📌 Runtime Parameters
params: val: 5 vmin: None vmax: None expected: True id: 5-None-None-True📌 Setup phase
duration:
0.00031448202207684517outcome:
passed📌 Call phase
duration:
0.00014677690342068672outcome:
passed📌 Teardown phase
duration:
0.00016932515427470207outcome:
passed
↳ Function: test_within_fraction
-
✅ Test 280
params: data=[1, 2, 3, 4, 5], vmin=2, vmax=5, expected=0.6📌 Runtime Parameters
params: data: - 1 - 2 - 3 - 4 - 5 vmin: 2 vmax: 5 expected: 0.6 id: data0-2-5-0.6📌 Setup phase
duration:
0.00032972777262330055outcome:
passed📌 Call phase
duration:
0.000372979324311018outcome:
passed📌 Teardown phase
duration:
0.00020722486078739166outcome:
passed -
✅ Test 281
params: data=[10, 20, 30], vmin=5, vmax=25, expected=0.6666666666666666📌 Runtime Parameters
params: data: - 10 - 20 - 30 vmin: 5 vmax: 25 expected: 0.6666666666666666 id: data1-5-25-0.6666666666666666📌 Setup phase
duration:
0.0003644609823822975outcome:
passed📌 Call phase
duration:
0.0002829860895872116outcome:
passed📌 Teardown phase
duration:
0.00018373457714915276outcome:
passed -
✅ Test 282
params: data=[1, 2, 3], vmin=null, vmax=2, expected=0.3333333333333333📌 Runtime Parameters
params: data: - 1 - 2 - 3 vmin: None vmax: 2 expected: 0.3333333333333333 id: data2-None-2-0.3333333333333333📌 Setup phase
duration:
0.0003253328613936901outcome:
passed📌 Call phase
duration:
0.00024860305711627007outcome:
passed📌 Teardown phase
duration:
0.00019203312695026398outcome:
passed -
✅ Test 283
params: data=[], vmin=0, vmax=1, expected=0📌 Runtime Parameters
params: data: [] vmin: 0 vmax: 1 expected: 0 id: data3-0-1-0📌 Setup phase
duration:
0.0003299158997833729outcome:
passed📌 Call phase
duration:
0.0002599349245429039outcome:
passed📌 Teardown phase
duration:
0.0001815599389374256outcome:
passed
↳ Function: test_fraction_to_percentage
-
✅ Test 284
params: fraction=0.456, ndigits=1, expected=45.6📌 Runtime Parameters
params: fraction: 0.456 ndigits: 1 expected: 45.6 id: 0.456-1-45.6📌 Setup phase
duration:
0.00029641203582286835outcome:
passed📌 Call phase
duration:
0.0001475871540606022outcome:
passed📌 Teardown phase
duration:
0.00015725195407867432outcome:
passed -
✅ Test 285
params: fraction=0.12345, ndigits=2, expected=12.35📌 Runtime Parameters
params: fraction: 0.12345 ndigits: 2 expected: 12.35 id: 0.12345-2-12.35📌 Setup phase
duration:
0.0002758791670203209outcome:
passed📌 Call phase
duration:
0.00013903388753533363outcome:
passed📌 Teardown phase
duration:
0.00017708679661154747outcome:
passed -
✅ Test 286
params: fraction=0.9999, ndigits=0, expected=100.0📌 Runtime Parameters
params: fraction: 0.9999 ndigits: 0 expected: 100.0 id: 0.9999-0-100.0📌 Setup phase
duration:
0.0002659279853105545outcome:
passed📌 Call phase
duration:
0.00014243600890040398outcome:
passed📌 Teardown phase
duration:
0.0001580151729285717outcome:
passed
↳ Function: test_get_dtype
-
✅ Test 287
params: val="[1 2 3]", expected=""📌 Runtime Parameters
params: val: [1 2 3] expected: <class 'numpy.ndarray'> id: val0-ndarray📌 Setup phase
duration:
0.00021287985146045685outcome:
passed📌 Call phase
duration:
0.00015355274081230164outcome:
passed📌 Teardown phase
duration:
0.0001644948497414589outcome:
passed -
✅ Test 288
params: val=[1, 2, 3], expected=""📌 Runtime Parameters
params: val: - 1 - 2 - 3 expected: <class 'list'> id: val1-list📌 Setup phase
duration:
0.0002723350189626217outcome:
passed📌 Call phase
duration:
0.00014476804062724113outcome:
passed📌 Teardown phase
duration:
0.00013940688222646713outcome:
passed -
✅ Test 289
params: val=3.14, expected=""📌 Runtime Parameters
params: val: 3.14 expected: <class 'float'> id: 3.14-float📌 Setup phase
duration:
0.0002474552020430565outcome:
passed📌 Call phase
duration:
0.00014096498489379883outcome:
passed📌 Teardown phase
duration:
0.00013796286657452583outcome:
passed
↳ Function: test_get_shape
-
✅ Test 290
params: val="1 2]\n [3 4", expected=[2, 2]📌 Runtime Parameters
params: val: [[1 2] [3 4]] expected: - 2 - 2 id: val0-expected0📌 Setup phase
duration:
0.00021827686578035355outcome:
passed📌 Call phase
duration:
0.00013875402510166168outcome:
passed📌 Teardown phase
duration:
0.0001767999492585659outcome:
passed -
✅ Test 291
params: val=[1, 2, 3], expected=[]📌 Runtime Parameters
params: val: - 1 - 2 - 3 expected: [] id: val1-expected1📌 Setup phase
duration:
0.00024665798991918564outcome:
passed📌 Call phase
duration:
0.00014127092435956outcome:
passed📌 Teardown phase
duration:
0.0001381589099764824outcome:
passed -
✅ Test 292
params: val=42, expected=[]📌 Runtime Parameters
params: val: 42 expected: [] id: 42-expected2📌 Setup phase
duration:
0.00023180712014436722outcome:
passed📌 Call phase
duration:
0.0001508542336523533outcome:
passed📌 Teardown phase
duration:
0.00013870280236005783outcome:
passed
↳ Function: test_is_array
-
✅ Test 293
params: val="[1 2 3]", expected=true📌 Runtime Parameters
params: val: [1 2 3] expected: True id: val0-True📌 Setup phase
duration:
0.00021586986258625984outcome:
passed📌 Call phase
duration:
0.00014382507652044296outcome:
passed📌 Teardown phase
duration:
0.0001554521732032299outcome:
passed -
✅ Test 294
params: val=[1, 2, 3], expected=false📌 Runtime Parameters
params: val: - 1 - 2 - 3 expected: False id: val1-False📌 Setup phase
duration:
0.0002472391352057457outcome:
passed📌 Call phase
duration:
0.00013784505426883698outcome:
passed📌 Teardown phase
duration:
0.00014256173744797707outcome:
passed -
✅ Test 295
params: val=42, expected=false📌 Runtime Parameters
params: val: 42 expected: False id: 42-False📌 Setup phase
duration:
0.0002249223180115223outcome:
passed📌 Call phase
duration:
0.00013432512059807777outcome:
passed📌 Teardown phase
duration:
0.00013889791443943977outcome:
passed
-
-
📄 test_utils_path.py
↳ Function: test_can_create_all_files_user_says_yes
-
✅ Test 296
📌 Setup phase
duration:
0.0001284368336200714outcome:
passed📌 Call phase
duration:
0.0007315082475543022outcome:
passed📌 Teardown phase
duration:
0.00011991802603006363outcome:
passed
↳ Function: test_can_create_all_files_user_says_no
-
✅ Test 297
📌 Setup phase
duration:
0.00011569773778319359outcome:
passed📌 Call phase
duration:
0.00042460113763809204outcome:
passed📌 Teardown phase
duration:
0.00011419039219617844outcome:
passed
↳ Function: test_make_missing_dir_creates_folder
-
✅ Test 298
📌 Setup phase
duration:
0.0001136590726673603outcome:
passed📌 Call phase
duration:
0.0004954277537763119outcome:
passed📌 Teardown phase
duration:
0.00012381095439195633outcome:
passed
↳ Function: test_glob_files_returns_matching_files_only
-
✅ Test 299
📌 Setup phase
duration:
0.00011766515672206879outcome:
passed📌 Call phase
duration:
0.0012463200837373734outcome:
passed📌 Teardown phase
duration:
0.000126006081700325outcome:
passed
↳ Function: test_filter_files_excludes_directories
-
✅ Test 300
📌 Setup phase
duration:
0.00011795526370406151outcome:
passed📌 Call phase
duration:
0.0008691237308084965outcome:
passed📌 Teardown phase
duration:
0.0001279246062040329outcome:
passed
-
-
📄 test_utils_picklio.py
↳ Function: test_pickle_and_unpickle
-
✅ Test 301
params: test_obj={"a": 1, "b": [2, 3], "c": {"world": "ok"}}📌 Runtime Parameters
params: test_obj: a: 1 b: - 2 - 3 c: world: ok id: test_obj0📌 Setup phase
duration:
0.0008136839605867863outcome:
passed📌 Call phase
duration:
0.0006622299551963806outcome:
passed📌 Teardown phase
duration:
0.0002982397563755512outcome:
passed -
✅ Test 302
params: test_obj=[1, 2, 3, 4, 5]📌 Runtime Parameters
params: test_obj: - 1 - 2 - 3 - 4 - 5 id: test_obj1📌 Setup phase
duration:
0.0006210152059793472outcome:
passed📌 Call phase
duration:
0.00030299508944153786outcome:
passed📌 Teardown phase
duration:
0.0001600729301571846outcome:
passed -
✅ Test 303
params: test_obj="simple string"📌 Runtime Parameters
params: test_obj: simple string id: simple string📌 Setup phase
duration:
0.0005511399358510971outcome:
passed📌 Call phase
duration:
0.0003643683157861233outcome:
passed📌 Teardown phase
duration:
0.00016338005661964417outcome:
passed -
✅ Test 304
params: test_obj=42📌 Runtime Parameters
params: test_obj: 42 id: 42📌 Setup phase
duration:
0.0005310517735779285outcome:
passed📌 Call phase
duration:
0.0002819630317389965outcome:
passed📌 Teardown phase
duration:
0.00016601895913481712outcome:
passed -
✅ Test 305
params: test_obj=3.14159📌 Runtime Parameters
params: test_obj: 3.14159 id: 3.14159📌 Setup phase
duration:
0.0005837860517203808outcome:
passed📌 Call phase
duration:
0.0002889661118388176outcome:
passed📌 Teardown phase
duration:
0.00016590813174843788outcome:
passed -
✅ Test 306
params: test_obj=[true, false, null]📌 Runtime Parameters
params: test_obj: - True - (vide) - (vide) id: test_obj5📌 Setup phase
duration:
0.0005391840822994709outcome:
passed📌 Call phase
duration:
0.00029356125742197037outcome:
passed📌 Teardown phase
duration:
0.0001654759980738163outcome:
passed -
✅ Test 307
params: test_obj={"complex": [{"list": [1, 2]}, {"dict": {"x": 10}}]}📌 Runtime Parameters
params: test_obj: complex: - list: - 1 - 2 - dict: x: 10 id: test_obj6📌 Setup phase
duration:
0.0005884198471903801outcome:
passed📌 Call phase
duration:
0.0003177160397171974outcome:
passed📌 Teardown phase
duration:
0.000169374980032444outcome:
passed
-
-
📄 test_utils_printing.py
↳ Function: test_maxlen_valid
-
✅ Test 308
params: seq=["a", "abc", ""], expected=3📌 Runtime Parameters
params: seq: - a - abc - (vide) expected: 3 id: seq0-3📌 Setup phase
duration:
0.0003332807682454586outcome:
passed📌 Call phase
duration:
0.00015994301065802574outcome:
passed📌 Teardown phase
duration:
0.00014516664668917656outcome:
passed -
✅ Test 309
params: seq=[], expected=0📌 Runtime Parameters
params: seq: [] expected: 0 id: seq1-0📌 Setup phase
duration:
0.00023188721388578415outcome:
passed📌 Call phase
duration:
0.00013836007565259933outcome:
passed📌 Teardown phase
duration:
0.00014101527631282806outcome:
passed -
✅ Test 310
params: seq=1, 2], [3], [4, 5, 6, expected=3📌 Runtime Parameters
params: seq: - - 1 - 2 - - 3 - - 4 - 5 - 6 expected: 3 id: seq2-3📌 Setup phase
duration:
0.00022480404004454613outcome:
passed📌 Call phase
duration:
0.0001376718282699585outcome:
passed📌 Teardown phase
duration:
0.0001549161970615387outcome:
passed -
✅ Test 311
params: seq=[{"a": 2, "b": 3}, {}, {"c": 4}], expected=2📌 Runtime Parameters
params: seq: - a: 2 b: 3 - (vide) - c: 4 expected: 2 id: seq3-2📌 Setup phase
duration:
0.0002235989086329937outcome:
passed📌 Call phase
duration:
0.0001423112116754055outcome:
passed📌 Teardown phase
duration:
0.00014208490028977394outcome:
passed
↳ Function: test_strlen
-
✅ Test 312
params: value=42, expected=2📌 Runtime Parameters
params: value: 42 expected: 2 id: 42-2📌 Setup phase
duration:
0.0002159271389245987outcome:
passed📌 Call phase
duration:
0.00013561872765421867outcome:
passed📌 Teardown phase
duration:
0.00014223018661141396outcome:
passed -
✅ Test 313
params: value="hello", expected=5📌 Runtime Parameters
params: value: hello expected: 5 id: hello-5📌 Setup phase
duration:
0.00022571301087737083outcome:
passed📌 Call phase
duration:
0.00015547871589660645outcome:
passed📌 Teardown phase
duration:
0.0001439177431166172outcome:
passed -
✅ Test 314
params: value=false, expected=5📌 Runtime Parameters
params: value: False expected: 5 id: False-5📌 Setup phase
duration:
0.00023024482652544975outcome:
passed📌 Call phase
duration:
0.00020525697618722916outcome:
passed📌 Teardown phase
duration:
0.00024608615785837173outcome:
passed -
✅ Test 315
params: value=null, expected=4📌 Runtime Parameters
params: value: None expected: 4 id: None-4📌 Setup phase
duration:
0.00023152818903326988outcome:
passed📌 Call phase
duration:
0.00015922775492072105outcome:
passed📌 Teardown phase
duration:
0.00016146712005138397outcome:
passed -
✅ Test 316
params: value=[1, 2, 3], expected=9📌 Runtime Parameters
params: value: - 1 - 2 - 3 expected: 9 id: value4-9📌 Setup phase
duration:
0.00021936418488621712outcome:
passed📌 Call phase
duration:
0.00013647973537445068outcome:
passed📌 Teardown phase
duration:
0.00015309080481529236outcome:
passed -
✅ Test 317
params: value={"a": 1}, expected=8📌 Runtime Parameters
params: value: a: 1 expected: 8 id: value5-8📌 Setup phase
duration:
0.0002391766756772995outcome:
passed📌 Call phase
duration:
0.00023778993636369705outcome:
passed📌 Teardown phase
duration:
0.00021404027938842773outcome:
passed -
✅ Test 318
params: value=[1, 2], expected=6📌 Runtime Parameters
params: value: - 1 - 2 expected: 6 id: value6-6📌 Setup phase
duration:
0.000348028726875782outcome:
passed📌 Call phase
duration:
0.00021519092842936516outcome:
passed📌 Teardown phase
duration:
0.0002232440747320652outcome:
passed -
✅ Test 319
params: value="", expected=0📌 Runtime Parameters
params: value: None expected: 0 id: -0📌 Setup phase
duration:
0.00035153189674019814outcome:
passed📌 Call phase
duration:
0.00021337764337658882outcome:
passed📌 Teardown phase
duration:
0.00020931800827383995outcome:
passed -
✅ Test 320
params: value="this is a phrase", expected=16📌 Runtime Parameters
params: value: this is a phrase expected: 16 id: this is a phrase-16📌 Setup phase
duration:
0.0003316071815788746outcome:
passed📌 Call phase
duration:
0.000231271144002676outcome:
passed📌 Teardown phase
duration:
0.0008129668422043324outcome:
passed
↳ Function: test_maxstrlen
-
✅ Test 321
params: seq=[1, true, 3.1415], expected=6📌 Runtime Parameters
params: seq: - 1 - True - 3.1415 expected: 6 id: seq0-6📌 Setup phase
duration:
0.0003814883530139923outcome:
passed📌 Call phase
duration:
0.0002429499290883541outcome:
passed📌 Teardown phase
duration:
0.0002514808438718319outcome:
passed -
✅ Test 322
params: seq=["aa", "bbb", "c"], expected=3📌 Runtime Parameters
params: seq: - aa - bbb - c expected: 3 id: seq1-3📌 Setup phase
duration:
0.0003254828043282032outcome:
passed📌 Call phase
duration:
0.00016174325719475746outcome:
passed📌 Teardown phase
duration:
0.00014719786122441292outcome:
passed -
✅ Test 323
params: seq=1, 2], [], [1, 2, 3, expected=9📌 Runtime Parameters
params: seq: - - 1 - 2 - (vide) - - 1 - 2 - 3 expected: 9 id: seq2-9📌 Setup phase
duration:
0.0002441420219838619outcome:
passed📌 Call phase
duration:
0.00014962581917643547outcome:
passed📌 Teardown phase
duration:
0.0001372150145471096outcome:
passed -
✅ Test 324
params: seq=[{"a": 1}, {}, {"a": 1, "b": 2}], expected=16📌 Runtime Parameters
params: seq: - a: 1 - (vide) - a: 1 b: 2 expected: 16 id: seq3-16📌 Setup phase
duration:
0.00024918001145124435outcome:
passed📌 Call phase
duration:
0.00015999190509319305outcome:
passed📌 Teardown phase
duration:
0.00014055613428354263outcome:
passed -
✅ Test 325
params: seq=[null, false, 12345], expected=5📌 Runtime Parameters
params: seq: - (vide) - (vide) - 12345 expected: 5 id: seq4-5📌 Setup phase
duration:
0.00021683098748326302outcome:
passed📌 Call phase
duration:
0.0001432551071047783outcome:
passed📌 Teardown phase
duration:
0.00014300458133220673outcome:
passed
↳ Function: test_transpose_matrix
-
✅ Test 326
params: data=1, 2], [3, 4, expected=1, 3], [2, 4📌 Runtime Parameters
params: data: - - 1 - 2 - - 3 - 4 expected: - - 1 - 3 - - 2 - 4 id: data0-expected0📌 Setup phase
duration:
0.00023083621636033058outcome:
passed📌 Call phase
duration:
0.00015187496319413185outcome:
passed📌 Teardown phase
duration:
0.00014995737001299858outcome:
passed -
✅ Test 327
params: data="a", "b"], ["c", "d", expected="a", "c"], ["b", "d"📌 Runtime Parameters
params: data: - - a - b - - c - d expected: - - a - c - - b - d id: data1-expected1📌 Setup phase
duration:
0.0002224198542535305outcome:
passed📌 Call phase
duration:
0.0001414208672940731outcome:
passed📌 Teardown phase
duration:
0.00014030328020453453outcome:
passed -
✅ Test 328
params: data={"x": 1}, {"y": 2}], [{"x": 3}, {"y": 4}, expected={"x": 1}, {"x": 3}], [{"y": 2}, {"y": 4}📌 Runtime Parameters
params: data: - - x: 1 - y: 2 - - x: 3 - y: 4 expected: - - x: 1 - x: 3 - - y: 2 - y: 4 id: data2-expected2📌 Setup phase
duration:
0.0002188161015510559outcome:
passed📌 Call phase
duration:
0.00014477688819169998outcome:
passed📌 Teardown phase
duration:
0.0001458250917494297outcome:
passed
↳ Function: test_prepend
-
✅ Test 329
params: initial=[1, 2, 3], prepend=1, expected=[1, 2, 3]📌 Runtime Parameters
params: initial: - 1 - 2 - 3 prepend: 1 expected: - 1 - 2 - 3 id: initial0-1-expected0📌 Setup phase
duration:
0.00026664696633815765outcome:
passed📌 Call phase
duration:
0.00014129094779491425outcome:
passed📌 Teardown phase
duration:
0.00015034014359116554outcome:
passed -
✅ Test 330
params: initial=["a", "b", "c"], prepend="a", expected=["a", "b", "c"]📌 Runtime Parameters
params: initial: - a - b - c prepend: a expected: - a - b - c id: initial1-a-expected1📌 Setup phase
duration:
0.00028902897611260414outcome:
passed📌 Call phase
duration:
0.00014083413407206535outcome:
passed📌 Teardown phase
duration:
0.00015294784680008888outcome:
passed -
✅ Test 331
params: initial=[{"a": 1}, {"b": 2}], prepend={"a": 1}, expected=[{"a": 1}, {"b": 2}]📌 Runtime Parameters
params: initial: - a: 1 - b: 2 prepend: a: 1 expected: - a: 1 - b: 2 id: initial2-prepend2-expected2📌 Setup phase
duration:
0.00027467822656035423outcome:
passed📌 Call phase
duration:
0.00013648997992277145outcome:
passed📌 Teardown phase
duration:
0.00015473691746592522outcome:
passed -
✅ Test 332
params: initial=1], [2], [3, prepend=[1], expected=1], [2], [3📌 Runtime Parameters
params: initial: - - 1 - - 2 - - 3 prepend: - 1 expected: - - 1 - - 2 - - 3 id: initial3-prepend3-expected3📌 Setup phase
duration:
0.00026572495698928833outcome:
passed📌 Call phase
duration:
0.00013405922800302505outcome:
passed📌 Teardown phase
duration:
0.00014824606478214264outcome:
passed
↳ Function: test_fmt_table_line
-
✅ Test 333
params: entries=["a", "bbb"], widths=[3, 5], expected=" a bbb"📌 Runtime Parameters
params: entries: - a - bbb widths: - 3 - 5 expected: a bbb id: entries0-widths0- a bbb📌 Setup phase
duration:
0.0002772519364953041outcome:
passed📌 Call phase
duration:
0.00014908472076058388outcome:
passed📌 Teardown phase
duration:
0.00016518263146281242outcome:
passed -
✅ Test 334
params: entries=[1, 2], widths=[2, 2], expected=" 1 2"📌 Runtime Parameters
params: entries: - 1 - 2 widths: - 2 - 2 expected: 1 2 id: entries1-widths1- 1 2📌 Setup phase
duration:
0.0002676490694284439outcome:
passed📌 Call phase
duration:
0.0001465287059545517outcome:
passed📌 Teardown phase
duration:
0.0001526721753180027outcome:
passed -
✅ Test 335
params: entries=["long", "val"], widths=[6, 4], expected=" long val"📌 Runtime Parameters
params: entries: - long - val widths: - 6 - 4 expected: long val id: entries2-widths2- long val📌 Setup phase
duration:
0.0002529551275074482outcome:
passed📌 Call phase
duration:
0.00015028798952698708outcome:
passed📌 Teardown phase
duration:
0.00015607895329594612outcome:
passed -
✅ Test 336
params: entries=[true, false], widths=[5, 6], expected=" True False"📌 Runtime Parameters
params: entries: - True - (vide) widths: - 5 - 6 expected: True False id: entries3-widths3- True False📌 Setup phase
duration:
0.00028275977820158005outcome:
passed📌 Call phase
duration:
0.00014011235907673836outcome:
passed📌 Teardown phase
duration:
0.00015923380851745605outcome:
passed -
✅ Test 337
params: entries=[123, 4567], widths=[5, 5], expected=" 123 4567"📌 Runtime Parameters
params: entries: - 123 - 4567 widths: - 5 - 5 expected: 123 4567 id: entries4-widths4- 123 4567📌 Setup phase
duration:
0.00027958303689956665outcome:
passed📌 Call phase
duration:
0.00014337198808789253outcome:
passed📌 Teardown phase
duration:
0.0001565101556479931outcome:
passed -
✅ Test 338
params: entries=["text with space", "end"], widths=[16, 5], expected=" text with space end"📌 Runtime Parameters
params: entries: - text with space - end widths: - 16 - 5 expected: text with space end id: entries5-widths5- text with space end📌 Setup phase
duration:
0.0002681533806025982outcome:
passed📌 Call phase
duration:
0.00014798808842897415outcome:
passed📌 Teardown phase
duration:
0.00017132610082626343outcome:
passed -
✅ Test 339
params: entries=[{"a": 1}, {"b": 2}], widths=[10, 10], expected=" {'a': 1} {'b': 2}"📌 Runtime Parameters
params: entries: - a: 1 - b: 2 widths: - 10 - 10 expected: {'a': 1} {'b': 2} id: entries6-widths6- {'a': 1} {'b': 2}📌 Setup phase
duration:
0.00026320992037653923outcome:
passed📌 Call phase
duration:
0.0001446702517569065outcome:
passed📌 Teardown phase
duration:
0.00015640538185834885outcome:
passed -
✅ Test 340
params: entries=1, 2], [3, 4, widths=[10, 10], expected=" [1, 2] [3, 4]"📌 Runtime Parameters
params: entries: - - 1 - 2 - - 3 - 4 widths: - 10 - 10 expected: [1, 2] [3, 4] id: entries7-widths7- [1, 2] [3, 4]📌 Setup phase
duration:
0.0002644350752234459outcome:
passed📌 Call phase
duration:
0.00015123700723052025outcome:
passed📌 Teardown phase
duration:
0.00015097623690962791outcome:
passed
↳ Function: test_fmt_label_sep
-
✅ Test 341
params: widths=[3, 4], line="-", expected="--- ----"📌 Runtime Parameters
params: widths: - 3 - 4 line: - expected: --- ---- id: widths0------ ----📌 Setup phase
duration:
0.00026623206213116646outcome:
passed📌 Call phase
duration:
0.00014519505202770233outcome:
passed📌 Teardown phase
duration:
0.00015273410826921463outcome:
passed -
✅ Test 342
params: widths=[2, 3], line="=", expected="== ==="📌 Runtime Parameters
params: widths: - 2 - 3 line: = expected: == === id: widths1-=-== ===📌 Setup phase
duration:
0.00026565371081233025outcome:
passed📌 Call phase
duration:
0.00014273589476943016outcome:
passed📌 Teardown phase
duration:
0.00015641283243894577outcome:
passed -
✅ Test 343
params: widths=[5, 2], line="*", expected="***** **"📌 Runtime Parameters
params: widths: - 5 - 2 line: * expected: ***** ** id: widths2-*-***** **📌 Setup phase
duration:
0.00028124498203396797outcome:
passed📌 Call phase
duration:
0.00013931607827544212outcome:
passed📌 Teardown phase
duration:
0.00014785537496209145outcome:
passed
↳ Function: test_printable_dict_with_header
-
✅ Test 344
params: d={"medium": true, "very_long_key": 3.14, "x": 1}, header="HeaderTest", expected_lines=["HeaderTest:", "-----------", "medium: True", "very_long_key: 3.14", "x: 1", ""]📌 Runtime Parameters
params: d: medium: True very_long_key: 3.14 x: 1 header: HeaderTest expected_lines: - HeaderTest: - ----------- - medium: True - very_long_key: 3.14 - x: 1 - (vide) id: d0-HeaderTest-expected_lines0📌 Setup phase
duration:
0.00026703858748078346outcome:
passed📌 Call phase
duration:
0.00021920911967754364outcome:
passed📌 Teardown phase
duration:
0.00016689300537109375outcome:
passed
↳ Function: test_printable_dict_of_dicts
-
✅ Test 345
📌 Setup phase
duration:
0.00010939408093690872outcome:
passed📌 Call phase
duration:
0.00022810790687799454outcome:
passed📌 Teardown phase
duration:
0.00010782293975353241outcome:
passed
↳ Function: test_printable_table
-
✅ Test 346
params: data="X1", true, 0.1234, {"meta": "ok"}], ["AnotherSample", false, 98765.4321, {"meta": [1, 2, 3]}], ["Z", null, 0.0, {"meta": {"nested_key": 42}}, labels=["ID", "✓ Success?", "SuperPrecisionValue", "Result Metadata"], expected="A: ID\nB: ✓ Success?\nC: SuperPrecisionValue\nD: Result Metadata\n\n# A B C D\n- ------------- ----- ---------- ----------------------------\n0 X1 True 0.1234 {'meta': 'ok'}\n1 AnotherSample False 98765.4321 {'meta': [1, 2, 3]}\n2 Z None 0.0 {'meta': {'nested_key': 42}}"📌 Runtime Parameters
params: data: - - X1 - True - 0.1234 - meta: ok - - AnotherSample - (vide) - 98765.4321 - meta: - 1 - 2 - 3 - - Z - (vide) - (vide) - meta: nested_key: 42 labels: - ID - ✓ Success? - SuperPrecisionValue - Result Metadata expected: A: ID B: ✓ Success? C: SuperPrecisionValue D: Result Metadata # A B C D - ------------- ----- ---------- ---------------------------- 0 X1 True 0.1234 {'meta': 'ok'} 1 AnotherSample False 98765.4321 {'meta': [1, 2, 3]} 2 Z None 0.0 {'meta': {'nested_key': 42}} id: data0-labels0-A: ID\nB: \u2713 Success?\nC: SuperPrecisionValue\nD: Result Metadata\n\n# A B C D\n- ------------- ----- ---------- ----------------------------\n0 X1 True 0.1234 {'meta': 'ok'}\n1 AnotherSample False 98765.4321 {'meta': [1, 2, 3]}\n2 Z None 0.0 {'meta': {'nested_key': 42}}📌 Setup phase
duration:
0.0003678160719573498outcome:
passed📌 Call phase
duration:
0.0003428100608289242outcome:
passed📌 Teardown phase
duration:
0.000174826942384243outcome:
passed
-
-
📄 test_utils_rangebar.py
↳ Function: test_full_progress_bar
-
✅ Test 355
📌 Setup phase
duration:
0.0003753029741346836outcome:
passed📌 Call phase
duration:
0.00024108076468110085outcome:
passed📌 Teardown phase
duration:
0.00017300480976700783outcome:
passed
↳ Function: test_half_progress_bar
-
✅ Test 356
📌 Setup phase
duration:
0.000277551356703043outcome:
passed📌 Call phase
duration:
0.00022693397477269173outcome:
passed📌 Teardown phase
duration:
0.00016643619164824486outcome:
passed
↳ Function: test_zero_progress_bar
-
✅ Test 357
📌 Setup phase
duration:
0.0002751830033957958outcome:
passed📌 Call phase
duration:
0.00018040696159005165outcome:
passed📌 Teardown phase
duration:
0.00015515321865677834outcome:
passed
↳ Function: test_overflow_bar
-
✅ Test 358
📌 Setup phase
duration:
0.0002619270235300064outcome:
passed📌 Call phase
duration:
0.00018283724784851074outcome:
passed📌 Teardown phase
duration:
0.0001609153114259243outcome:
passed
↳ Function: test_underflow_bar
-
✅ Test 359
📌 Setup phase
duration:
0.0002516089007258415outcome:
passed📌 Call phase
duration:
0.00019221892580389977outcome:
passed📌 Teardown phase
duration:
0.00016511790454387665outcome:
passed
↳ Function: test_repr
-
✅ Test 360
📌 Setup phase
duration:
0.00010610418394207954outcome:
passed📌 Call phase
duration:
0.00014161411672830582outcome:
passed📌 Teardown phase
duration:
0.00011068116873502731outcome:
passed
↳ Function: test_each_value_separately
-
✅ Test 361
params: value=0, expected_bar_part=" "📌 Runtime Parameters
params: value: 0 expected_bar_part: id: 0-📌 Setup phase
duration:
0.000369437038898468outcome:
passed📌 Call phase
duration:
0.00020923931151628494outcome:
passed📌 Teardown phase
duration:
0.00019328389316797256outcome:
passed -
✅ Test 362
params: value=10, expected_bar_part="█ "📌 Runtime Parameters
params: value: 10 expected_bar_part: █ id: 10-\u2588📌 Setup phase
duration:
0.00037739798426628113outcome:
passed📌 Call phase
duration:
0.0001934417523443699outcome:
passed📌 Teardown phase
duration:
0.00018878420814871788outcome:
passed -
✅ Test 363
params: value=25, expected_bar_part="██▌ "📌 Runtime Parameters
params: value: 25 expected_bar_part: ██▌ id: 25-\u2588\u2588\u258c📌 Setup phase
duration:
0.0003486974164843559outcome:
passed📌 Call phase
duration:
0.0001921011134982109outcome:
passed📌 Teardown phase
duration:
0.00020940275862812996outcome:
passed -
✅ Test 364
params: value=27, expected_bar_part="██▊ "📌 Runtime Parameters
params: value: 27 expected_bar_part: ██▊ id: 27-\u2588\u2588\u258a📌 Setup phase
duration:
0.000344996340572834outcome:
passed📌 Call phase
duration:
0.00020344508811831474outcome:
passed📌 Teardown phase
duration:
0.00019179889932274818outcome:
passed -
✅ Test 365
params: value=49, expected_bar_part="████▉ "📌 Runtime Parameters
params: value: 49 expected_bar_part: ████▉ id: 49-\u2588\u2588\u2588\u2588\u2589📌 Setup phase
duration:
0.00041476497426629066outcome:
passed📌 Call phase
duration:
0.00018941238522529602outcome:
passed📌 Teardown phase
duration:
0.0001857290044426918outcome:
passed -
✅ Test 366
params: value=50, expected_bar_part="█████ "📌 Runtime Parameters
params: value: 50 expected_bar_part: █████ id: 50-\u2588\u2588\u2588\u2588\u2588📌 Setup phase
duration:
0.0003595319576561451outcome:
passed📌 Call phase
duration:
0.00020552100613713264outcome:
passed📌 Teardown phase
duration:
0.00019097793847322464outcome:
passed -
✅ Test 367
params: value=51, expected_bar_part="█████▏ "📌 Runtime Parameters
params: value: 51 expected_bar_part: █████▏ id: 51-\u2588\u2588\u2588\u2588\u2588\u258f📌 Setup phase
duration:
0.0003561638295650482outcome:
passed📌 Call phase
duration:
0.00019533000886440277outcome:
passed📌 Teardown phase
duration:
0.00019035814329981804outcome:
passed -
✅ Test 368
params: value=73, expected_bar_part="███████▎ "📌 Runtime Parameters
params: value: 73 expected_bar_part: ███████▎ id: 73-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e📌 Setup phase
duration:
0.000360831618309021outcome:
passed📌 Call phase
duration:
0.00019071996212005615outcome:
passed📌 Teardown phase
duration:
0.000189279206097126outcome:
passed -
✅ Test 369
params: value=75, expected_bar_part="███████▌ "📌 Runtime Parameters
params: value: 75 expected_bar_part: ███████▌ id: 75-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c📌 Setup phase
duration:
0.00035515008494257927outcome:
passed📌 Call phase
duration:
0.00018740911036729813outcome:
passed📌 Teardown phase
duration:
0.0001947297714650631outcome:
passed -
✅ Test 370
params: value=90, expected_bar_part="█████████ "📌 Runtime Parameters
params: value: 90 expected_bar_part: █████████ id: 90-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588📌 Setup phase
duration:
0.0003599398769438267outcome:
passed📌 Call phase
duration:
0.0001911199651658535outcome:
passed📌 Teardown phase
duration:
0.0001869508996605873outcome:
passed -
✅ Test 371
params: value=100, expected_bar_part="██████████"📌 Runtime Parameters
params: value: 100 expected_bar_part: ██████████ id: 100-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588📌 Setup phase
duration:
0.00037570297718048096outcome:
passed📌 Call phase
duration:
0.00018884800374507904outcome:
passed📌 Teardown phase
duration:
0.0002014627680182457outcome:
passed
-
-
📄 test_utils_readable.py
↳ Function: test_readable_seconds
-
✅ Test 372
params: seconds=59.4, expected="59 seconds"📌 Runtime Parameters
params: seconds: 59.4 expected: 59 seconds id: 59.4-59 seconds📌 Setup phase
duration:
0.0002523846924304962outcome:
passed📌 Call phase
duration:
0.00018570991232991219outcome:
passed📌 Teardown phase
duration:
0.00014960067346692085outcome:
passed -
✅ Test 373
params: seconds=59.9, expected="60 seconds"📌 Runtime Parameters
params: seconds: 59.9 expected: 60 seconds id: 59.9-60 seconds📌 Setup phase
duration:
0.0002336404286324978outcome:
passed📌 Call phase
duration:
0.0001485380344092846outcome:
passed📌 Teardown phase
duration:
0.00014276709407567978outcome:
passed -
✅ Test 374
params: seconds=119.9, expected="120 seconds"📌 Runtime Parameters
params: seconds: 119.9 expected: 120 seconds id: 119.9-120 seconds📌 Setup phase
duration:
0.00023900484666228294outcome:
passed📌 Call phase
duration:
0.00014434009790420532outcome:
passed📌 Teardown phase
duration:
0.00014475500211119652outcome:
passed -
✅ Test 375
params: seconds=120.1, expected="2 minutes"📌 Runtime Parameters
params: seconds: 120.1 expected: 2 minutes id: 120.1-2 minutes📌 Setup phase
duration:
0.00025608716532588005outcome:
passed📌 Call phase
duration:
0.00014493567869067192outcome:
passed📌 Teardown phase
duration:
0.00013872375711798668outcome:
passed -
✅ Test 376
params: seconds=3599.9, expected="60 minutes"📌 Runtime Parameters
params: seconds: 3599.9 expected: 60 minutes id: 3599.9-60 minutes📌 Setup phase
duration:
0.00021301675587892532outcome:
passed📌 Call phase
duration:
0.00013826088979840279outcome:
passed📌 Teardown phase
duration:
0.00013704923912882805outcome:
passed -
✅ Test 377
params: seconds=3600.1, expected="60 minutes"📌 Runtime Parameters
params: seconds: 3600.1 expected: 60 minutes id: 3600.1-60 minutes📌 Setup phase
duration:
0.00022415025159716606outcome:
passed📌 Call phase
duration:
0.00015333900228142738outcome:
passed📌 Teardown phase
duration:
0.00015518488362431526outcome:
passed -
✅ Test 378
params: seconds=7199.9, expected="120 minutes"📌 Runtime Parameters
params: seconds: 7199.9 expected: 120 minutes id: 7199.9-120 minutes📌 Setup phase
duration:
0.00022407062351703644outcome:
passed📌 Call phase
duration:
0.0001397179439663887outcome:
passed📌 Teardown phase
duration:
0.0001569073647260666outcome:
passed -
✅ Test 379
params: seconds=7200.1, expected="2 hours"📌 Runtime Parameters
params: seconds: 7200.1 expected: 2 hours id: 7200.1-2 hours📌 Setup phase
duration:
0.00024323724210262299outcome:
passed📌 Call phase
duration:
0.00014450540766119957outcome:
passed📌 Teardown phase
duration:
0.00014099711552262306outcome:
passed -
✅ Test 380
params: seconds=90.4, expected="90 seconds"📌 Runtime Parameters
params: seconds: 90.4 expected: 90 seconds id: 90.4-90 seconds📌 Setup phase
duration:
0.00024452200159430504outcome:
passed📌 Call phase
duration:
0.00014338502660393715outcome:
passed📌 Teardown phase
duration:
0.00013922620564699173outcome:
passed -
✅ Test 381
params: seconds=90.6, expected="91 seconds"📌 Runtime Parameters
params: seconds: 90.6 expected: 91 seconds id: 90.6-91 seconds📌 Setup phase
duration:
0.0002243448980152607outcome:
passed📌 Call phase
duration:
0.00014366907998919487outcome:
passed📌 Teardown phase
duration:
0.00013997498899698257outcome:
passed -
✅ Test 382
params: seconds=121.9, expected="2 minutes"📌 Runtime Parameters
params: seconds: 121.9 expected: 2 minutes id: 121.9-2 minutes📌 Setup phase
duration:
0.00021798629313707352outcome:
passed📌 Call phase
duration:
0.0002902359701693058outcome:
passed📌 Teardown phase
duration:
0.00014926306903362274outcome:
passed -
✅ Test 383
params: seconds=1296000.0, expected="2 weeks"📌 Runtime Parameters
params: seconds: 1296000.0 expected: 2 weeks id: 1296000.0-2 weeks📌 Setup phase
duration:
0.0002238461747765541outcome:
passed📌 Call phase
duration:
0.0001580263487994671outcome:
passed📌 Teardown phase
duration:
0.00014700787141919136outcome:
passed -
✅ Test 384
params: seconds=2592000.0, expected="4 weeks"📌 Runtime Parameters
params: seconds: 2592000.0 expected: 4 weeks id: 2592000.0-4 weeks📌 Setup phase
duration:
0.00022388994693756104outcome:
passed📌 Call phase
duration:
0.0001567569561302662outcome:
passed📌 Teardown phase
duration:
0.00014523416757583618outcome:
passed -
✅ Test 385
params: seconds=2800000.0, expected="5 weeks"📌 Runtime Parameters
params: seconds: 2800000.0 expected: 5 weeks id: 2800000.0-5 weeks📌 Setup phase
duration:
0.00022827088832855225outcome:
passed📌 Call phase
duration:
0.00015954114496707916outcome:
passed📌 Teardown phase
duration:
0.00013857800513505936outcome:
passed -
✅ Test 386
params: seconds=3888000.0, expected="6 weeks"📌 Runtime Parameters
params: seconds: 3888000.0 expected: 6 weeks id: 3888000.0-6 weeks📌 Setup phase
duration:
0.00023047113791108131outcome:
passed📌 Call phase
duration:
0.00013824878260493279outcome:
passed📌 Teardown phase
duration:
0.00014047091826796532outcome:
passed -
✅ Test 387
params: seconds=5097600.0, expected="8 weeks"📌 Runtime Parameters
params: seconds: 5097600.0 expected: 8 weeks id: 5097600.0-8 weeks📌 Setup phase
duration:
0.00022323103621602058outcome:
passed📌 Call phase
duration:
0.0001391158439218998outcome:
passed📌 Teardown phase
duration:
0.00013538775965571404outcome:
passed -
✅ Test 388
params: seconds=5184000.0, expected="9 weeks"📌 Runtime Parameters
params: seconds: 5184000.0 expected: 9 weeks id: 5184000.0-9 weeks📌 Setup phase
duration:
0.00022607622668147087outcome:
passed📌 Call phase
duration:
0.00013953819870948792outcome:
passed📌 Teardown phase
duration:
0.00013656402006745338outcome:
passed -
✅ Test 389
params: seconds=5270400.0, expected="2 months"📌 Runtime Parameters
params: seconds: 5270400.0 expected: 2 months id: 5270400.0-2 months📌 Setup phase
duration:
0.00021231407299637794outcome:
passed📌 Call phase
duration:
0.0001371246762573719outcome:
passed📌 Teardown phase
duration:
0.00015075365081429482outcome:
passed -
✅ Test 390
params: seconds=23328000.0, expected="9 months"📌 Runtime Parameters
params: seconds: 23328000.0 expected: 9 months id: 23328000.0-9 months📌 Setup phase
duration:
0.00022278400138020515outcome:
passed📌 Call phase
duration:
0.0001389891840517521outcome:
passed📌 Teardown phase
duration:
0.00017216289415955544outcome:
passed -
✅ Test 391
params: seconds=31104000.0, expected="12 months"📌 Runtime Parameters
params: seconds: 31104000.0 expected: 12 months id: 31104000.0-12 months📌 Setup phase
duration:
0.0002397177740931511outcome:
passed📌 Call phase
duration:
0.00016360590234398842outcome:
passed📌 Teardown phase
duration:
0.0001417640596628189outcome:
passed -
✅ Test 392
params: seconds=33696000.0, expected="13 months"📌 Runtime Parameters
params: seconds: 33696000.0 expected: 13 months id: 33696000.0-13 months📌 Setup phase
duration:
0.0002178470604121685outcome:
passed📌 Call phase
duration:
0.00013933097943663597outcome:
passed📌 Teardown phase
duration:
0.00013942504301667213outcome:
passed -
✅ Test 393
params: seconds=59616000.0, expected="23 months"📌 Runtime Parameters
params: seconds: 59616000.0 expected: 23 months id: 59616000.0-23 months📌 Setup phase
duration:
0.00021604401990771294outcome:
passed📌 Call phase
duration:
0.00014168210327625275outcome:
passed📌 Teardown phase
duration:
0.00013282103464007378outcome:
passed -
✅ Test 394
params: seconds=62208000.0, expected="24 months"📌 Runtime Parameters
params: seconds: 62208000.0 expected: 24 months id: 62208000.0-24 months📌 Setup phase
duration:
0.0002276371233165264outcome:
passed📌 Call phase
duration:
0.00014270376414060593outcome:
passed📌 Teardown phase
duration:
0.0001360541209578514outcome:
passed -
✅ Test 395
params: seconds=64208000.0, expected="2 years"📌 Runtime Parameters
params: seconds: 64208000.0 expected: 2 years id: 64208000.0-2 years📌 Setup phase
duration:
0.00021680304780602455outcome:
passed📌 Call phase
duration:
0.00013707997277379036outcome:
passed📌 Teardown phase
duration:
0.00013576867058873177outcome:
passed
-
-
📄 test_utils_registry.py
↳ Function: test_metaclass_creates_weakset
-
✅ Test 396
📌 Setup phase
duration:
0.0001276363618671894outcome:
passed📌 Call phase
duration:
0.0007201679982244968outcome:
passed📌 Teardown phase
duration:
0.00011177035048604012outcome:
passed
↳ Function: test_metaclass_tracks_instances
-
✅ Test 397
📌 Setup phase
duration:
0.00011244695633649826outcome:
passed📌 Call phase
duration:
0.00026085181161761284outcome:
passed📌 Teardown phase
duration:
0.00010491395369172096outcome:
passed
↳ Function: test_registry_inheritance
-
✅ Test 398
📌 Setup phase
duration:
0.0001838100142776966outcome:
passed📌 Call phase
duration:
0.0005594082176685333outcome:
passed📌 Teardown phase
duration:
0.0001410120166838169outcome:
passed
↳ Function: test_instance_tracking
-
✅ Test 399
📌 Setup phase
duration:
0.00017997296527028084outcome:
passed📌 Call phase
duration:
0.00020840764045715332outcome:
passed📌 Teardown phase
duration:
0.00013465899974107742outcome:
passed
↳ Function: test_collect_instances_recursive
-
✅ Test 400
📌 Setup phase
duration:
0.00016818195581436157outcome:
passed📌 Call phase
duration:
0.0011158459819853306outcome:
passed📌 Teardown phase
duration:
0.00015804683789610863outcome:
passed
↳ Function: test_instances_function
-
✅ Test 401
📌 Setup phase
duration:
0.00018492480739951134outcome:
passed📌 Call phase
duration:
0.0008393418975174427outcome:
passed📌 Teardown phase
duration:
0.0001440681517124176outcome:
passed
↳ Function: test_non_registry_class_error
-
✅ Test 402
📌 Setup phase
duration:
0.00011712033301591873outcome:
passed📌 Call phase
duration:
0.00021485192701220512outcome:
passed📌 Teardown phase
duration:
0.00012620072811841965outcome:
passed
↳ Function: test_signature_preservation
-
✅ Test 403
📌 Setup phase
duration:
0.00011185090988874435outcome:
passed📌 Call phase
duration:
0.0002485038712620735outcome:
passed📌 Teardown phase
duration:
0.00011851266026496887outcome:
passed
-
-
📄 test_utils_richcfg.py
↳ Function: test_rich_inspector_outputs_more_than_builtin
-
✅ Test 404
📌 Setup phase
duration:
0.00020273402333259583outcome:
passed📌 Call phase
duration:
0.09648847207427025outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.312415514 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.3176098 msecs: 317.6097869873047 relativeCreated: 11143.181085586548 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503📌 Teardown phase
duration:
0.0002895258367061615outcome:
passed
-
-
📄 test_utils_run_later.py
↳ Function: test_init_and_repr
-
✅ Test 405
📌 Setup phase
duration:
0.0001592012122273445outcome:
passed📌 Call phase
duration:
0.000269290991127491outcome:
passed📌 Teardown phase
duration:
0.00011142482981085777outcome:
passed
↳ Function: test_call
-
✅ Test 406
📌 Setup phase
duration:
0.00011881208047270775outcome:
passed📌 Call phase
duration:
0.0001828470267355442outcome:
passed📌 Teardown phase
duration:
0.0001052170991897583outcome:
passed
↳ Function: test_matmul_with_string
-
✅ Test 407
📌 Setup phase
duration:
0.00011247582733631134outcome:
passed📌 Call phase
duration:
0.00017903605476021767outcome:
passed📌 Teardown phase
duration:
9.879982098937035e-05outcome:
passed
↳ Function: test_matmul_with_list
-
✅ Test 408
📌 Setup phase
duration:
0.00010517332702875137outcome:
passed📌 Call phase
duration:
0.0001682261936366558outcome:
passed📌 Teardown phase
duration:
0.00011369120329618454outcome:
passed
↳ Function: test_matmul_with_single_int
-
✅ Test 409
📌 Setup phase
duration:
0.00011061737313866615outcome:
passed📌 Call phase
duration:
0.00017150165513157845outcome:
passed📌 Teardown phase
duration:
9.883195161819458e-05outcome:
passed
↳ Function: test_run_at_future_triggered_and_logs
-
✅ Test 410
📌 Setup phase
duration:
0.00038369419053196907outcome:
passed📌 Call phase
duration:
0.20788117498159409outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.423347142 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1735732800.0811129 msecs: 81.11286163330078 relativeCreated: -18826860093.31584 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.524055156 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1735732800.1818113 msecs: 181.81133270263672 relativeCreated: -18826859992.61737 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503📌 Teardown phase
duration:
0.00034370459616184235outcome:
passed
↳ Function: test_run_at_already_past
-
✅ Test 411
📌 Setup phase
duration:
0.0003437204286456108outcome:
passed📌 Call phase
duration:
0.00039807427674531937outcome:
passed📌 Teardown phase
duration:
0.00018555298447608948outcome:
passed
↳ Function: test_run_in_future_triggered_and_logs
-
✅ Test 412
📌 Setup phase
duration:
0.0002589719370007515outcome:
passed📌 Call phase
duration:
0.20213478384539485outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.624772148 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1735732800.071632 msecs: 71.63190841674805 relativeCreated: -18826860102.79679 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.725605909 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1735732800.1725192 msecs: 172.51920700073242 relativeCreated: -18826860001.909492 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503📌 Teardown phase
duration:
0.0003697001375257969outcome:
passed
↳ Function: test_run_in_past
-
✅ Test 413
📌 Setup phase
duration:
0.00036799581721425056outcome:
passed📌 Call phase
duration:
0.00038665393367409706outcome:
passed📌 Teardown phase
duration:
0.00019962480291724205outcome:
passed
↳ Function: test_run_later_with_seconds
-
✅ Test 414
📌 Setup phase
duration:
0.0002668187953531742outcome:
passed📌 Call phase
duration:
0.2022287859581411outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.826516074 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1735740000.0675292 msecs: 67.52920150756836 relativeCreated: -18819660106.899498 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.927247427 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1735740000.1682594 msecs: 168.2593822479248 relativeCreated: -18819660006.16932 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503📌 Teardown phase
duration:
0.000348423607647419outcome:
passed
↳ Function: test_run_later_with_past_datetime
-
✅ Test 415
📌 Setup phase
duration:
0.00037829717621207237outcome:
passed📌 Call phase
duration:
0.00039259670302271843outcome:
passed📌 Teardown phase
duration:
0.0002332320436835289outcome:
passed
↳ Function: test_run_at_tqdm_multiple_updates
-
✅ Test 416
📌 Setup phase
duration:
0.0003687138669192791outcome:
passed📌 Call phase
duration:
0.2022198000922799outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407672.27957890 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559672.028102 msecs: 28.10192108154297 relativeCreated: 11853.673219680786 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407672.128813768 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559672.129066 msecs: 129.06599044799805 relativeCreated: 11954.637289047241 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503📌 Teardown phase
duration:
0.0003664572723209858outcome:
passed
↳ Function: test_today_basic
-
✅ Test 417
📌 Setup phase
duration:
0.0001582610420882702outcome:
passed📌 Call phase
duration:
0.0008213706314563751outcome:
passed📌 Teardown phase
duration:
0.00014630518853664398outcome:
passed
↳ Function: test_tomorrow_basic
-
✅ Test 418
📌 Setup phase
duration:
0.00014255894348025322outcome:
passed📌 Call phase
duration:
0.00041462574154138565outcome:
passed📌 Teardown phase
duration:
0.00012564519420266151outcome:
passed
↳ Function: test_yesterday_basic
-
✅ Test 419
📌 Setup phase
duration:
0.0001255301758646965outcome:
passed📌 Call phase
duration:
0.0003687678836286068outcome:
passed📌 Teardown phase
duration:
0.0001133098267018795outcome:
passed
↳ Function: test_today_matmul_string
-
✅ Test 420
📌 Setup phase
duration:
0.00011420343071222305outcome:
passed📌 Call phase
duration:
0.0006291079334914684outcome:
passed📌 Teardown phase
duration:
0.00012396881356835365outcome:
passed
↳ Function: test_tomorrow_matmul_list
-
✅ Test 421
📌 Setup phase
duration:
0.00012018391862511635outcome:
passed📌 Call phase
duration:
0.0003632567822933197outcome:
passed📌 Teardown phase
duration:
0.00011407490819692612outcome:
passed
↳ Function: test_yesterday_matmul_single
-
✅ Test 422
📌 Setup phase
duration:
0.00011241715401411057outcome:
passed📌 Call phase
duration:
0.00034489575773477554outcome:
passed📌 Teardown phase
duration:
0.00011551892384886742outcome:
passed
-
-
📄 test_utils_sendmail.py
↳ Function: test_sendmail_real_local_verbose
-
✅ Test 423
📌 Setup phase
duration:
0.0001202891580760479outcome:
passed📌 Call phase
duration:
1.9976918241009116outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407672.229712606 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559672.2299771 msecs: 229.97713088989258 relativeCreated: 12055.548429489136 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407672.330582431 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559672.3307323 msecs: 330.7323455810547 relativeCreated: 12156.303644180298 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407672.431226068 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559672.431364 msecs: 431.3640594482422 relativeCreated: 12256.935358047485 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407672.531877772 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559672.5320246 msecs: 532.024621963501 relativeCreated: 12357.595920562744 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407672.632636142 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559672.6329026 msecs: 632.9026222229004 relativeCreated: 12458.473920822144 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407672.733851375 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559672.7344172 msecs: 734.417200088501 relativeCreated: 12559.988498687744 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407672.835295126 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559672.835447 msecs: 835.4470729827881 relativeCreated: 12661.018371582031 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407672.935980684 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559672.936126 msecs: 936.1259937286377 relativeCreated: 12761.69729232788 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407673.36663983 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559673.036822 msecs: 36.82208061218262 relativeCreated: 12862.393379211426 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407673.137353567 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559673.1374989 msecs: 137.4988555908203 relativeCreated: 12963.070154190063 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407673.238094959 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559673.2382534 msecs: 238.25335502624512 relativeCreated: 13063.824653625488 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407673.338820839 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559673.3389633 msecs: 338.96327018737793 relativeCreated: 13164.534568786621 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407673.439578872 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559673.4397476 msecs: 439.74757194519043 relativeCreated: 13265.318870544434 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407673.540296177 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559673.5404403 msecs: 540.4403209686279 relativeCreated: 13366.011619567871 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407673.640979718 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559673.641121 msecs: 641.1209106445312 relativeCreated: 13466.692209243774 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407673.741723303 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559673.7419229 msecs: 741.9228553771973 relativeCreated: 13567.49415397644 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407673.842504276 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559673.8426554 msecs: 842.6554203033447 relativeCreated: 13668.226718902588 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407673.943269982 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559673.9434144 msecs: 943.4144496917725 relativeCreated: 13768.985748291016 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407674.43996507 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559674.044148 msecs: 44.14796829223633 relativeCreated: 13869.71926689148 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407674.144730486 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559674.1448684 msecs: 144.8683738708496 relativeCreated: 13970.439672470093 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503📌 Teardown phase
duration:
0.0003157518804073334outcome:
passed
-
-
📄 test_utils_shortcut.py
↳ Function: TestShortcutInitialization
-
✅ Test 424
📌 Setup phase
duration:
0.000402216799557209outcome:
passed📌 Call phase
duration:
0.0002498640678822994outcome:
passed📌 Teardown phase
duration:
0.00016571208834648132outcome:
passed -
✅ Test 425
📌 Setup phase
duration:
0.00020857388153672218outcome:
passed📌 Call phase
duration:
0.00016600033268332481outcome:
passed📌 Teardown phase
duration:
0.00013218168169260025outcome:
passed
↳ Function: test_run_method
-
✅ Test 426
📌 Setup phase
duration:
0.0004221498966217041outcome:
passed📌 Call phase
duration:
0.0007471288554370403outcome:
passed📌 Teardown phase
duration:
0.00022663502022624016outcome:
passed
↳ Function: test_repr_output
-
✅ Test 427
📌 Setup phase
duration:
0.00019061286002397537outcome:
passed📌 Call phase
duration:
0.00016517704352736473outcome:
passed📌 Teardown phase
duration:
0.0001421058550477028outcome:
passed
↳ Function: test_source_with_regular_function
-
✅ Test 428
📌 Setup phase
duration:
0.0001936890184879303outcome:
passed📌 Call phase
duration:
0.001336194109171629outcome:
passed📌 Teardown phase
duration:
0.00015574926510453224outcome:
passed
↳ Function: test_source_error_handling
-
✅ Test 429
📌 Setup phase
duration:
0.0001967577263712883outcome:
passed📌 Call phase
duration:
0.0009351870976388454outcome:
passed📌 Teardown phase
duration:
0.00016659405082464218outcome:
passed
↳ Function: test_as_shortcut_basic
-
✅ Test 430
📌 Setup phase
duration:
0.00020248210057616234outcome:
passed📌 Call phase
duration:
0.0001664259470999241outcome:
passed📌 Teardown phase
duration:
0.00013331696391105652outcome:
passed
↳ Function: test_as_shortcut_with_name
-
✅ Test 431
📌 Setup phase
duration:
0.00017351005226373672outcome:
passed📌 Call phase
duration:
0.00014809006825089455outcome:
passed📌 Teardown phase
duration:
0.00013436796143651009outcome:
passed
↳ Function: test_as_shortcut_factory_pattern
-
✅ Test 432
📌 Setup phase
duration:
0.00017616990953683853outcome:
passed📌 Call phase
duration:
0.00017008092254400253outcome:
passed📌 Teardown phase
duration:
0.0001333220861852169outcome:
passed
↳ Function: TestShortcutsSingleton
-
✅ Test 433
📌 Setup phase
duration:
0.00027668895199894905outcome:
passed📌 Call phase
duration:
0.00013728206977248192outcome:
passed📌 Teardown phase
duration:
0.0003018318675458431outcome:
passed -
✅ Test 434
📌 Setup phase
duration:
0.00025722896680235863outcome:
passed📌 Call phase
duration:
0.0002591093070805073outcome:
passed📌 Teardown phase
duration:
0.00015666894614696503outcome:
passed -
✅ Test 435
📌 Setup phase
duration:
0.000247100368142128outcome:
passed📌 Call phase
duration:
0.00017478782683610916outcome:
passed📌 Teardown phase
duration:
0.00014150282368063927outcome:
passed -
✅ Test 436
📌 Setup phase
duration:
0.00027103908360004425outcome:
passed📌 Call phase
duration:
0.00020206207409501076outcome:
passed📌 Teardown phase
duration:
0.00014654407277703285outcome:
passed -
✅ Test 437
📌 Setup phase
duration:
0.00023558177053928375outcome:
passed📌 Call phase
duration:
0.0002396400086581707outcome:
passed📌 Teardown phase
duration:
0.00015535298734903336outcome:
passed
↳ Function: TestFullIntegration
-
✅ Test 438
📌 Setup phase
duration:
0.00041053397580981255outcome:
passed📌 Call phase
duration:
0.0006967717781662941outcome:
passed📌 Teardown phase
duration:
0.000224405899643898outcome:
passed -
✅ Test 439
📌 Setup phase
duration:
0.00024624308571219444outcome:
passed📌 Call phase
duration:
0.0002200007438659668outcome:
passed📌 Teardown phase
duration:
0.00015121418982744217outcome:
passed
↳ Function: test_registry_inheritance
-
✅ Test 440
📌 Setup phase
duration:
0.00017951708287000656outcome:
passed📌 Call phase
duration:
0.000135818962007761outcome:
passed📌 Teardown phase
duration:
0.00012734532356262207outcome:
passed
-
-
📄 test_utils_snapshot.py
↳ Function: test_snapshot
-
✅ Test 441
params: test_input="v1", "Visible", false], ["h1", "Hidden", true, expected=["Visible"], kwargs={}📌 Runtime Parameters
params: test_input: - - v1 - Visible - (vide) - - h1 - Hidden - True expected: - Visible kwargs: {} id: exclude_internals📌 Setup phase
duration:
0.00030774110928177834outcome:
passed📌 Call phase
duration:
0.0006925328634679317outcome:
passed📌 Teardown phase
duration:
0.00019835680723190308outcome:
passed -
✅ Test 442
params: test_input="v1", "Visible", false], ["h1", "Hidden", true, expected=["Visible", "Hidden"], kwargs={"include_internal": true}📌 Runtime Parameters
params: test_input: - - v1 - Visible - (vide) - - h1 - Hidden - True expected: - Visible - Hidden kwargs: include_internal: True id: include_internals📌 Setup phase
duration:
0.00028418703004717827outcome:
passed📌 Call phase
duration:
0.0004951320588588715outcome:
passed📌 Teardown phase
duration:
0.00017407676205039024outcome:
passed -
✅ Test 443
params: test_input=[], expected=[], kwargs={}📌 Runtime Parameters
params: test_input: [] expected: [] kwargs: {} id: empty_case📌 Setup phase
duration:
0.0002833409234881401outcome:
passed📌 Call phase
duration:
0.00014981022104620934outcome:
passed📌 Teardown phase
duration:
0.00017410796135663986outcome:
passed -
✅ Test 444
params: test_input="3", "Charlie"], ["1", "Alpha"], ["2", "Beta", expected=["Alpha", "Beta", "Charlie"], kwargs="{'sort_key': }"📌 Runtime Parameters
params: test_input: - - 3 - Charlie - - 1 - Alpha - - 2 - Beta expected: - Alpha - Beta - Charlie kwargs: {'sort_key': <class 'str'>} id: sort_str📌 Setup phase
duration:
0.00027296924963593483outcome:
passed📌 Call phase
duration:
0.0006086518988013268outcome:
passed📌 Teardown phase
duration:
0.00020343484356999397outcome:
passed -
✅ Test 445
params: test_input="z3", "C"], ["a1", "A"], ["m2", "B", expected=["A", "B", "C"], kwargs="{'sort_key': at 0x7f95f0d5b280>}"📌 Runtime Parameters
params: test_input: - - z3 - C - - a1 - A - - m2 - B expected: - A - B - C kwargs: {'sort_key': <function <lambda> at 0x7f95f0d5b280>} id: sort_id📌 Setup phase
duration:
0.000287896953523159outcome:
passed📌 Call phase
duration:
0.0006351396441459656outcome:
passed📌 Teardown phase
duration:
0.00018518278375267982outcome:
passed -
✅ Test 446
params: test_input="3", "Charlie"], ["1", "alpha"], ["2", "Beta", expected=["alpha", "Beta", "Charlie"], kwargs="{'sort_key': at 0x7f95f0d5b310>}"📌 Runtime Parameters
params: test_input: - - 3 - Charlie - - 1 - alpha - - 2 - Beta expected: - alpha - Beta - Charlie kwargs: {'sort_key': <function <lambda> at 0x7f95f0d5b310>} id: sort_case_insensitive📌 Setup phase
duration:
0.00031562289223074913outcome:
passed📌 Call phase
duration:
0.0005607646889984608outcome:
passed📌 Teardown phase
duration:
0.00016789324581623077outcome:
passed -
✅ Test 447
params: test_input="1", "A"], ["2", "BB"], ["3", "CCC", expected=["A", "BB", "CCC"], kwargs="{'sort_key': at 0x7f95f0d5b3a0>}"📌 Runtime Parameters
params: test_input: - - 1 - A - - 2 - BB - - 3 - CCC expected: - A - BB - CCC kwargs: {'sort_key': <function <lambda> at 0x7f95f0d5b3a0>} id: sort_length📌 Setup phase
duration:
0.00027852505445480347outcome:
passed📌 Call phase
duration:
0.0008444688282907009outcome:
passed📌 Teardown phase
duration:
0.000189339742064476outcome:
passed -
✅ Test 448
params: test_input="1", "A"], ["2", "B"], ["3", "C", expected=["C", "B", "A"], kwargs="{'sort_key': at 0x7f95f0d5b430>}"📌 Runtime Parameters
params: test_input: - - 1 - A - - 2 - B - - 3 - C expected: - C - B - A kwargs: {'sort_key': <function <lambda> at 0x7f95f0d5b430>} id: sort_reverse📌 Setup phase
duration:
0.0002934499643743038outcome:
passed📌 Call phase
duration:
0.0005863681435585022outcome:
passed📌 Teardown phase
duration:
0.00018501002341508865outcome:
passed
-
-
📄 test_utils_termtitle.py
↳ Function: test_terminal_title_with_tmux
-
✅ Test 449
📌 Setup phase
duration:
0.00014130398631095886outcome:
passed📌 Call phase
duration:
0.021126029081642628outcome:
passed📌 Teardown phase
duration:
0.0005175410769879818outcome:
passed
-
-
📄 test_utils_tqdm_mod.py
↳ Function: test_complete_progress_bar
-
✅ Test 450
📌 Setup phase
duration:
0.00023623183369636536outcome:
passed📌 Call phase
duration:
0.00458060298115015outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407674.245389884 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559674.2455528 msecs: 245.55277824401855 relativeCreated: 14071.124076843262 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503📌 Teardown phase
duration:
0.0001768171787261963outcome:
passed
↳ Function: test_set_progress_multiple_points
-
✅ Test 451
📌 Setup phase
duration:
0.0001456262543797493outcome:
passed📌 Call phase
duration:
0.0019023320637643337outcome:
passed📌 Teardown phase
duration:
0.00017521996051073074outcome:
passed
↳ Function: test_format_sizeof_alignment
-
✅ Test 452
📌 Setup phase
duration:
0.00014460179954767227outcome:
passed📌 Call phase
duration:
0.00018421001732349396outcome:
passed📌 Teardown phase
duration:
0.00011339131742715836outcome:
passed
↳ Function: test_custom_unit
-
✅ Test 454
📌 Setup phase
duration:
0.00013503385707736015outcome:
passed📌 Call phase
duration:
0.004961444064974785outcome:
passed📌 Teardown phase
duration:
0.00013928301632404327outcome:
passed
↳ Function: test_clamp_above_total
-
✅ Test 455
📌 Setup phase
duration:
0.00013190507888793945outcome:
passed📌 Call phase
duration:
0.0005455650389194489outcome:
passed📌 Teardown phase
duration:
0.00011639902368187904outcome:
passed
↳ Function: test_clamp_below_zero
-
✅ Test 456
📌 Setup phase
duration:
0.00011957995593547821outcome:
passed📌 Call phase
duration:
0.0006852699443697929outcome:
passed📌 Teardown phase
duration:
0.0001304522156715393outcome:
passed
-
-
📄 test_utils_trinary.py
↳ Function: test_check_trinary_valid_values
-
✅ Test 457
📌 Setup phase
duration:
0.00012760981917381287outcome:
passed📌 Call phase
duration:
0.00018565915524959564outcome:
passed📌 Teardown phase
duration:
0.00010611210018396378outcome:
passed
↳ Function: test_check_trinary_invalid_value
-
✅ Test 458
📌 Setup phase
duration:
0.0001378110609948635outcome:
passed📌 Call phase
duration:
0.00042546214535832405outcome:
passed📌 Teardown phase
duration:
0.0001161377876996994outcome:
passed
↳ Function: test_check_trinary_with_custom_allowed_values
-
✅ Test 459
📌 Setup phase
duration:
0.00011363299563527107outcome:
passed📌 Call phase
duration:
0.00017352914437651634outcome:
passed📌 Teardown phase
duration:
0.00010683992877602577outcome:
passed
-
-
📄 test_utils_typecast.py
↳ Function: test_downcast_success
-
✅ Test 460
📌 Setup phase
duration:
0.00012006936594843864outcome:
passed📌 Call phase
duration:
0.000169459730386734outcome:
passed📌 Teardown phase
duration:
0.00010642781853675842outcome:
passed
↳ Function: test_upcast_success
-
✅ Test 461
📌 Setup phase
duration:
0.0001120101660490036outcome:
passed📌 Call phase
duration:
0.00017372099682688713outcome:
passed📌 Teardown phase
duration:
0.00010598497465252876outcome:
passed
↳ Function: test_downcast_invalid
-
✅ Test 462
📌 Setup phase
duration:
0.00011004786938428879outcome:
passed📌 Call phase
duration:
0.0003572814166545868outcome:
passed📌 Teardown phase
duration:
0.0001112278550863266outcome:
passed
↳ Function: test_upcast_invalid
-
✅ Test 463
📌 Setup phase
duration:
0.00011299503967165947outcome:
passed📌 Call phase
duration:
0.00017471704632043839outcome:
passed📌 Teardown phase
duration:
0.00012967316433787346outcome:
passed
↳ Function: test_object_identity_preserved
-
✅ Test 464
📌 Setup phase
duration:
0.00014512520283460617outcome:
passed📌 Call phase
duration:
0.0002686702646315098outcome:
passed📌 Teardown phase
duration:
0.00013466784730553627outcome:
passed
↳ Function: test_ensure_subclass_valid
-
✅ Test 465
📌 Setup phase
duration:
0.00012886011973023415outcome:
passed📌 Call phase
duration:
0.00017274077981710434outcome:
passed📌 Teardown phase
duration:
0.00011017685756087303outcome:
passed
↳ Function: test_ensure_subclass_invalid
-
✅ Test 466
📌 Setup phase
duration:
0.00010845484212040901outcome:
passed📌 Call phase
duration:
0.00018348312005400658outcome:
passed📌 Teardown phase
duration:
0.00010084407404065132outcome:
passed
↳ Function: test_cast_changes_class
-
✅ Test 467
📌 Setup phase
duration:
0.00016461405903100967outcome:
passed📌 Call phase
duration:
0.00023188022896647453outcome:
passed📌 Teardown phase
duration:
0.0001593031920492649outcome:
passed
↳ Function: test_cast_preserves_identity
-
✅ Test 468
📌 Setup phase
duration:
0.0001805960200726986outcome:
passed📌 Call phase
duration:
0.0002105608582496643outcome:
passed📌 Teardown phase
duration:
0.00016790814697742462outcome:
passed
-
-
📄 test_utils_utils.py
↳ Function: test_singleton_instance
-
✅ Test 469
📌 Setup phase
duration:
0.00019558891654014587outcome:
passed📌 Call phase
duration:
0.00024185935035347939outcome:
passed📌 Teardown phase
duration:
0.00016460707411170006outcome:
passed
↳ Function: test_singleton_identity
-
✅ Test 470
📌 Setup phase
duration:
0.0001752111129462719outcome:
passed📌 Call phase
duration:
0.00021157506853342056outcome:
passed📌 Teardown phase
duration:
0.000166391022503376outcome:
passed
↳ Function: test_typename
-
✅ Test 471
params: obj=null, expected="NoneType"📌 Runtime Parameters
params: obj: None expected: NoneType id: None-NoneType📌 Setup phase
duration:
0.0004771188832819462outcome:
passed📌 Call phase
duration:
0.00027405936270952225outcome:
passed📌 Teardown phase
duration:
0.00021829316392540932outcome:
passed -
✅ Test 472
params: obj=true, expected="bool"📌 Runtime Parameters
params: obj: True expected: bool id: True-bool📌 Setup phase
duration:
0.0002877139486372471outcome:
passed📌 Call phase
duration:
0.0001420578919351101outcome:
passed📌 Teardown phase
duration:
0.0001442190259695053outcome:
passed -
✅ Test 473
params: obj=42, expected="int"📌 Runtime Parameters
params: obj: 42 expected: int id: 42-int📌 Setup phase
duration:
0.00022994307801127434outcome:
passed📌 Call phase
duration:
0.00013757869601249695outcome:
passed📌 Teardown phase
duration:
0.00013746600598096848outcome:
passed -
✅ Test 474
params: obj=3.14, expected="float"📌 Runtime Parameters
params: obj: 3.14 expected: float id: 3.14-float📌 Setup phase
duration:
0.00024179508909583092outcome:
passed📌 Call phase
duration:
0.000196835957467556outcome:
passed📌 Teardown phase
duration:
0.00020710565149784088outcome:
passed -
✅ Test 475
params: obj="text", expected="str"📌 Runtime Parameters
params: obj: text expected: str id: text-str📌 Setup phase
duration:
0.00023355521261692047outcome:
passed📌 Call phase
duration:
0.00014298083260655403outcome:
passed📌 Teardown phase
duration:
0.0001456630416214466outcome:
passed -
✅ Test 476
params: obj="{1, 2, 3}", expected="set"📌 Runtime Parameters
params: obj: {1, 2, 3} expected: set id: obj5-set📌 Setup phase
duration:
0.000215205829590559outcome:
passed📌 Call phase
duration:
0.00013612816110253334outcome:
passed📌 Teardown phase
duration:
0.00014665722846984863outcome:
passed -
✅ Test 477
params: obj=1], [2, 3, expected="list"📌 Runtime Parameters
params: obj: - - 1 - - 2 - 3 expected: list id: obj6-list📌 Setup phase
duration:
0.00023348303511738777outcome:
passed📌 Call phase
duration:
0.00021325377747416496outcome:
passed📌 Teardown phase
duration:
0.00018012803047895432outcome:
passed -
✅ Test 478
params: obj=[{"a": [1, 2]}, {"b": [3, 4]}], expected="list"📌 Runtime Parameters
params: obj: - a: - 1 - 2 - b: - 3 - 4 expected: list id: obj7-list📌 Setup phase
duration:
0.000302647240459919outcome:
passed📌 Call phase
duration:
0.0002026599831879139outcome:
passed📌 Teardown phase
duration:
0.00018516415730118752outcome:
passed -
✅ Test 479
params: obj={"key": [{"nested": 1}, [2, 3]]}, expected="dict"📌 Runtime Parameters
params: obj: key: - nested: 1 - - 2 - 3 expected: dict id: obj8-dict📌 Setup phase
duration:
0.00029471004381775856outcome:
passed📌 Call phase
duration:
0.00018189195543527603outcome:
passed📌 Teardown phase
duration:
0.00021072477102279663outcome:
passed -
✅ Test 480
params: obj=" at 0x7f95f0d69dc0>", expected="function"📌 Runtime Parameters
params: obj: <function <lambda> at 0x7f95f0d69dc0> expected: function id: <lambda>-function📌 Setup phase
duration:
0.0004106811247766018outcome:
passed📌 Call phase
duration:
0.00019046058878302574outcome:
passed📌 Teardown phase
duration:
0.00018458394333720207outcome:
passed -
✅ Test 481
params: obj="", expected="function"📌 Runtime Parameters
params: obj: <function sample_function at 0x7f95f0d69d30> expected: function id: sample_function-function📌 Setup phase
duration:
0.0002915649674832821outcome:
passed📌 Call phase
duration:
0.00020316988229751587outcome:
passed📌 Teardown phase
duration:
0.0001868298277258873outcome:
passed -
✅ Test 482
params: obj=".nested at 0x7f95f0d69e50>", expected="function"📌 Runtime Parameters
params: obj: <function sample_function.<locals>.nested at 0x7f95f0d69e50> expected: function id: nested-function📌 Setup phase
duration:
0.0003108121454715729outcome:
passed📌 Call phase
duration:
0.0001780390739440918outcome:
passed📌 Teardown phase
duration:
0.0001881783828139305outcome:
passed -
✅ Test 483
params: obj="", expected="builtin_function_or_method"📌 Runtime Parameters
params: obj: <built-in function len> expected: builtin_function_or_method id: len-builtin_function_or_method📌 Setup phase
duration:
0.00028266897425055504outcome:
passed📌 Call phase
duration:
0.0001843515783548355outcome:
passed📌 Teardown phase
duration:
0.00018857326358556747outcome:
passed -
✅ Test 484
params: obj="", expected="builtin_function_or_method"📌 Runtime Parameters
params: obj: <built-in function sum> expected: builtin_function_or_method id: sum-builtin_function_or_method📌 Setup phase
duration:
0.0002712761051952839outcome:
passed📌 Call phase
duration:
0.0001730090007185936outcome:
passed📌 Teardown phase
duration:
0.00019503803923726082outcome:
passed -
✅ Test 485
params: obj="", expected="module"📌 Runtime Parameters
params: obj: <module 'math' from '/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/lib-dynload/math.cpython-38-x86_64-linux-gnu.so'> expected: module id: math-module📌 Setup phase
duration:
0.0003168480470776558outcome:
passed📌 Call phase
duration:
0.00018666591495275497outcome:
passed📌 Teardown phase
duration:
0.00019325176253914833outcome:
passed -
✅ Test 486
params: obj="", expected="module"📌 Runtime Parameters
params: obj: <module 'sys' (built-in)> expected: module id: sys-module📌 Setup phase
duration:
0.000277866143733263outcome:
passed📌 Call phase
duration:
0.00019984599202871323outcome:
passed📌 Teardown phase
duration:
0.00019520707428455353outcome:
passed -
✅ Test 487
params: obj="", expected="type"📌 Runtime Parameters
params: obj: <class 'function'> expected: type id: function-type📌 Setup phase
duration:
0.00031540775671601295outcome:
passed📌 Call phase
duration:
0.00018173083662986755outcome:
passed📌 Teardown phase
duration:
0.00019606994464993477outcome:
passed -
✅ Test 488
params: obj=" at 0x7f95f0d38e40>", expected="generator"📌 Runtime Parameters
params: obj: <generator object <genexpr> at 0x7f95f0d38e40> expected: generator id: <genexpr>-generator📌 Setup phase
duration:
0.0002728831022977829outcome:
passed📌 Call phase
duration:
0.00017058616504073143outcome:
passed📌 Teardown phase
duration:
0.00018020020797848701outcome:
passed -
✅ Test 489
params: obj="", expected="list_iterator"📌 Runtime Parameters
params: obj: <list_iterator object at 0x7f95f0970280> expected: list_iterator id: obj18-list_iterator📌 Setup phase
duration:
0.00029151467606425285outcome:
passed📌 Call phase
duration:
0.00017880694940686226outcome:
passed📌 Teardown phase
duration:
0.00018719304352998734outcome:
passed
↳ Function: test_next_int
-
✅ Test 490
params: nums=[1, 2, 3], expected=4📌 Runtime Parameters
params: nums: - 1 - 2 - 3 expected: 4 id: nums0-4📌 Setup phase
duration:
0.00031494302675127983outcome:
passed📌 Call phase
duration:
0.00020643975585699081outcome:
passed📌 Teardown phase
duration:
0.00018292292952537537outcome:
passed -
✅ Test 491
params: nums=[10, 20], expected=21📌 Runtime Parameters
params: nums: - 10 - 20 expected: 21 id: nums1-21📌 Setup phase
duration:
0.0003001349978148937outcome:
passed📌 Call phase
duration:
0.00018848199397325516outcome:
passed📌 Teardown phase
duration:
0.0002022278495132923outcome:
passed -
✅ Test 492
params: nums=[], expected=0📌 Runtime Parameters
params: nums: [] expected: 0 id: nums2-0📌 Setup phase
duration:
0.0002862229011952877outcome:
passed📌 Call phase
duration:
0.0001781233586370945outcome:
passed📌 Teardown phase
duration:
0.0001652538776397705outcome:
passed
↳ Function: test_zero_pad
-
✅ Test 493
params: i=7, n=3, expected="007"📌 Runtime Parameters
params: i: 7 n: 3 expected: 007 id: 7-3-007📌 Setup phase
duration:
0.00028561800718307495outcome:
passed📌 Call phase
duration:
0.0001552049070596695outcome:
passed📌 Teardown phase
duration:
0.00016303686425089836outcome:
passed -
✅ Test 494
params: i=123, n=5, expected="00123"📌 Runtime Parameters
params: i: 123 n: 5 expected: 00123 id: 123-5-00123📌 Setup phase
duration:
0.0002837572246789932outcome:
passed📌 Call phase
duration:
0.00017410703003406525outcome:
passed📌 Teardown phase
duration:
0.00016235187649726868outcome:
passed -
✅ Test 495
params: i=0, n=2, expected="00"📌 Runtime Parameters
params: i: 0 n: 2 expected: 00 id: 0-2-00📌 Setup phase
duration:
0.0002887672744691372outcome:
passed📌 Call phase
duration:
0.00014800671488046646outcome:
passed📌 Teardown phase
duration:
0.00015667220577597618outcome:
passed
↳ Function: test_iround
-
✅ Test 496
params: val=3.6, expected=4📌 Runtime Parameters
params: val: 3.6 expected: 4 id: 3.6-4📌 Setup phase
duration:
0.00023223180323839188outcome:
passed📌 Call phase
duration:
0.00014766398817300797outcome:
passed📌 Teardown phase
duration:
0.00014273496344685555outcome:
passed -
✅ Test 497
params: val=2.1, expected=2📌 Runtime Parameters
params: val: 2.1 expected: 2 id: 2.1-2📌 Setup phase
duration:
0.00023977505043148994outcome:
passed📌 Call phase
duration:
0.0001584249548614025outcome:
passed📌 Teardown phase
duration:
0.0001508910208940506outcome:
passed -
✅ Test 498
params: val=-1.5, expected=-2📌 Runtime Parameters
params: val: -1.5 expected: -2 id: -1.5--2📌 Setup phase
duration:
0.00021870993077754974outcome:
passed📌 Call phase
duration:
0.0001349039375782013outcome:
passed📌 Teardown phase
duration:
0.0001591048203408718outcome:
passed -
✅ Test 499
params: val=-1.4, expected=-1📌 Runtime Parameters
params: val: -1.4 expected: -1 id: -1.4--1📌 Setup phase
duration:
0.0002241525799036026outcome:
passed📌 Call phase
duration:
0.0001381118781864643outcome:
passed📌 Teardown phase
duration:
0.00014064740389585495outcome:
passed
↳ Function: test_sorted_naturally
-
✅ Test 500
params: items=["file1", "file10", "file2"], expected=["file1", "file2", "file10"]📌 Runtime Parameters
params: items: - file1 - file10 - file2 expected: - file1 - file2 - file10 id: items0-expected0📌 Setup phase
duration:
0.00023934617638587952outcome:
passed📌 Call phase
duration:
0.0002312343567609787outcome:
passed📌 Teardown phase
duration:
0.00018678558990359306outcome:
passed -
✅ Test 501
params: items=["z9", "z10", "z2", "z1"], expected=["z1", "z2", "z9", "z10"]📌 Runtime Parameters
params: items: - z9 - z10 - z2 - z1 expected: - z1 - z2 - z9 - z10 id: items1-expected1📌 Setup phase
duration:
0.00029003992676734924outcome:
passed📌 Call phase
duration:
0.00022625410929322243outcome:
passed📌 Teardown phase
duration:
0.0001898510381579399outcome:
passed
↳ Function: test_sorted_naturally_reverse
-
✅ Test 502
params: items=["file1", "file10", "file2"], expected=["file10", "file2", "file1"]📌 Runtime Parameters
params: items: - file1 - file10 - file2 expected: - file10 - file2 - file1 id: items0-expected0📌 Setup phase
duration:
0.00031411508098244667outcome:
passed📌 Call phase
duration:
0.00019015884026885033outcome:
passed📌 Teardown phase
duration:
0.00018707802519202232outcome:
passed
-
-
📄 test_utils_xrange.py
↳ Function: test_xrange_finite
-
✅ Test 503
params: args=[10], kwargs={}, expected=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]📌 Runtime Parameters
params: args: - 10 kwargs: {} expected: - (vide) - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 id: args0-kwargs0-expected0📌 Setup phase
duration:
0.00044662272557616234outcome:
passed📌 Call phase
duration:
0.00023275287821888924outcome:
passed📌 Teardown phase
duration:
0.00022873887792229652outcome:
passed -
✅ Test 504
params: args=[0, 10], kwargs={}, expected=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]📌 Runtime Parameters
params: args: - (vide) - 10 kwargs: {} expected: - (vide) - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 id: args1-kwargs1-expected1📌 Setup phase
duration:
0.0003510196693241596outcome:
passed📌 Call phase
duration:
0.0002761096693575382outcome:
passed📌 Teardown phase
duration:
0.0001744343899190426outcome:
passed -
✅ Test 505
params: args=[0, 10, 2], kwargs={}, expected=[0, 2, 4, 6, 8]📌 Runtime Parameters
params: args: - (vide) - 10 - 2 kwargs: {} expected: - (vide) - 2 - 4 - 6 - 8 id: args2-kwargs2-expected2📌 Setup phase
duration:
0.0003191591240465641outcome:
passed📌 Call phase
duration:
0.000154073815792799outcome:
passed📌 Teardown phase
duration:
0.0001580328680574894outcome:
passed -
✅ Test 506
params: args=[10], kwargs={"step": 2}, expected=[0, 2, 4, 6, 8]📌 Runtime Parameters
params: args: - 10 kwargs: step: 2 expected: - (vide) - 2 - 4 - 6 - 8 id: args3-kwargs3-expected3📌 Setup phase
duration:
0.0002739778719842434outcome:
passed📌 Call phase
duration:
0.0001431768760085106outcome:
passed📌 Teardown phase
duration:
0.00016913702711462975outcome:
passed
↳ Function: test_xrange_infinite
-
✅ Test 507
params: args=[], kwargs={}, expected_repr="count(0)"📌 Runtime Parameters
params: args: [] kwargs: {} expected_repr: count(0) id: args0-kwargs0-count(0)📌 Setup phase
duration:
0.0002688351087272167outcome:
passed📌 Call phase
duration:
0.00015794392675161362outcome:
passed📌 Teardown phase
duration:
0.000172486063092947outcome:
passed -
✅ Test 508
params: args=[], kwargs={"step": 2}, expected_repr="count(0, 2)"📌 Runtime Parameters
params: args: [] kwargs: step: 2 expected_repr: count(0, 2) id: args1-kwargs1-count(0, 2)📌 Setup phase
duration:
0.0002805790863931179outcome:
passed📌 Call phase
duration:
0.00015074899420142174outcome:
passed📌 Teardown phase
duration:
0.0001562759280204773outcome:
passed
↳ Function: test_xrange_too_many_args
-
✅ Test 509
params: args=[1, 2, 3, 4]📌 Runtime Parameters
params: args: - 1 - 2 - 3 - 4 id: args0📌 Setup phase
duration:
0.0001815110445022583outcome:
passed📌 Call phase
duration:
0.0004952088929712772outcome:
passed📌 Teardown phase
duration:
0.000677064061164856outcome:
passed
-
❌ Failed (35)
-
📄 test_utils_debug.py
↳ Function: test_short_repr
-
❌ Test 134
params: value="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", cutoff=10, expected="'aaaaaaaaaa..."📌 Runtime Parameters
params: value: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa cutoff: 10 expected: 'aaaaaaaaaa... id: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-10-'aaaaaaaaaa...📌 Setup phase
duration:
0.00028054090216755867outcome:
passed📌 Call phase
duration:
0.0010487823747098446outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_debug.py lineno: 66 message: assert "'aaaaaaaaa..." == "'aaaaaaaaaa..." - 'aaaaaaaaaa... ? - + 'aaaaaaaaa...traceback:
- path: tests/test_utils_debug.py lineno: 66 message: AssertionErrorlongrepr:
value = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' cutoff = 10, expected = "'aaaaaaaaaa..." @pytest.mark.parametrize( "value, cutoff, expected", [ ("abc", 10, "'abc'"), ("a" * 100, 10, "'aaaaaaaaaa..."), (12345, 10, "12345"), ([0]*100, 15, str(repr([0]*100))[:15] + "..."), (None, 10, "None"), (type("Obj", (), {"__repr__": lambda self: "Obj(" + "x"*50 + ")"})(), 20, "Obj(xxxxxxxxxxxxxxxxx..."), ] ) def test_short_repr(value, cutoff, expected): > assert short_repr(value, cutoff) == expected E assert "'aaaaaaaaa..." == "'aaaaaaaaaa..." E E - 'aaaaaaaaaa... E ? - E + 'aaaaaaaaa... tests/test_utils_debug.py:66: AssertionError📌 Teardown phase
duration:
0.0003745020367205143outcome:
passed -
❌ Test 138
params: value="Obj(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)", cutoff=20, expected="Obj(xxxxxxxxxxxxxxxxx..."📌 Runtime Parameters
params: value: Obj(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) cutoff: 20 expected: Obj(xxxxxxxxxxxxxxxxx... id: value5-20-Obj(xxxxxxxxxxxxxxxxx...📌 Setup phase
duration:
0.0002691829577088356outcome:
passed📌 Call phase
duration:
0.0006332541815936565outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_debug.py lineno: 66 message: AssertionError: assert 'Obj(xxxxxxxxxxxxxxxx...' == 'Obj(xxxxxxxxxxxxxxxxx...' - Obj(xxxxxxxxxxxxxxxxx... ? - + Obj(xxxxxxxxxxxxxxxx...traceback:
- path: tests/test_utils_debug.py lineno: 66 message: AssertionErrorlongrepr:
value = Obj(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx), cutoff = 20 expected = 'Obj(xxxxxxxxxxxxxxxxx...' @pytest.mark.parametrize( "value, cutoff, expected", [ ("abc", 10, "'abc'"), ("a" * 100, 10, "'aaaaaaaaaa..."), (12345, 10, "12345"), ([0]*100, 15, str(repr([0]*100))[:15] + "..."), (None, 10, "None"), (type("Obj", (), {"__repr__": lambda self: "Obj(" + "x"*50 + ")"})(), 20, "Obj(xxxxxxxxxxxxxxxxx..."), ] ) def test_short_repr(value, cutoff, expected): > assert short_repr(value, cutoff) == expected E AssertionError: assert 'Obj(xxxxxxxxxxxxxxxx...' == 'Obj(xxxxxxxxxxxxxxxxx...' E E - Obj(xxxxxxxxxxxxxxxxx... E ? - E + Obj(xxxxxxxxxxxxxxxx... tests/test_utils_debug.py:66: AssertionError📌 Teardown phase
duration:
0.00025618309155106544outcome:
passed
-
-
📄 test_utils_elog.py
↳ Function: test_get_default_elog_instance_with_direct_password_and_real_check
-
❌ Test 159
📌 Setup phase
duration:
0.00012043816968798637outcome:
passed📌 Call phase
duration:
0.006173661909997463outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py lineno: 700 message: requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95f0896100>: Failed to establish a new connection: [Errno 111] Connection refused'))traceback:
- path: tests/test_utils_elog.py lineno: 43 message: None - path: .pixi/envs/default/lib/python3.8/site-packages/requests/api.py lineno: 73 message: in get - path: .pixi/envs/default/lib/python3.8/site-packages/requests/api.py lineno: 59 message: in request - path: .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py lineno: 589 message: in request - path: .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py lineno: 703 message: in send - path: .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py lineno: 700 message: ConnectionErrorlongrepr:
self = <urllib3.connection.HTTPConnection object at 0x7f95f0896100> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: > sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:85: in create_connection raise err _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 8080), timeout = None, source_address = None socket_options = [(6, 1, 1)] def create_connection( address: tuple[str, int], timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, source_address: tuple[str, int] | None = None, socket_options: _TYPE_SOCKET_OPTIONS | None = None, ) -> socket.socket: """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`socket.getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. """ host, port = address if host.startswith("["): host = host.strip("[]") err = None # Using the value from allowed_gai_family() in the context of getaddrinfo lets # us select whether to work with IPv4 DNS records, IPv6 records, or both. # The original create_connection function always returns all records. family = allowed_gai_family() try: host.encode("idna") except UnicodeError: raise LocationParseError(f"'{host}', label empty or too long") from None for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket.socket(af, socktype, proto) # If provided, set socket level options before connecting. _set_socket_options(sock, socket_options) if timeout is not _DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError The above exception was the direct cause of the following exception: self = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f95f0896250> method = 'GET', url = '/demo', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic cm9ib3Q6dGVzdHBhc3N3b3Jk'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/demo', query=None, fragment=None) destination_scheme = None, conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False def urlopen( # type: ignore[override] self, method: str, url: str, body: _TYPE_BODY | None = None, headers: typing.Mapping[str, str] | None = None, retries: Retry | bool | int | None = None, redirect: bool = True, assert_same_host: bool = True, timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, pool_timeout: int | None = None, release_conn: bool | None = None, chunked: bool = False, body_pos: _TYPE_BODY_POSITION | None = None, preload_content: bool = True, decode_content: bool = True, **response_kw: typing.Any, ) -> BaseHTTPResponse: """ Get a connection from the pool and perform an HTTP request. This is the lowest level call for making a request, so you'll need to specify all the raw details. .. note:: More commonly, it's appropriate to use a convenience method such as :meth:`request`. .. note:: `release_conn` will only behave as expected if `preload_content=False` because we want to make `preload_content=False` the default behaviour someday soon without breaking backwards compatibility. :param method: HTTP request method (such as GET, POST, PUT, etc.) :param url: The URL to perform the request on. :param body: Data to send in the request body, either :class:`str`, :class:`bytes`, an iterable of :class:`str`/:class:`bytes`, or a file-like object. :param headers: Dictionary of custom headers to send, such as User-Agent, If-None-Match, etc. If None, pool headers are used. If provided, these headers completely replace any pool-specific headers. :param retries: Configure the number of retries to allow before raising a :class:`~urllib3.exceptions.MaxRetryError` exception. If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a :class:`~urllib3.util.retry.Retry` object for fine-grained control over different types of retries. Pass an integer number to retry connection errors that many times, but no other types of errors. Pass zero to never retry. If ``False``, then retries are disabled and any exception is raised immediately. Also, instead of raising a MaxRetryError on redirects, the redirect response will be returned. :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. :param redirect: If True, automatically handle redirects (status codes 301, 302, 303, 307, 308). Each redirect counts as a retry. Disabling retries will disable redirect, too. :param assert_same_host: If ``True``, will make sure that the host of the pool requests is consistent else will raise HostChangedError. When ``False``, you can use the pool on an HTTP proxy and request foreign hosts. :param timeout: If specified, overrides the default timeout for this one request. It may be a float (in seconds) or an instance of :class:`urllib3.util.Timeout`. :param pool_timeout: If set and the pool is set to block=True, then this method will block for ``pool_timeout`` seconds and raise EmptyPoolError if no connection is available within the time period. :param bool preload_content: If True, the response's body will be preloaded into memory. :param bool decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. :param release_conn: If False, then the urlopen call will not release the connection back into the pool once a response is received (but will release if you read the entire contents of the response such as when `preload_content=True`). This is useful if you're not preloading the response's content immediately. You will need to call ``r.release_conn()`` on the response ``r`` to return the connection back into the pool. If None, it takes the value of ``preload_content`` which defaults to ``True``. :param bool chunked: If True, urllib3 will send the body using chunked transfer encoding. Otherwise, urllib3 will send the body using the standard content-length form. Defaults to False. :param int body_pos: Position to seek to in file-like body in the event of a retry or redirect. Typically this won't need to be set because urllib3 will auto-populate the value when needed. """ parsed_url = parse_url(url) destination_scheme = parsed_url.scheme if headers is None: headers = self.headers if not isinstance(retries, Retry): retries = Retry.from_int(retries, redirect=redirect, default=self.retries) if release_conn is None: release_conn = preload_content # Check host if assert_same_host and not self.is_same_host(url): raise HostChangedError(self, url, retries) # Ensure that the URL we're connecting to is properly encoded if url.startswith("/"): url = to_str(_encode_target(url)) else: url = to_str(parsed_url.url) conn = None # Track whether `conn` needs to be released before # returning/raising/recursing. Update this variable if necessary, and # leave `release_conn` constant throughout the function. That way, if # the function recurses, the original value of `release_conn` will be # passed down into the recursive call, and its value will be respected. # # See issue #651 [1] for details. # # [1] <https://github.com/urllib3/urllib3/issues/651> release_this_conn = release_conn http_tunnel_required = connection_requires_http_tunnel( self.proxy, self.proxy_config, destination_scheme ) # Merge the proxy headers. Only done when not using HTTP CONNECT. We # have to copy the headers dict so we can safely change it without those # changes being reflected in anyone else's copy. if not http_tunnel_required: headers = headers.copy() # type: ignore[attr-defined] headers.update(self.proxy_headers) # type: ignore[union-attr] # Must keep the exception bound to a separate variable or else Python 3 # complains about UnboundLocalError. err = None # Keep track of whether we cleanly exited the except block. This # ensures we do proper cleanup in finally. clean_exit = False # Rewind body position, if needed. Record current position # for future rewinds in the event of a redirect/retry. body_pos = set_file_position(body, body_pos) try: # Request a connection from the queue. timeout_obj = self._get_timeout(timeout) conn = self._get_conn(timeout=pool_timeout) conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] # Is this a closed/new connection that requires CONNECT tunnelling? if self.proxy is not None and http_tunnel_required and conn.is_closed: try: self._prepare_proxy(conn) except (BaseSSLError, OSError, SocketTimeout) as e: self._raise_timeout( err=e, url=self.proxy.url, timeout_value=conn.timeout ) raise # If we're going to release the connection in ``finally:``, then # the response doesn't need to know about the connection. Otherwise # it will also try to release it and we'll have a double-release # mess. response_conn = conn if not release_conn else None # Make the request on the HTTPConnection object > response = self._make_request( conn, method, url, timeout=timeout_obj, body=body, headers=headers, chunked=chunked, retries=retries, response_conn=response_conn, preload_content=preload_content, decode_content=decode_content, **response_kw, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:789: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:495: in _make_request conn.request( .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:441: in request self.endheaders() .pixi/envs/default/lib/python3.8/http/client.py:1251: in endheaders self._send_output(message_body, encode_chunked=encode_chunked) .pixi/envs/default/lib/python3.8/http/client.py:1011: in _send_output self.send(msg) .pixi/envs/default/lib/python3.8/http/client.py:951: in send self.connect() .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:279: in connect self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <urllib3.connection.HTTPConnection object at 0x7f95f0896100> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) except socket.gaierror as e: raise NameResolutionError(self.host, self, e) from e except SocketTimeout as e: raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e except OSError as e: > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e E urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f95f0896100>: Failed to establish a new connection: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:214: NewConnectionError The above exception was the direct cause of the following exception: self = <requests.adapters.HTTPAdapter object at 0x7f95f0896a60> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: > resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:667: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:843: in urlopen retries = retries.increment( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/demo', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95f0896100>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f95f0896250> _stacktrace = <traceback object at 0x7f959d9e2740> def increment( self, method: str | None = None, url: str | None = None, response: BaseHTTPResponse | None = None, error: Exception | None = None, _pool: ConnectionPool | None = None, _stacktrace: TracebackType | None = None, ) -> Self: """Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.BaseHTTPResponse` :param Exception error: An error encountered during the request, or None if the response was received successfully. :return: A new ``Retry`` object. """ if self.total is False and error: # Disabled, indicate to re-raise the error. raise reraise(type(error), error, _stacktrace) total = self.total if total is not None: total -= 1 connect = self.connect read = self.read redirect = self.redirect status_count = self.status other = self.other cause = "unknown" status = None redirect_location = None if error and self._is_connection_error(error): # Connect retry? if connect is False: raise reraise(type(error), error, _stacktrace) elif connect is not None: connect -= 1 elif error and self._is_read_error(error): # Read retry? if read is False or method is None or not self._is_method_retryable(method): raise reraise(type(error), error, _stacktrace) elif read is not None: read -= 1 elif error: # Other retry? if other is not None: other -= 1 elif response and response.get_redirect_location(): # Redirect retry? if redirect is not None: redirect -= 1 cause = "too many redirects" response_redirect_location = response.get_redirect_location() if response_redirect_location: redirect_location = response_redirect_location status = response.status else: # Incrementing because of a server error like a 500 in # status_forcelist and the given method is in the allowed_methods cause = ResponseError.GENERIC_ERROR if response and response.status: if status_count is not None: status_count -= 1 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) status = response.status history = self.history + ( RequestHistory(method, url, error, status, redirect_location), ) new_retry = self.new( total=total, connect=connect, read=read, redirect=redirect, status=status_count, other=other, history=history, ) if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95f0896100>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: def test_get_default_elog_instance_with_direct_password_and_real_check(): url = "http://localhost:8080/demo" user = "robot" password = "testpassword" elog_instance, returned_user = get_default_elog_instance(url, user=user, password=password) assert returned_user == user assert hasattr(elog_instance, "post") > r = requests.get(url, auth=(user, password)) tests/test_utils_elog.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:73: in get return request("get", url, params=params, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <requests.adapters.HTTPAdapter object at 0x7f95f0896a60> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) except (ProtocolError, OSError) as err: raise ConnectionError(err, request=request) except MaxRetryError as e: if isinstance(e.reason, ConnectTimeoutError): # TODO: Remove this in 3.0.0: see #2811 if not isinstance(e.reason, NewConnectionError): raise ConnectTimeout(e, request=request) if isinstance(e.reason, ResponseError): raise RetryError(e, request=request) if isinstance(e.reason, _ProxyError): raise ProxyError(e, request=request) if isinstance(e.reason, _SSLError): # This branch is for urllib3 v1.22 and later. raise SSLError(e, request=request) > raise ConnectionError(e, request=request) E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95f0896100>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:700: ConnectionError📌 Teardown phase
duration:
0.0002860720269382outcome:
passed
↳ Function: test_get_default_elog_instance_asks_password_and_opens
-
❌ Test 160
📌 Setup phase
duration:
0.00015249336138367653outcome:
passed📌 Call phase
duration:
0.0067154462449252605outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py lineno: 700 message: requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95f0d92c70>: Failed to establish a new connection: [Errno 111] Connection refused'))traceback:
- path: tests/test_utils_elog.py lineno: 60 message: None - path: .pixi/envs/default/lib/python3.8/site-packages/requests/api.py lineno: 73 message: in get - path: .pixi/envs/default/lib/python3.8/site-packages/requests/api.py lineno: 59 message: in request - path: .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py lineno: 589 message: in request - path: .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py lineno: 703 message: in send - path: .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py lineno: 700 message: ConnectionErrorlongrepr:
self = <urllib3.connection.HTTPConnection object at 0x7f95f0d92c70> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: > sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:85: in create_connection raise err _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 8080), timeout = None, source_address = None socket_options = [(6, 1, 1)] def create_connection( address: tuple[str, int], timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, source_address: tuple[str, int] | None = None, socket_options: _TYPE_SOCKET_OPTIONS | None = None, ) -> socket.socket: """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`socket.getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. """ host, port = address if host.startswith("["): host = host.strip("[]") err = None # Using the value from allowed_gai_family() in the context of getaddrinfo lets # us select whether to work with IPv4 DNS records, IPv6 records, or both. # The original create_connection function always returns all records. family = allowed_gai_family() try: host.encode("idna") except UnicodeError: raise LocationParseError(f"'{host}', label empty or too long") from None for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket.socket(af, socktype, proto) # If provided, set socket level options before connecting. _set_socket_options(sock, socket_options) if timeout is not _DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError The above exception was the direct cause of the following exception: self = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f95f0d92970> method = 'GET', url = '/demo', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic cm9ib3Q6dGVzdHBhc3N3b3Jk'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/demo', query=None, fragment=None) destination_scheme = None, conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False def urlopen( # type: ignore[override] self, method: str, url: str, body: _TYPE_BODY | None = None, headers: typing.Mapping[str, str] | None = None, retries: Retry | bool | int | None = None, redirect: bool = True, assert_same_host: bool = True, timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, pool_timeout: int | None = None, release_conn: bool | None = None, chunked: bool = False, body_pos: _TYPE_BODY_POSITION | None = None, preload_content: bool = True, decode_content: bool = True, **response_kw: typing.Any, ) -> BaseHTTPResponse: """ Get a connection from the pool and perform an HTTP request. This is the lowest level call for making a request, so you'll need to specify all the raw details. .. note:: More commonly, it's appropriate to use a convenience method such as :meth:`request`. .. note:: `release_conn` will only behave as expected if `preload_content=False` because we want to make `preload_content=False` the default behaviour someday soon without breaking backwards compatibility. :param method: HTTP request method (such as GET, POST, PUT, etc.) :param url: The URL to perform the request on. :param body: Data to send in the request body, either :class:`str`, :class:`bytes`, an iterable of :class:`str`/:class:`bytes`, or a file-like object. :param headers: Dictionary of custom headers to send, such as User-Agent, If-None-Match, etc. If None, pool headers are used. If provided, these headers completely replace any pool-specific headers. :param retries: Configure the number of retries to allow before raising a :class:`~urllib3.exceptions.MaxRetryError` exception. If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a :class:`~urllib3.util.retry.Retry` object for fine-grained control over different types of retries. Pass an integer number to retry connection errors that many times, but no other types of errors. Pass zero to never retry. If ``False``, then retries are disabled and any exception is raised immediately. Also, instead of raising a MaxRetryError on redirects, the redirect response will be returned. :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. :param redirect: If True, automatically handle redirects (status codes 301, 302, 303, 307, 308). Each redirect counts as a retry. Disabling retries will disable redirect, too. :param assert_same_host: If ``True``, will make sure that the host of the pool requests is consistent else will raise HostChangedError. When ``False``, you can use the pool on an HTTP proxy and request foreign hosts. :param timeout: If specified, overrides the default timeout for this one request. It may be a float (in seconds) or an instance of :class:`urllib3.util.Timeout`. :param pool_timeout: If set and the pool is set to block=True, then this method will block for ``pool_timeout`` seconds and raise EmptyPoolError if no connection is available within the time period. :param bool preload_content: If True, the response's body will be preloaded into memory. :param bool decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. :param release_conn: If False, then the urlopen call will not release the connection back into the pool once a response is received (but will release if you read the entire contents of the response such as when `preload_content=True`). This is useful if you're not preloading the response's content immediately. You will need to call ``r.release_conn()`` on the response ``r`` to return the connection back into the pool. If None, it takes the value of ``preload_content`` which defaults to ``True``. :param bool chunked: If True, urllib3 will send the body using chunked transfer encoding. Otherwise, urllib3 will send the body using the standard content-length form. Defaults to False. :param int body_pos: Position to seek to in file-like body in the event of a retry or redirect. Typically this won't need to be set because urllib3 will auto-populate the value when needed. """ parsed_url = parse_url(url) destination_scheme = parsed_url.scheme if headers is None: headers = self.headers if not isinstance(retries, Retry): retries = Retry.from_int(retries, redirect=redirect, default=self.retries) if release_conn is None: release_conn = preload_content # Check host if assert_same_host and not self.is_same_host(url): raise HostChangedError(self, url, retries) # Ensure that the URL we're connecting to is properly encoded if url.startswith("/"): url = to_str(_encode_target(url)) else: url = to_str(parsed_url.url) conn = None # Track whether `conn` needs to be released before # returning/raising/recursing. Update this variable if necessary, and # leave `release_conn` constant throughout the function. That way, if # the function recurses, the original value of `release_conn` will be # passed down into the recursive call, and its value will be respected. # # See issue #651 [1] for details. # # [1] <https://github.com/urllib3/urllib3/issues/651> release_this_conn = release_conn http_tunnel_required = connection_requires_http_tunnel( self.proxy, self.proxy_config, destination_scheme ) # Merge the proxy headers. Only done when not using HTTP CONNECT. We # have to copy the headers dict so we can safely change it without those # changes being reflected in anyone else's copy. if not http_tunnel_required: headers = headers.copy() # type: ignore[attr-defined] headers.update(self.proxy_headers) # type: ignore[union-attr] # Must keep the exception bound to a separate variable or else Python 3 # complains about UnboundLocalError. err = None # Keep track of whether we cleanly exited the except block. This # ensures we do proper cleanup in finally. clean_exit = False # Rewind body position, if needed. Record current position # for future rewinds in the event of a redirect/retry. body_pos = set_file_position(body, body_pos) try: # Request a connection from the queue. timeout_obj = self._get_timeout(timeout) conn = self._get_conn(timeout=pool_timeout) conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] # Is this a closed/new connection that requires CONNECT tunnelling? if self.proxy is not None and http_tunnel_required and conn.is_closed: try: self._prepare_proxy(conn) except (BaseSSLError, OSError, SocketTimeout) as e: self._raise_timeout( err=e, url=self.proxy.url, timeout_value=conn.timeout ) raise # If we're going to release the connection in ``finally:``, then # the response doesn't need to know about the connection. Otherwise # it will also try to release it and we'll have a double-release # mess. response_conn = conn if not release_conn else None # Make the request on the HTTPConnection object > response = self._make_request( conn, method, url, timeout=timeout_obj, body=body, headers=headers, chunked=chunked, retries=retries, response_conn=response_conn, preload_content=preload_content, decode_content=decode_content, **response_kw, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:789: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:495: in _make_request conn.request( .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:441: in request self.endheaders() .pixi/envs/default/lib/python3.8/http/client.py:1251: in endheaders self._send_output(message_body, encode_chunked=encode_chunked) .pixi/envs/default/lib/python3.8/http/client.py:1011: in _send_output self.send(msg) .pixi/envs/default/lib/python3.8/http/client.py:951: in send self.connect() .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:279: in connect self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <urllib3.connection.HTTPConnection object at 0x7f95f0d92c70> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) except socket.gaierror as e: raise NameResolutionError(self.host, self, e) from e except SocketTimeout as e: raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e except OSError as e: > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e E urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f95f0d92c70>: Failed to establish a new connection: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:214: NewConnectionError The above exception was the direct cause of the following exception: self = <requests.adapters.HTTPAdapter object at 0x7f95f0d928e0> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: > resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:667: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:843: in urlopen retries = retries.increment( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/demo', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95f0d92c70>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f95f0d92970> _stacktrace = <traceback object at 0x7f959cb69b00> def increment( self, method: str | None = None, url: str | None = None, response: BaseHTTPResponse | None = None, error: Exception | None = None, _pool: ConnectionPool | None = None, _stacktrace: TracebackType | None = None, ) -> Self: """Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.BaseHTTPResponse` :param Exception error: An error encountered during the request, or None if the response was received successfully. :return: A new ``Retry`` object. """ if self.total is False and error: # Disabled, indicate to re-raise the error. raise reraise(type(error), error, _stacktrace) total = self.total if total is not None: total -= 1 connect = self.connect read = self.read redirect = self.redirect status_count = self.status other = self.other cause = "unknown" status = None redirect_location = None if error and self._is_connection_error(error): # Connect retry? if connect is False: raise reraise(type(error), error, _stacktrace) elif connect is not None: connect -= 1 elif error and self._is_read_error(error): # Read retry? if read is False or method is None or not self._is_method_retryable(method): raise reraise(type(error), error, _stacktrace) elif read is not None: read -= 1 elif error: # Other retry? if other is not None: other -= 1 elif response and response.get_redirect_location(): # Redirect retry? if redirect is not None: redirect -= 1 cause = "too many redirects" response_redirect_location = response.get_redirect_location() if response_redirect_location: redirect_location = response_redirect_location status = response.status else: # Incrementing because of a server error like a 500 in # status_forcelist and the given method is in the allowed_methods cause = ResponseError.GENERIC_ERROR if response and response.status: if status_count is not None: status_count -= 1 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) status = response.status history = self.history + ( RequestHistory(method, url, error, status, redirect_location), ) new_retry = self.new( total=total, connect=connect, read=read, redirect=redirect, status=status_count, other=other, history=history, ) if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95f0d92c70>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: mock_home = <MagicMock name='home' id='140280556768752'> mock_getpass = <MagicMock name='getpass' id='140280566031120'> @patch("slic.utils.elog.getpass") @patch("slic.utils.elog.Path.home") def test_get_default_elog_instance_asks_password_and_opens(mock_home, mock_getpass): mock_home.return_value = Path("/does/not/exist") # Fausse home → lecture échoue mock_getpass.return_value = "testpassword" url = "http://localhost:8080/demo" user = "robot" elog_instance, returned_user = get_default_elog_instance(url, user=user) assert returned_user == user assert hasattr(elog_instance, "post") > r = requests.get(url, auth=(user, mock_getpass.return_value)) tests/test_utils_elog.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:73: in get return request("get", url, params=params, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <requests.adapters.HTTPAdapter object at 0x7f95f0d928e0> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) except (ProtocolError, OSError) as err: raise ConnectionError(err, request=request) except MaxRetryError as e: if isinstance(e.reason, ConnectTimeoutError): # TODO: Remove this in 3.0.0: see #2811 if not isinstance(e.reason, NewConnectionError): raise ConnectTimeout(e, request=request) if isinstance(e.reason, ResponseError): raise RetryError(e, request=request) if isinstance(e.reason, _ProxyError): raise ProxyError(e, request=request) if isinstance(e.reason, _SSLError): # This branch is for urllib3 v1.22 and later. raise SSLError(e, request=request) > raise ConnectionError(e, request=request) E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95f0d92c70>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:700: ConnectionError📌 Teardown phase
duration:
0.00027877697721123695outcome:
passed
↳ Function: test_get_default_elog_with_path_home
-
❌ Test 161
📌 Setup phase
duration:
0.00015120906755328178outcome:
passed📌 Call phase
duration:
0.007098217960447073outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py lineno: 700 message: requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959d982ee0>: Failed to establish a new connection: [Errno 111] Connection refused'))traceback:
- path: tests/test_utils_elog.py lineno: 87 message: None - path: .pixi/envs/default/lib/python3.8/site-packages/requests/api.py lineno: 73 message: in get - path: .pixi/envs/default/lib/python3.8/site-packages/requests/api.py lineno: 59 message: in request - path: .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py lineno: 589 message: in request - path: .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py lineno: 703 message: in send - path: .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py lineno: 700 message: ConnectionErrorlongrepr:
self = <urllib3.connection.HTTPConnection object at 0x7f959d982ee0> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: > sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:85: in create_connection raise err _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 8080), timeout = None, source_address = None socket_options = [(6, 1, 1)] def create_connection( address: tuple[str, int], timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, source_address: tuple[str, int] | None = None, socket_options: _TYPE_SOCKET_OPTIONS | None = None, ) -> socket.socket: """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`socket.getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. """ host, port = address if host.startswith("["): host = host.strip("[]") err = None # Using the value from allowed_gai_family() in the context of getaddrinfo lets # us select whether to work with IPv4 DNS records, IPv6 records, or both. # The original create_connection function always returns all records. family = allowed_gai_family() try: host.encode("idna") except UnicodeError: raise LocationParseError(f"'{host}', label empty or too long") from None for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket.socket(af, socktype, proto) # If provided, set socket level options before connecting. _set_socket_options(sock, socket_options) if timeout is not _DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError The above exception was the direct cause of the following exception: self = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f959d9ae970> method = 'GET', url = '/demo', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic cm9ib3Q6dGVzdHBhc3N3b3Jk'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/demo', query=None, fragment=None) destination_scheme = None, conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False def urlopen( # type: ignore[override] self, method: str, url: str, body: _TYPE_BODY | None = None, headers: typing.Mapping[str, str] | None = None, retries: Retry | bool | int | None = None, redirect: bool = True, assert_same_host: bool = True, timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, pool_timeout: int | None = None, release_conn: bool | None = None, chunked: bool = False, body_pos: _TYPE_BODY_POSITION | None = None, preload_content: bool = True, decode_content: bool = True, **response_kw: typing.Any, ) -> BaseHTTPResponse: """ Get a connection from the pool and perform an HTTP request. This is the lowest level call for making a request, so you'll need to specify all the raw details. .. note:: More commonly, it's appropriate to use a convenience method such as :meth:`request`. .. note:: `release_conn` will only behave as expected if `preload_content=False` because we want to make `preload_content=False` the default behaviour someday soon without breaking backwards compatibility. :param method: HTTP request method (such as GET, POST, PUT, etc.) :param url: The URL to perform the request on. :param body: Data to send in the request body, either :class:`str`, :class:`bytes`, an iterable of :class:`str`/:class:`bytes`, or a file-like object. :param headers: Dictionary of custom headers to send, such as User-Agent, If-None-Match, etc. If None, pool headers are used. If provided, these headers completely replace any pool-specific headers. :param retries: Configure the number of retries to allow before raising a :class:`~urllib3.exceptions.MaxRetryError` exception. If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a :class:`~urllib3.util.retry.Retry` object for fine-grained control over different types of retries. Pass an integer number to retry connection errors that many times, but no other types of errors. Pass zero to never retry. If ``False``, then retries are disabled and any exception is raised immediately. Also, instead of raising a MaxRetryError on redirects, the redirect response will be returned. :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. :param redirect: If True, automatically handle redirects (status codes 301, 302, 303, 307, 308). Each redirect counts as a retry. Disabling retries will disable redirect, too. :param assert_same_host: If ``True``, will make sure that the host of the pool requests is consistent else will raise HostChangedError. When ``False``, you can use the pool on an HTTP proxy and request foreign hosts. :param timeout: If specified, overrides the default timeout for this one request. It may be a float (in seconds) or an instance of :class:`urllib3.util.Timeout`. :param pool_timeout: If set and the pool is set to block=True, then this method will block for ``pool_timeout`` seconds and raise EmptyPoolError if no connection is available within the time period. :param bool preload_content: If True, the response's body will be preloaded into memory. :param bool decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. :param release_conn: If False, then the urlopen call will not release the connection back into the pool once a response is received (but will release if you read the entire contents of the response such as when `preload_content=True`). This is useful if you're not preloading the response's content immediately. You will need to call ``r.release_conn()`` on the response ``r`` to return the connection back into the pool. If None, it takes the value of ``preload_content`` which defaults to ``True``. :param bool chunked: If True, urllib3 will send the body using chunked transfer encoding. Otherwise, urllib3 will send the body using the standard content-length form. Defaults to False. :param int body_pos: Position to seek to in file-like body in the event of a retry or redirect. Typically this won't need to be set because urllib3 will auto-populate the value when needed. """ parsed_url = parse_url(url) destination_scheme = parsed_url.scheme if headers is None: headers = self.headers if not isinstance(retries, Retry): retries = Retry.from_int(retries, redirect=redirect, default=self.retries) if release_conn is None: release_conn = preload_content # Check host if assert_same_host and not self.is_same_host(url): raise HostChangedError(self, url, retries) # Ensure that the URL we're connecting to is properly encoded if url.startswith("/"): url = to_str(_encode_target(url)) else: url = to_str(parsed_url.url) conn = None # Track whether `conn` needs to be released before # returning/raising/recursing. Update this variable if necessary, and # leave `release_conn` constant throughout the function. That way, if # the function recurses, the original value of `release_conn` will be # passed down into the recursive call, and its value will be respected. # # See issue #651 [1] for details. # # [1] <https://github.com/urllib3/urllib3/issues/651> release_this_conn = release_conn http_tunnel_required = connection_requires_http_tunnel( self.proxy, self.proxy_config, destination_scheme ) # Merge the proxy headers. Only done when not using HTTP CONNECT. We # have to copy the headers dict so we can safely change it without those # changes being reflected in anyone else's copy. if not http_tunnel_required: headers = headers.copy() # type: ignore[attr-defined] headers.update(self.proxy_headers) # type: ignore[union-attr] # Must keep the exception bound to a separate variable or else Python 3 # complains about UnboundLocalError. err = None # Keep track of whether we cleanly exited the except block. This # ensures we do proper cleanup in finally. clean_exit = False # Rewind body position, if needed. Record current position # for future rewinds in the event of a redirect/retry. body_pos = set_file_position(body, body_pos) try: # Request a connection from the queue. timeout_obj = self._get_timeout(timeout) conn = self._get_conn(timeout=pool_timeout) conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] # Is this a closed/new connection that requires CONNECT tunnelling? if self.proxy is not None and http_tunnel_required and conn.is_closed: try: self._prepare_proxy(conn) except (BaseSSLError, OSError, SocketTimeout) as e: self._raise_timeout( err=e, url=self.proxy.url, timeout_value=conn.timeout ) raise # If we're going to release the connection in ``finally:``, then # the response doesn't need to know about the connection. Otherwise # it will also try to release it and we'll have a double-release # mess. response_conn = conn if not release_conn else None # Make the request on the HTTPConnection object > response = self._make_request( conn, method, url, timeout=timeout_obj, body=body, headers=headers, chunked=chunked, retries=retries, response_conn=response_conn, preload_content=preload_content, decode_content=decode_content, **response_kw, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:789: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:495: in _make_request conn.request( .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:441: in request self.endheaders() .pixi/envs/default/lib/python3.8/http/client.py:1251: in endheaders self._send_output(message_body, encode_chunked=encode_chunked) .pixi/envs/default/lib/python3.8/http/client.py:1011: in _send_output self.send(msg) .pixi/envs/default/lib/python3.8/http/client.py:951: in send self.connect() .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:279: in connect self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <urllib3.connection.HTTPConnection object at 0x7f959d982ee0> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) except socket.gaierror as e: raise NameResolutionError(self.host, self, e) from e except SocketTimeout as e: raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e except OSError as e: > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e E urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f959d982ee0>: Failed to establish a new connection: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:214: NewConnectionError The above exception was the direct cause of the following exception: self = <requests.adapters.HTTPAdapter object at 0x7f959d9aef10> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: > resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:667: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:843: in urlopen retries = retries.increment( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/demo', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959d982ee0>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f959d9ae970> _stacktrace = <traceback object at 0x7f95f08fd280> def increment( self, method: str | None = None, url: str | None = None, response: BaseHTTPResponse | None = None, error: Exception | None = None, _pool: ConnectionPool | None = None, _stacktrace: TracebackType | None = None, ) -> Self: """Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.BaseHTTPResponse` :param Exception error: An error encountered during the request, or None if the response was received successfully. :return: A new ``Retry`` object. """ if self.total is False and error: # Disabled, indicate to re-raise the error. raise reraise(type(error), error, _stacktrace) total = self.total if total is not None: total -= 1 connect = self.connect read = self.read redirect = self.redirect status_count = self.status other = self.other cause = "unknown" status = None redirect_location = None if error and self._is_connection_error(error): # Connect retry? if connect is False: raise reraise(type(error), error, _stacktrace) elif connect is not None: connect -= 1 elif error and self._is_read_error(error): # Read retry? if read is False or method is None or not self._is_method_retryable(method): raise reraise(type(error), error, _stacktrace) elif read is not None: read -= 1 elif error: # Other retry? if other is not None: other -= 1 elif response and response.get_redirect_location(): # Redirect retry? if redirect is not None: redirect -= 1 cause = "too many redirects" response_redirect_location = response.get_redirect_location() if response_redirect_location: redirect_location = response_redirect_location status = response.status else: # Incrementing because of a server error like a 500 in # status_forcelist and the given method is in the allowed_methods cause = ResponseError.GENERIC_ERROR if response and response.status: if status_count is not None: status_count -= 1 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) status = response.status history = self.history + ( RequestHistory(method, url, error, status, redirect_location), ) new_retry = self.new( total=total, connect=connect, read=read, redirect=redirect, status=status_count, other=other, history=history, ) if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959d982ee0>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: mock_home = <MagicMock name='home' id='140280555054896'> mock_getuser = <MagicMock name='getuser' id='140280566273408'> mock_getpass = <MagicMock name='getpass' id='140281967330544'> @patch("slic.utils.elog.getpass") @patch("slic.utils.elog.getuser") @patch("slic.utils.elog.Path.home") def test_get_default_elog_with_path_home(mock_home, mock_getuser, mock_getpass): fake_user = "robot" fake_pw = "testpassword" mock_getuser.return_value = fake_user mock_getpass.return_value = fake_pw # fallback safety tmp_home = Path("/tmp/fake_home_for_robot") tmp_home.mkdir(parents=True, exist_ok=True) pw_file = tmp_home / ".elog_psi" pw_file.write_text(fake_pw) mock_home.return_value = tmp_home url = "http://localhost:8080/demo" try: elog_instance, returned_user = get_default_elog_instance(url) assert returned_user == fake_user assert hasattr(elog_instance, "post") > r = requests.get(url, auth=(fake_user, fake_pw)) tests/test_utils_elog.py:87: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:73: in get return request("get", url, params=params, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <requests.adapters.HTTPAdapter object at 0x7f959d9aef10> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) except (ProtocolError, OSError) as err: raise ConnectionError(err, request=request) except MaxRetryError as e: if isinstance(e.reason, ConnectTimeoutError): # TODO: Remove this in 3.0.0: see #2811 if not isinstance(e.reason, NewConnectionError): raise ConnectTimeout(e, request=request) if isinstance(e.reason, ResponseError): raise RetryError(e, request=request) if isinstance(e.reason, _ProxyError): raise ProxyError(e, request=request) if isinstance(e.reason, _SSLError): # This branch is for urllib3 v1.22 and later. raise SSLError(e, request=request) > raise ConnectionError(e, request=request) E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959d982ee0>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:700: ConnectionError📌 Teardown phase
duration:
0.00028944481164216995outcome:
passed
↳ Function: test_post
-
❌ Test 162
📌 Setup phase
duration:
0.0001510828733444214outcome:
passed📌 Call phase
duration:
0.010783564299345016outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py lineno: 601 message: elog.logbook_exceptions.LogbookServerProblem: No response from the logbook server. Details: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=SubmitNone (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959ccb6880>: Failed to establish a new connection: [Errno 111] Connection refused'))traceback:
- path: tests/test_utils_elog.py lineno: 102 message: None - path: slic/utils/elog.py lineno: 29 message: in post - path: .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py lineno: 307 message: in post - path: .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py lineno: 601 message: LogbookServerProblemlongrepr:
self = <urllib3.connection.HTTPConnection object at 0x7f959ca7b880> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: > sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:85: in create_connection raise err _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 8080), timeout = None, source_address = None socket_options = [(6, 1, 1)] def create_connection( address: tuple[str, int], timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, source_address: tuple[str, int] | None = None, socket_options: _TYPE_SOCKET_OPTIONS | None = None, ) -> socket.socket: """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`socket.getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. """ host, port = address if host.startswith("["): host = host.strip("[]") err = None # Using the value from allowed_gai_family() in the context of getaddrinfo lets # us select whether to work with IPv4 DNS records, IPv6 records, or both. # The original create_connection function always returns all records. family = allowed_gai_family() try: host.encode("idna") except UnicodeError: raise LocationParseError(f"'{host}', label empty or too long") from None for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket.socket(af, socktype, proto) # If provided, set socket level options before connecting. _set_socket_options(sock, socket_options) if timeout is not _DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError The above exception was the direct cause of the following exception: self = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f959ca7b1c0> method = 'POST', url = '/demo/?cmd=Submit' body = b'--a2643d5879220844bda7cc99b3c2b483\r\nContent-Disposition: form-data; name="Author"\r\n\r\nrobot\r\n--a2643d58792208...-Disposition: form-data; name="Text"; filename=""\r\n\r\nThis is a message\r\n--a2643d5879220844bda7cc99b3c2b483--\r\n' headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '735', 'Content-Type': 'multipart/form-data; boundary=a2643d5879220844bda7cc99b3c2b483'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/demo/', query='cmd=Submit', fragment=None) destination_scheme = None, conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False def urlopen( # type: ignore[override] self, method: str, url: str, body: _TYPE_BODY | None = None, headers: typing.Mapping[str, str] | None = None, retries: Retry | bool | int | None = None, redirect: bool = True, assert_same_host: bool = True, timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, pool_timeout: int | None = None, release_conn: bool | None = None, chunked: bool = False, body_pos: _TYPE_BODY_POSITION | None = None, preload_content: bool = True, decode_content: bool = True, **response_kw: typing.Any, ) -> BaseHTTPResponse: """ Get a connection from the pool and perform an HTTP request. This is the lowest level call for making a request, so you'll need to specify all the raw details. .. note:: More commonly, it's appropriate to use a convenience method such as :meth:`request`. .. note:: `release_conn` will only behave as expected if `preload_content=False` because we want to make `preload_content=False` the default behaviour someday soon without breaking backwards compatibility. :param method: HTTP request method (such as GET, POST, PUT, etc.) :param url: The URL to perform the request on. :param body: Data to send in the request body, either :class:`str`, :class:`bytes`, an iterable of :class:`str`/:class:`bytes`, or a file-like object. :param headers: Dictionary of custom headers to send, such as User-Agent, If-None-Match, etc. If None, pool headers are used. If provided, these headers completely replace any pool-specific headers. :param retries: Configure the number of retries to allow before raising a :class:`~urllib3.exceptions.MaxRetryError` exception. If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a :class:`~urllib3.util.retry.Retry` object for fine-grained control over different types of retries. Pass an integer number to retry connection errors that many times, but no other types of errors. Pass zero to never retry. If ``False``, then retries are disabled and any exception is raised immediately. Also, instead of raising a MaxRetryError on redirects, the redirect response will be returned. :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. :param redirect: If True, automatically handle redirects (status codes 301, 302, 303, 307, 308). Each redirect counts as a retry. Disabling retries will disable redirect, too. :param assert_same_host: If ``True``, will make sure that the host of the pool requests is consistent else will raise HostChangedError. When ``False``, you can use the pool on an HTTP proxy and request foreign hosts. :param timeout: If specified, overrides the default timeout for this one request. It may be a float (in seconds) or an instance of :class:`urllib3.util.Timeout`. :param pool_timeout: If set and the pool is set to block=True, then this method will block for ``pool_timeout`` seconds and raise EmptyPoolError if no connection is available within the time period. :param bool preload_content: If True, the response's body will be preloaded into memory. :param bool decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. :param release_conn: If False, then the urlopen call will not release the connection back into the pool once a response is received (but will release if you read the entire contents of the response such as when `preload_content=True`). This is useful if you're not preloading the response's content immediately. You will need to call ``r.release_conn()`` on the response ``r`` to return the connection back into the pool. If None, it takes the value of ``preload_content`` which defaults to ``True``. :param bool chunked: If True, urllib3 will send the body using chunked transfer encoding. Otherwise, urllib3 will send the body using the standard content-length form. Defaults to False. :param int body_pos: Position to seek to in file-like body in the event of a retry or redirect. Typically this won't need to be set because urllib3 will auto-populate the value when needed. """ parsed_url = parse_url(url) destination_scheme = parsed_url.scheme if headers is None: headers = self.headers if not isinstance(retries, Retry): retries = Retry.from_int(retries, redirect=redirect, default=self.retries) if release_conn is None: release_conn = preload_content # Check host if assert_same_host and not self.is_same_host(url): raise HostChangedError(self, url, retries) # Ensure that the URL we're connecting to is properly encoded if url.startswith("/"): url = to_str(_encode_target(url)) else: url = to_str(parsed_url.url) conn = None # Track whether `conn` needs to be released before # returning/raising/recursing. Update this variable if necessary, and # leave `release_conn` constant throughout the function. That way, if # the function recurses, the original value of `release_conn` will be # passed down into the recursive call, and its value will be respected. # # See issue #651 [1] for details. # # [1] <https://github.com/urllib3/urllib3/issues/651> release_this_conn = release_conn http_tunnel_required = connection_requires_http_tunnel( self.proxy, self.proxy_config, destination_scheme ) # Merge the proxy headers. Only done when not using HTTP CONNECT. We # have to copy the headers dict so we can safely change it without those # changes being reflected in anyone else's copy. if not http_tunnel_required: headers = headers.copy() # type: ignore[attr-defined] headers.update(self.proxy_headers) # type: ignore[union-attr] # Must keep the exception bound to a separate variable or else Python 3 # complains about UnboundLocalError. err = None # Keep track of whether we cleanly exited the except block. This # ensures we do proper cleanup in finally. clean_exit = False # Rewind body position, if needed. Record current position # for future rewinds in the event of a redirect/retry. body_pos = set_file_position(body, body_pos) try: # Request a connection from the queue. timeout_obj = self._get_timeout(timeout) conn = self._get_conn(timeout=pool_timeout) conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] # Is this a closed/new connection that requires CONNECT tunnelling? if self.proxy is not None and http_tunnel_required and conn.is_closed: try: self._prepare_proxy(conn) except (BaseSSLError, OSError, SocketTimeout) as e: self._raise_timeout( err=e, url=self.proxy.url, timeout_value=conn.timeout ) raise # If we're going to release the connection in ``finally:``, then # the response doesn't need to know about the connection. Otherwise # it will also try to release it and we'll have a double-release # mess. response_conn = conn if not release_conn else None # Make the request on the HTTPConnection object > response = self._make_request( conn, method, url, timeout=timeout_obj, body=body, headers=headers, chunked=chunked, retries=retries, response_conn=response_conn, preload_content=preload_content, decode_content=decode_content, **response_kw, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:789: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:495: in _make_request conn.request( .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:441: in request self.endheaders() .pixi/envs/default/lib/python3.8/http/client.py:1251: in endheaders self._send_output(message_body, encode_chunked=encode_chunked) .pixi/envs/default/lib/python3.8/http/client.py:1011: in _send_output self.send(msg) .pixi/envs/default/lib/python3.8/http/client.py:951: in send self.connect() .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:279: in connect self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <urllib3.connection.HTTPConnection object at 0x7f959ca7b880> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) except socket.gaierror as e: raise NameResolutionError(self.host, self, e) from e except SocketTimeout as e: raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e except OSError as e: > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e E urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f959ca7b880>: Failed to establish a new connection: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:214: NewConnectionError The above exception was the direct cause of the following exception: self = <requests.adapters.HTTPAdapter object at 0x7f959cb19130> request = <PreparedRequest [POST]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = False cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: > resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:667: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:843: in urlopen retries = retries.increment( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'POST', url = '/demo/?cmd=Submit', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959ca7b880>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f959ca7b1c0> _stacktrace = <traceback object at 0x7f959cc68540> def increment( self, method: str | None = None, url: str | None = None, response: BaseHTTPResponse | None = None, error: Exception | None = None, _pool: ConnectionPool | None = None, _stacktrace: TracebackType | None = None, ) -> Self: """Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.BaseHTTPResponse` :param Exception error: An error encountered during the request, or None if the response was received successfully. :return: A new ``Retry`` object. """ if self.total is False and error: # Disabled, indicate to re-raise the error. raise reraise(type(error), error, _stacktrace) total = self.total if total is not None: total -= 1 connect = self.connect read = self.read redirect = self.redirect status_count = self.status other = self.other cause = "unknown" status = None redirect_location = None if error and self._is_connection_error(error): # Connect retry? if connect is False: raise reraise(type(error), error, _stacktrace) elif connect is not None: connect -= 1 elif error and self._is_read_error(error): # Read retry? if read is False or method is None or not self._is_method_retryable(method): raise reraise(type(error), error, _stacktrace) elif read is not None: read -= 1 elif error: # Other retry? if other is not None: other -= 1 elif response and response.get_redirect_location(): # Redirect retry? if redirect is not None: redirect -= 1 cause = "too many redirects" response_redirect_location = response.get_redirect_location() if response_redirect_location: redirect_location = response_redirect_location status = response.status else: # Incrementing because of a server error like a 500 in # status_forcelist and the given method is in the allowed_methods cause = ResponseError.GENERIC_ERROR if response and response.status: if status_count is not None: status_count -= 1 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) status = response.status history = self.history + ( RequestHistory(method, url, error, status, redirect_location), ) new_retry = self.new( total=total, connect=connect, read=read, redirect=redirect, status=status_count, other=other, history=history, ) if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=Submit (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959ca7b880>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: self = <elog.logbook.Logbook object at 0x7f959cb19e20> message = 'This is a message', msg_id = None, reply = False attributes = {'Author': 'robot', 'When': 1754559666, 'cmd': 'Submit', 'exp': 'demo', ...} attachments = [], suppress_email_notification = False, encoding = None timeout = None, kwargs = {'Author': 'robot'} new_attachment_list = [('Text', ('', b'This is a message'))] objects_to_close = [] attributes_to_edit = {'Author': b'robot', 'When': 1754559666, 'cmd': b'Submit', 'exp': b'demo', ...} def post(self, message, msg_id=None, reply=False, attributes=None, attachments=None, suppress_email_notification=False, encoding=None, timeout=None, **kwargs): """ Posts message to the logbook. If msg_id is not specified new message will be created, otherwise existing message will be edited, or a reply (if reply=True) to it will be created. This method returns the msg_id of the newly created message. :param message: string with message text :param msg_id: ID number of message to edit or reply. If not specified new message is created. :param reply: If 'True' reply to existing message is created instead of editing it :param attributes: Dictionary of attributes. Following attributes are used internally by the elog and will be ignored: Text, Date, Encoding, Reply to, In reply to, Locked by, Attachment :param attachments: list of: - file like objects which read() will return bytes (if file_like_object.name is not defined, default name "attachment<i>" will be used. - paths to the files All items will be appended as attachment to the elog entry. In case of unknown attachment an exception LogbookInvalidAttachment will be raised. :param suppress_email_notification: If set to True or 1, E-Mail notification will be suppressed, defaults to False. :param encoding: Defines encoding of the message. Can be: 'plain' -> plain text, 'html'->html-text, 'ELCode' --> elog formatting syntax :param timeout: Define the timeout to be used by the post request. Its value is directly passed to the requests post. Use None to disable the request timeout. :param kwargs: Anything in the kwargs will be interpreted as attribute. e.g.: logbook.post('Test text', Author='Rok Vintar), "Author" will be sent as an attribute. If named same as one of the attributes defined in "attributes", kwargs will have priority. :return: msg_id """ attributes = attributes or {} attributes = {**attributes, **kwargs} # kwargs as attributes with higher priority attachments = attachments or [] if encoding is not None: if encoding not in ['plain', 'HTML', 'ELCode']: raise LogbookMessageRejected('Invalid message encoding. Valid options: plain, HTML, ELCode.') attributes['Encoding'] = encoding if suppress_email_notification: attributes["suppress"] = 1 # THE ATTACHMENT STRATEGY WHEN DEALING WITH POST MODIFICATION # # 1. Does the message on the server have already attachments? # 1.1 - We read the message getting the existing attachment list. # 1.2 - Add to the attributes dictionary one line for each attachment like this: # attributes['attachmentN'] = timestamped_filename_name # # 2. Do we have new attachments? # 2.1 - Those are in the new_attachment_list. This is a list of this type: # [ ('attfileN', ('filename', fileobject)) ] # 2.2 - We need to loop over all the new attachments: # 2.2.1 - Does a file already on the server with the same name exist? # 2.2.1.1 - No: OK. Then we go ahead with the next attachment. # 2.2.1.2 - Yes: # 2.2.1.2.1 - Are the two files identical? # 2.2.1.2.1.1 - Yes: then we remove this current entry from the new_attachment_list and we leave the one # already on server. # 2.2.1.2.1.2 - No: # 2.2.1.2.1.2.1 - Then the file has been update. # 2.2.1.2.1.2.2 - We need to remove the file on server first (using special post) # 2.2.1.2.1.2.3 - We have to remove the old attachment from the attributes dictionary. # if attachments: # here we accomplish point 2.1. # new_attachment_list is something like [ ('attfileN', ('filename', fileobject)) ] new_attachment_list, objects_to_close = self._prepare_attachments(attachments) else: objects_to_close = list() new_attachment_list = list() attributes_to_edit = dict() if msg_id: # Message exists, we can continue if reply: # Verify that there is a message on the server, otherwise do not reply to it! self._check_if_message_on_server(msg_id) # raises exception in case of none existing message attributes['reply_to'] = str(msg_id) else: # Edit existing attributes['edit_id'] = str(msg_id) attributes['skiplock'] = '1' # here we accomplish point 1.1. # existing_attachments_list is something like: # [ 'https://elog.url.com/logbook/timestamped_filename' ] msg_to_edit, attributes_to_edit, existing_attachments_list = self.read(msg_id) for attribute, data in attributes.items(): new_data = attributes.get(attribute) if new_data is not None: attributes_to_edit[attribute] = new_data i = 0 existing_attachments_filename_list = list() for attachment in existing_attachments_list: # here we accomplish point 1.2. We strip the timestamped_filename from the whole URL. attributes_to_edit[f'attachment{i}'] = os.path.basename(attachment) existing_attachments_filename_list.append(os.path.basename(attachment)[14:]) i += 1 # let's accomplish 2.2. Loop over all new attachment duplicate_attachment_list = list() for new_attachment in new_attachment_list: # the new_attachment_list is something like: # [ ('attfileN', ('filename', fileobject)) ] new_attachment_filename = new_attachment[1][0] if new_attachment_filename in existing_attachments_filename_list: # a file with the same name existing already on the server. # we need to check if the two files are the same. # read the content of the new file new_attachment_content = new_attachment[1][1].read() # don't forget to reset the fileobj to the beginning of the file new_attachment[1][1].seek(0) # get the existing attachment content attachment_index = existing_attachments_filename_list.index(new_attachment_filename) existing_attachment_content = self.download_attachment( url=existing_attachments_list[attachment_index], timeout=timeout ) # check if the two contents are the same if new_attachment_content == existing_attachment_content: # yes. then we don't upload a second copy. we remove the current entry from the list duplicate_attachment_list.append(new_attachment) else: # no. they are not the same file. we will replace the existing file with the new one # first: we need to remove the attachment from the server using the dedicated method self.delete_attachment(msg_id, attributes=attributes_to_edit, attachment_id=attachment_index, timeout=timeout, text=msg_to_edit) # now we can remove this attachment from the auxiliary lists. existing_attachments_filename_list.pop(attachment_index) existing_attachments_list.pop(attachment_index) # now we need to rebuild the attributes dictionary for the part concerning the attachments. # we remove all of them first keys_to_be_removed = list() for key in attributes_to_edit.keys(): if key.startswith('attachment'): keys_to_be_removed.append(key) if key.startswith('delatt'): keys_to_be_removed.append(key) for key in keys_to_be_removed: del attributes_to_edit[key] # now we rebuild it for i, attachment in enumerate(existing_attachments_list): attributes_to_edit[f'attachment{i}'] = os.path.basename(attachment) # remove all duplicate attachments from the new_attachment_list for attach in duplicate_attachment_list: new_attachment_list.remove(attach) else: # As we create a new message, specify creation time if not already specified in attributes if 'When' not in attributes: attributes['When'] = int(datetime.now().timestamp()) if not attributes_to_edit: attributes_to_edit = attributes # Remove any attributes that should not be sent _remove_reserved_attributes(attributes_to_edit) # Make requests module think that Text is a "file". This is the only way to force requests to send data as # multipart/form-data even if there are no attachments. Elog understands only multipart/form-data new_attachment_list.append(('Text', ('', message.encode('iso-8859-1')))) # Base attributes are common to all messages self._add_base_msg_attributes(attributes_to_edit) # Keys in attributes cannot have certain characters like whitespaces or dashes for the http request attributes_to_edit = _replace_special_characters_in_attribute_keys(attributes_to_edit) # All string values in the attributes must be encoded in latin1 attributes_to_edit = _encode_values(attributes_to_edit) try: > response = requests.post(self._url, data=attributes_to_edit, files=new_attachment_list, allow_redirects=False, verify=False, timeout=timeout) .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <requests.adapters.HTTPAdapter object at 0x7f959cb19130> request = <PreparedRequest [POST]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = False cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) except (ProtocolError, OSError) as err: raise ConnectionError(err, request=request) except MaxRetryError as e: if isinstance(e.reason, ConnectTimeoutError): # TODO: Remove this in 3.0.0: see #2811 if not isinstance(e.reason, NewConnectionError): raise ConnectTimeout(e, request=request) if isinstance(e.reason, ResponseError): raise RetryError(e, request=request) if isinstance(e.reason, _ProxyError): raise ProxyError(e, request=request) if isinstance(e.reason, _SSLError): # This branch is for urllib3 v1.22 and later. raise SSLError(e, request=request) > raise ConnectionError(e, request=request) E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=Submit (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959ca7b880>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:700: ConnectionError During handling of the above exception, another exception occurred: self = <urllib3.connection.HTTPConnection object at 0x7f959ccb6880> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: > sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:85: in create_connection raise err _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 8080), timeout = None, source_address = None socket_options = [(6, 1, 1)] def create_connection( address: tuple[str, int], timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, source_address: tuple[str, int] | None = None, socket_options: _TYPE_SOCKET_OPTIONS | None = None, ) -> socket.socket: """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`socket.getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. """ host, port = address if host.startswith("["): host = host.strip("[]") err = None # Using the value from allowed_gai_family() in the context of getaddrinfo lets # us select whether to work with IPv4 DNS records, IPv6 records, or both. # The original create_connection function always returns all records. family = allowed_gai_family() try: host.encode("idna") except UnicodeError: raise LocationParseError(f"'{host}', label empty or too long") from None for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket.socket(af, socktype, proto) # If provided, set socket level options before connecting. _set_socket_options(sock, socket_options) if timeout is not _DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError The above exception was the direct cause of the following exception: self = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f959ca7be20> method = 'GET', url = '/demo/?cmd=SubmitNone', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Accept': '*/*', 'Connection': 'keep-alive', 'Cookie': 'unm=robot;upwd=me1T.2jUUqQNa1wNuey9zNBOmOa4eILOaPb.ZSZjpn4;'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/demo/', query='cmd=SubmitNone', fragment=None) destination_scheme = None, conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False def urlopen( # type: ignore[override] self, method: str, url: str, body: _TYPE_BODY | None = None, headers: typing.Mapping[str, str] | None = None, retries: Retry | bool | int | None = None, redirect: bool = True, assert_same_host: bool = True, timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, pool_timeout: int | None = None, release_conn: bool | None = None, chunked: bool = False, body_pos: _TYPE_BODY_POSITION | None = None, preload_content: bool = True, decode_content: bool = True, **response_kw: typing.Any, ) -> BaseHTTPResponse: """ Get a connection from the pool and perform an HTTP request. This is the lowest level call for making a request, so you'll need to specify all the raw details. .. note:: More commonly, it's appropriate to use a convenience method such as :meth:`request`. .. note:: `release_conn` will only behave as expected if `preload_content=False` because we want to make `preload_content=False` the default behaviour someday soon without breaking backwards compatibility. :param method: HTTP request method (such as GET, POST, PUT, etc.) :param url: The URL to perform the request on. :param body: Data to send in the request body, either :class:`str`, :class:`bytes`, an iterable of :class:`str`/:class:`bytes`, or a file-like object. :param headers: Dictionary of custom headers to send, such as User-Agent, If-None-Match, etc. If None, pool headers are used. If provided, these headers completely replace any pool-specific headers. :param retries: Configure the number of retries to allow before raising a :class:`~urllib3.exceptions.MaxRetryError` exception. If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a :class:`~urllib3.util.retry.Retry` object for fine-grained control over different types of retries. Pass an integer number to retry connection errors that many times, but no other types of errors. Pass zero to never retry. If ``False``, then retries are disabled and any exception is raised immediately. Also, instead of raising a MaxRetryError on redirects, the redirect response will be returned. :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. :param redirect: If True, automatically handle redirects (status codes 301, 302, 303, 307, 308). Each redirect counts as a retry. Disabling retries will disable redirect, too. :param assert_same_host: If ``True``, will make sure that the host of the pool requests is consistent else will raise HostChangedError. When ``False``, you can use the pool on an HTTP proxy and request foreign hosts. :param timeout: If specified, overrides the default timeout for this one request. It may be a float (in seconds) or an instance of :class:`urllib3.util.Timeout`. :param pool_timeout: If set and the pool is set to block=True, then this method will block for ``pool_timeout`` seconds and raise EmptyPoolError if no connection is available within the time period. :param bool preload_content: If True, the response's body will be preloaded into memory. :param bool decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. :param release_conn: If False, then the urlopen call will not release the connection back into the pool once a response is received (but will release if you read the entire contents of the response such as when `preload_content=True`). This is useful if you're not preloading the response's content immediately. You will need to call ``r.release_conn()`` on the response ``r`` to return the connection back into the pool. If None, it takes the value of ``preload_content`` which defaults to ``True``. :param bool chunked: If True, urllib3 will send the body using chunked transfer encoding. Otherwise, urllib3 will send the body using the standard content-length form. Defaults to False. :param int body_pos: Position to seek to in file-like body in the event of a retry or redirect. Typically this won't need to be set because urllib3 will auto-populate the value when needed. """ parsed_url = parse_url(url) destination_scheme = parsed_url.scheme if headers is None: headers = self.headers if not isinstance(retries, Retry): retries = Retry.from_int(retries, redirect=redirect, default=self.retries) if release_conn is None: release_conn = preload_content # Check host if assert_same_host and not self.is_same_host(url): raise HostChangedError(self, url, retries) # Ensure that the URL we're connecting to is properly encoded if url.startswith("/"): url = to_str(_encode_target(url)) else: url = to_str(parsed_url.url) conn = None # Track whether `conn` needs to be released before # returning/raising/recursing. Update this variable if necessary, and # leave `release_conn` constant throughout the function. That way, if # the function recurses, the original value of `release_conn` will be # passed down into the recursive call, and its value will be respected. # # See issue #651 [1] for details. # # [1] <https://github.com/urllib3/urllib3/issues/651> release_this_conn = release_conn http_tunnel_required = connection_requires_http_tunnel( self.proxy, self.proxy_config, destination_scheme ) # Merge the proxy headers. Only done when not using HTTP CONNECT. We # have to copy the headers dict so we can safely change it without those # changes being reflected in anyone else's copy. if not http_tunnel_required: headers = headers.copy() # type: ignore[attr-defined] headers.update(self.proxy_headers) # type: ignore[union-attr] # Must keep the exception bound to a separate variable or else Python 3 # complains about UnboundLocalError. err = None # Keep track of whether we cleanly exited the except block. This # ensures we do proper cleanup in finally. clean_exit = False # Rewind body position, if needed. Record current position # for future rewinds in the event of a redirect/retry. body_pos = set_file_position(body, body_pos) try: # Request a connection from the queue. timeout_obj = self._get_timeout(timeout) conn = self._get_conn(timeout=pool_timeout) conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] # Is this a closed/new connection that requires CONNECT tunnelling? if self.proxy is not None and http_tunnel_required and conn.is_closed: try: self._prepare_proxy(conn) except (BaseSSLError, OSError, SocketTimeout) as e: self._raise_timeout( err=e, url=self.proxy.url, timeout_value=conn.timeout ) raise # If we're going to release the connection in ``finally:``, then # the response doesn't need to know about the connection. Otherwise # it will also try to release it and we'll have a double-release # mess. response_conn = conn if not release_conn else None # Make the request on the HTTPConnection object > response = self._make_request( conn, method, url, timeout=timeout_obj, body=body, headers=headers, chunked=chunked, retries=retries, response_conn=response_conn, preload_content=preload_content, decode_content=decode_content, **response_kw, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:789: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:495: in _make_request conn.request( .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:441: in request self.endheaders() .pixi/envs/default/lib/python3.8/http/client.py:1251: in endheaders self._send_output(message_body, encode_chunked=encode_chunked) .pixi/envs/default/lib/python3.8/http/client.py:1011: in _send_output self.send(msg) .pixi/envs/default/lib/python3.8/http/client.py:951: in send self.connect() .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:279: in connect self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <urllib3.connection.HTTPConnection object at 0x7f959ccb6880> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) except socket.gaierror as e: raise NameResolutionError(self.host, self, e) from e except SocketTimeout as e: raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e except OSError as e: > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e E urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f959ccb6880>: Failed to establish a new connection: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:214: NewConnectionError The above exception was the direct cause of the following exception: self = <requests.adapters.HTTPAdapter object at 0x7f959ca7bd90> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = False cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: > resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:667: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:843: in urlopen retries = retries.increment( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/demo/?cmd=SubmitNone', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959ccb6880>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f959ca7be20> _stacktrace = <traceback object at 0x7f959cc6c640> def increment( self, method: str | None = None, url: str | None = None, response: BaseHTTPResponse | None = None, error: Exception | None = None, _pool: ConnectionPool | None = None, _stacktrace: TracebackType | None = None, ) -> Self: """Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.BaseHTTPResponse` :param Exception error: An error encountered during the request, or None if the response was received successfully. :return: A new ``Retry`` object. """ if self.total is False and error: # Disabled, indicate to re-raise the error. raise reraise(type(error), error, _stacktrace) total = self.total if total is not None: total -= 1 connect = self.connect read = self.read redirect = self.redirect status_count = self.status other = self.other cause = "unknown" status = None redirect_location = None if error and self._is_connection_error(error): # Connect retry? if connect is False: raise reraise(type(error), error, _stacktrace) elif connect is not None: connect -= 1 elif error and self._is_read_error(error): # Read retry? if read is False or method is None or not self._is_method_retryable(method): raise reraise(type(error), error, _stacktrace) elif read is not None: read -= 1 elif error: # Other retry? if other is not None: other -= 1 elif response and response.get_redirect_location(): # Redirect retry? if redirect is not None: redirect -= 1 cause = "too many redirects" response_redirect_location = response.get_redirect_location() if response_redirect_location: redirect_location = response_redirect_location status = response.status else: # Incrementing because of a server error like a 500 in # status_forcelist and the given method is in the allowed_methods cause = ResponseError.GENERIC_ERROR if response and response.status: if status_count is not None: status_count -= 1 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) status = response.status history = self.history + ( RequestHistory(method, url, error, status, redirect_location), ) new_retry = self.new( total=total, connect=connect, read=read, redirect=redirect, status=status_count, other=other, history=history, ) if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=SubmitNone (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959ccb6880>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: self = <elog.logbook.Logbook object at 0x7f959cb19e20>, msg_id = None timeout = None def _check_if_message_on_server(self, msg_id, timeout=None): """Try to load page for specific message. If there is a html tag like <td class="errormsg"> then there is no such message. :param msg_id: ID of message to be checked :params timeout: The value of timeout to be passed to the get request :return: """ request_headers = dict() if self._user or self._password: request_headers['Cookie'] = self._make_user_and_pswd_cookie() try: > response = requests.get(self._url + str(msg_id), headers=request_headers, allow_redirects=False, verify=False, timeout=timeout) .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py:581: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:73: in get return request("get", url, params=params, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <requests.adapters.HTTPAdapter object at 0x7f959ca7bd90> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = False cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) except (ProtocolError, OSError) as err: raise ConnectionError(err, request=request) except MaxRetryError as e: if isinstance(e.reason, ConnectTimeoutError): # TODO: Remove this in 3.0.0: see #2811 if not isinstance(e.reason, NewConnectionError): raise ConnectTimeout(e, request=request) if isinstance(e.reason, ResponseError): raise RetryError(e, request=request) if isinstance(e.reason, _ProxyError): raise ProxyError(e, request=request) if isinstance(e.reason, _SSLError): # This branch is for urllib3 v1.22 and later. raise SSLError(e, request=request) > raise ConnectionError(e, request=request) E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=SubmitNone (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959ccb6880>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:700: ConnectionError During handling of the above exception, another exception occurred: def test_post(): elog = get_test_elog() title = "AUTHOR_OVERRIDE_TEST" text = "This is a message" author = "robot" > elog.post(text, Author=author) tests/test_utils_elog.py:102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ slic/utils/elog.py:29: in post return self._log.post(*args, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py:307: in post self._check_if_message_on_server(msg_id) # raises exceptions if no message or no response from server _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <elog.logbook.Logbook object at 0x7f959cb19e20>, msg_id = None timeout = None def _check_if_message_on_server(self, msg_id, timeout=None): """Try to load page for specific message. If there is a html tag like <td class="errormsg"> then there is no such message. :param msg_id: ID of message to be checked :params timeout: The value of timeout to be passed to the get request :return: """ request_headers = dict() if self._user or self._password: request_headers['Cookie'] = self._make_user_and_pswd_cookie() try: response = requests.get(self._url + str(msg_id), headers=request_headers, allow_redirects=False, verify=False, timeout=timeout) # If there is no message code 200 will be returned (OK) and _validate_response will not recognise it # but there will be some error in the html code. resp_message, resp_headers, resp_msg_id = _validate_response(response) # If there is no message, code 200 will be returned (OK) but there will be some error indication in # the html code. if re.findall('<td.*?class="errormsg".*?>.*?</td>', resp_message.decode('utf-8', 'ignore'), flags=re.DOTALL): raise LogbookInvalidMessageID('Message with ID: ' + str(msg_id) + ' does not exist on logbook.') except requests.Timeout as e: # Catch here a timeout o the post request. # Raise the logbook exception and let the user handle it raise LogbookServerTimeout('{0} method cannot be completed because of a network timeout:\n' + '{1}'.format(sys._getframe().f_code.co_name, e)) except requests.RequestException as e: > raise LogbookServerProblem('No response from the logbook server.\nDetails: ' + '{0}'.format(e)) E elog.logbook_exceptions.LogbookServerProblem: No response from the logbook server. E Details: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=SubmitNone (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959ccb6880>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py:601: LogbookServerProblem📌 Teardown phase
duration:
0.0003216918557882309outcome:
passed
↳ Function: test_screenshot
-
❌ Test 163
📌 Setup phase
duration:
0.00015647616237401962outcome:
passed📌 Call phase
duration:
0.009548977017402649outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py lineno: 601 message: elog.logbook_exceptions.LogbookServerProblem: No response from the logbook server. Details: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=SubmitNone (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959c980c40>: Failed to establish a new connection: [Errno 111] Connection refused'))traceback:
- path: tests/test_utils_elog.py lineno: 123 message: None - path: slic/utils/elog.py lineno: 37 message: in screenshot - path: slic/utils/elog.py lineno: 29 message: in post - path: .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py lineno: 307 message: in post - path: .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py lineno: 601 message: LogbookServerProblemlongrepr:
self = <urllib3.connection.HTTPConnection object at 0x7f959c980d60> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: > sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:85: in create_connection raise err _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 8080), timeout = None, source_address = None socket_options = [(6, 1, 1)] def create_connection( address: tuple[str, int], timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, source_address: tuple[str, int] | None = None, socket_options: _TYPE_SOCKET_OPTIONS | None = None, ) -> socket.socket: """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`socket.getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. """ host, port = address if host.startswith("["): host = host.strip("[]") err = None # Using the value from allowed_gai_family() in the context of getaddrinfo lets # us select whether to work with IPv4 DNS records, IPv6 records, or both. # The original create_connection function always returns all records. family = allowed_gai_family() try: host.encode("idna") except UnicodeError: raise LocationParseError(f"'{host}', label empty or too long") from None for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket.socket(af, socktype, proto) # If provided, set socket level options before connecting. _set_socket_options(sock, socket_options) if timeout is not _DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError The above exception was the direct cause of the following exception: self = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f959d5515b0> method = 'POST', url = '/demo/?cmd=Submit' body = b'--f9d82739e90aa641b63f194e8caab528\r\nContent-Disposition: form-data; name="Author"\r\n\r\nrobot\r\n--f9d82739e90aa6...-data; name="Text"; filename=""\r\n\r\nSCREENSHOT_INTEGRATION_TEST_MSG_456\r\n--f9d82739e90aa641b63f194e8caab528--\r\n' headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '885', 'Content-Type': 'multipart/form-data; boundary=f9d82739e90aa641b63f194e8caab528'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/demo/', query='cmd=Submit', fragment=None) destination_scheme = None, conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False def urlopen( # type: ignore[override] self, method: str, url: str, body: _TYPE_BODY | None = None, headers: typing.Mapping[str, str] | None = None, retries: Retry | bool | int | None = None, redirect: bool = True, assert_same_host: bool = True, timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, pool_timeout: int | None = None, release_conn: bool | None = None, chunked: bool = False, body_pos: _TYPE_BODY_POSITION | None = None, preload_content: bool = True, decode_content: bool = True, **response_kw: typing.Any, ) -> BaseHTTPResponse: """ Get a connection from the pool and perform an HTTP request. This is the lowest level call for making a request, so you'll need to specify all the raw details. .. note:: More commonly, it's appropriate to use a convenience method such as :meth:`request`. .. note:: `release_conn` will only behave as expected if `preload_content=False` because we want to make `preload_content=False` the default behaviour someday soon without breaking backwards compatibility. :param method: HTTP request method (such as GET, POST, PUT, etc.) :param url: The URL to perform the request on. :param body: Data to send in the request body, either :class:`str`, :class:`bytes`, an iterable of :class:`str`/:class:`bytes`, or a file-like object. :param headers: Dictionary of custom headers to send, such as User-Agent, If-None-Match, etc. If None, pool headers are used. If provided, these headers completely replace any pool-specific headers. :param retries: Configure the number of retries to allow before raising a :class:`~urllib3.exceptions.MaxRetryError` exception. If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a :class:`~urllib3.util.retry.Retry` object for fine-grained control over different types of retries. Pass an integer number to retry connection errors that many times, but no other types of errors. Pass zero to never retry. If ``False``, then retries are disabled and any exception is raised immediately. Also, instead of raising a MaxRetryError on redirects, the redirect response will be returned. :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. :param redirect: If True, automatically handle redirects (status codes 301, 302, 303, 307, 308). Each redirect counts as a retry. Disabling retries will disable redirect, too. :param assert_same_host: If ``True``, will make sure that the host of the pool requests is consistent else will raise HostChangedError. When ``False``, you can use the pool on an HTTP proxy and request foreign hosts. :param timeout: If specified, overrides the default timeout for this one request. It may be a float (in seconds) or an instance of :class:`urllib3.util.Timeout`. :param pool_timeout: If set and the pool is set to block=True, then this method will block for ``pool_timeout`` seconds and raise EmptyPoolError if no connection is available within the time period. :param bool preload_content: If True, the response's body will be preloaded into memory. :param bool decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. :param release_conn: If False, then the urlopen call will not release the connection back into the pool once a response is received (but will release if you read the entire contents of the response such as when `preload_content=True`). This is useful if you're not preloading the response's content immediately. You will need to call ``r.release_conn()`` on the response ``r`` to return the connection back into the pool. If None, it takes the value of ``preload_content`` which defaults to ``True``. :param bool chunked: If True, urllib3 will send the body using chunked transfer encoding. Otherwise, urllib3 will send the body using the standard content-length form. Defaults to False. :param int body_pos: Position to seek to in file-like body in the event of a retry or redirect. Typically this won't need to be set because urllib3 will auto-populate the value when needed. """ parsed_url = parse_url(url) destination_scheme = parsed_url.scheme if headers is None: headers = self.headers if not isinstance(retries, Retry): retries = Retry.from_int(retries, redirect=redirect, default=self.retries) if release_conn is None: release_conn = preload_content # Check host if assert_same_host and not self.is_same_host(url): raise HostChangedError(self, url, retries) # Ensure that the URL we're connecting to is properly encoded if url.startswith("/"): url = to_str(_encode_target(url)) else: url = to_str(parsed_url.url) conn = None # Track whether `conn` needs to be released before # returning/raising/recursing. Update this variable if necessary, and # leave `release_conn` constant throughout the function. That way, if # the function recurses, the original value of `release_conn` will be # passed down into the recursive call, and its value will be respected. # # See issue #651 [1] for details. # # [1] <https://github.com/urllib3/urllib3/issues/651> release_this_conn = release_conn http_tunnel_required = connection_requires_http_tunnel( self.proxy, self.proxy_config, destination_scheme ) # Merge the proxy headers. Only done when not using HTTP CONNECT. We # have to copy the headers dict so we can safely change it without those # changes being reflected in anyone else's copy. if not http_tunnel_required: headers = headers.copy() # type: ignore[attr-defined] headers.update(self.proxy_headers) # type: ignore[union-attr] # Must keep the exception bound to a separate variable or else Python 3 # complains about UnboundLocalError. err = None # Keep track of whether we cleanly exited the except block. This # ensures we do proper cleanup in finally. clean_exit = False # Rewind body position, if needed. Record current position # for future rewinds in the event of a redirect/retry. body_pos = set_file_position(body, body_pos) try: # Request a connection from the queue. timeout_obj = self._get_timeout(timeout) conn = self._get_conn(timeout=pool_timeout) conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] # Is this a closed/new connection that requires CONNECT tunnelling? if self.proxy is not None and http_tunnel_required and conn.is_closed: try: self._prepare_proxy(conn) except (BaseSSLError, OSError, SocketTimeout) as e: self._raise_timeout( err=e, url=self.proxy.url, timeout_value=conn.timeout ) raise # If we're going to release the connection in ``finally:``, then # the response doesn't need to know about the connection. Otherwise # it will also try to release it and we'll have a double-release # mess. response_conn = conn if not release_conn else None # Make the request on the HTTPConnection object > response = self._make_request( conn, method, url, timeout=timeout_obj, body=body, headers=headers, chunked=chunked, retries=retries, response_conn=response_conn, preload_content=preload_content, decode_content=decode_content, **response_kw, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:789: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:495: in _make_request conn.request( .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:441: in request self.endheaders() .pixi/envs/default/lib/python3.8/http/client.py:1251: in endheaders self._send_output(message_body, encode_chunked=encode_chunked) .pixi/envs/default/lib/python3.8/http/client.py:1011: in _send_output self.send(msg) .pixi/envs/default/lib/python3.8/http/client.py:951: in send self.connect() .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:279: in connect self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <urllib3.connection.HTTPConnection object at 0x7f959c980d60> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) except socket.gaierror as e: raise NameResolutionError(self.host, self, e) from e except SocketTimeout as e: raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e except OSError as e: > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e E urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f959c980d60>: Failed to establish a new connection: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:214: NewConnectionError The above exception was the direct cause of the following exception: self = <requests.adapters.HTTPAdapter object at 0x7f959d563700> request = <PreparedRequest [POST]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = False cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: > resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:667: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:843: in urlopen retries = retries.increment( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'POST', url = '/demo/?cmd=Submit', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959c980d60>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f959d5515b0> _stacktrace = <traceback object at 0x7f959cb93f00> def increment( self, method: str | None = None, url: str | None = None, response: BaseHTTPResponse | None = None, error: Exception | None = None, _pool: ConnectionPool | None = None, _stacktrace: TracebackType | None = None, ) -> Self: """Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.BaseHTTPResponse` :param Exception error: An error encountered during the request, or None if the response was received successfully. :return: A new ``Retry`` object. """ if self.total is False and error: # Disabled, indicate to re-raise the error. raise reraise(type(error), error, _stacktrace) total = self.total if total is not None: total -= 1 connect = self.connect read = self.read redirect = self.redirect status_count = self.status other = self.other cause = "unknown" status = None redirect_location = None if error and self._is_connection_error(error): # Connect retry? if connect is False: raise reraise(type(error), error, _stacktrace) elif connect is not None: connect -= 1 elif error and self._is_read_error(error): # Read retry? if read is False or method is None or not self._is_method_retryable(method): raise reraise(type(error), error, _stacktrace) elif read is not None: read -= 1 elif error: # Other retry? if other is not None: other -= 1 elif response and response.get_redirect_location(): # Redirect retry? if redirect is not None: redirect -= 1 cause = "too many redirects" response_redirect_location = response.get_redirect_location() if response_redirect_location: redirect_location = response_redirect_location status = response.status else: # Incrementing because of a server error like a 500 in # status_forcelist and the given method is in the allowed_methods cause = ResponseError.GENERIC_ERROR if response and response.status: if status_count is not None: status_count -= 1 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) status = response.status history = self.history + ( RequestHistory(method, url, error, status, redirect_location), ) new_retry = self.new( total=total, connect=connect, read=read, redirect=redirect, status=status_count, other=other, history=history, ) if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=Submit (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959c980d60>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: self = <elog.logbook.Logbook object at 0x7f959d5516d0> message = 'SCREENSHOT_INTEGRATION_TEST_MSG_456', msg_id = None, reply = False attributes = {'Author': 'robot', 'When': 1754559666, 'cmd': 'Submit', 'exp': 'demo', ...} attachments = ['/tmp/tmpvrt1ro_s.png'], suppress_email_notification = False encoding = None, timeout = None, kwargs = {'Author': 'robot'} new_attachment_list = [('attfile0', ('tmpvrt1ro_s.png', <_io.BufferedReader name='/tmp/tmpvrt1ro_s.png'>)), ('Text', ('', b'SCREENSHOT_INTEGRATION_TEST_MSG_456'))] objects_to_close = [<_io.BufferedReader name='/tmp/tmpvrt1ro_s.png'>] attributes_to_edit = {'Author': b'robot', 'When': 1754559666, 'cmd': b'Submit', 'exp': b'demo', ...} def post(self, message, msg_id=None, reply=False, attributes=None, attachments=None, suppress_email_notification=False, encoding=None, timeout=None, **kwargs): """ Posts message to the logbook. If msg_id is not specified new message will be created, otherwise existing message will be edited, or a reply (if reply=True) to it will be created. This method returns the msg_id of the newly created message. :param message: string with message text :param msg_id: ID number of message to edit or reply. If not specified new message is created. :param reply: If 'True' reply to existing message is created instead of editing it :param attributes: Dictionary of attributes. Following attributes are used internally by the elog and will be ignored: Text, Date, Encoding, Reply to, In reply to, Locked by, Attachment :param attachments: list of: - file like objects which read() will return bytes (if file_like_object.name is not defined, default name "attachment<i>" will be used. - paths to the files All items will be appended as attachment to the elog entry. In case of unknown attachment an exception LogbookInvalidAttachment will be raised. :param suppress_email_notification: If set to True or 1, E-Mail notification will be suppressed, defaults to False. :param encoding: Defines encoding of the message. Can be: 'plain' -> plain text, 'html'->html-text, 'ELCode' --> elog formatting syntax :param timeout: Define the timeout to be used by the post request. Its value is directly passed to the requests post. Use None to disable the request timeout. :param kwargs: Anything in the kwargs will be interpreted as attribute. e.g.: logbook.post('Test text', Author='Rok Vintar), "Author" will be sent as an attribute. If named same as one of the attributes defined in "attributes", kwargs will have priority. :return: msg_id """ attributes = attributes or {} attributes = {**attributes, **kwargs} # kwargs as attributes with higher priority attachments = attachments or [] if encoding is not None: if encoding not in ['plain', 'HTML', 'ELCode']: raise LogbookMessageRejected('Invalid message encoding. Valid options: plain, HTML, ELCode.') attributes['Encoding'] = encoding if suppress_email_notification: attributes["suppress"] = 1 # THE ATTACHMENT STRATEGY WHEN DEALING WITH POST MODIFICATION # # 1. Does the message on the server have already attachments? # 1.1 - We read the message getting the existing attachment list. # 1.2 - Add to the attributes dictionary one line for each attachment like this: # attributes['attachmentN'] = timestamped_filename_name # # 2. Do we have new attachments? # 2.1 - Those are in the new_attachment_list. This is a list of this type: # [ ('attfileN', ('filename', fileobject)) ] # 2.2 - We need to loop over all the new attachments: # 2.2.1 - Does a file already on the server with the same name exist? # 2.2.1.1 - No: OK. Then we go ahead with the next attachment. # 2.2.1.2 - Yes: # 2.2.1.2.1 - Are the two files identical? # 2.2.1.2.1.1 - Yes: then we remove this current entry from the new_attachment_list and we leave the one # already on server. # 2.2.1.2.1.2 - No: # 2.2.1.2.1.2.1 - Then the file has been update. # 2.2.1.2.1.2.2 - We need to remove the file on server first (using special post) # 2.2.1.2.1.2.3 - We have to remove the old attachment from the attributes dictionary. # if attachments: # here we accomplish point 2.1. # new_attachment_list is something like [ ('attfileN', ('filename', fileobject)) ] new_attachment_list, objects_to_close = self._prepare_attachments(attachments) else: objects_to_close = list() new_attachment_list = list() attributes_to_edit = dict() if msg_id: # Message exists, we can continue if reply: # Verify that there is a message on the server, otherwise do not reply to it! self._check_if_message_on_server(msg_id) # raises exception in case of none existing message attributes['reply_to'] = str(msg_id) else: # Edit existing attributes['edit_id'] = str(msg_id) attributes['skiplock'] = '1' # here we accomplish point 1.1. # existing_attachments_list is something like: # [ 'https://elog.url.com/logbook/timestamped_filename' ] msg_to_edit, attributes_to_edit, existing_attachments_list = self.read(msg_id) for attribute, data in attributes.items(): new_data = attributes.get(attribute) if new_data is not None: attributes_to_edit[attribute] = new_data i = 0 existing_attachments_filename_list = list() for attachment in existing_attachments_list: # here we accomplish point 1.2. We strip the timestamped_filename from the whole URL. attributes_to_edit[f'attachment{i}'] = os.path.basename(attachment) existing_attachments_filename_list.append(os.path.basename(attachment)[14:]) i += 1 # let's accomplish 2.2. Loop over all new attachment duplicate_attachment_list = list() for new_attachment in new_attachment_list: # the new_attachment_list is something like: # [ ('attfileN', ('filename', fileobject)) ] new_attachment_filename = new_attachment[1][0] if new_attachment_filename in existing_attachments_filename_list: # a file with the same name existing already on the server. # we need to check if the two files are the same. # read the content of the new file new_attachment_content = new_attachment[1][1].read() # don't forget to reset the fileobj to the beginning of the file new_attachment[1][1].seek(0) # get the existing attachment content attachment_index = existing_attachments_filename_list.index(new_attachment_filename) existing_attachment_content = self.download_attachment( url=existing_attachments_list[attachment_index], timeout=timeout ) # check if the two contents are the same if new_attachment_content == existing_attachment_content: # yes. then we don't upload a second copy. we remove the current entry from the list duplicate_attachment_list.append(new_attachment) else: # no. they are not the same file. we will replace the existing file with the new one # first: we need to remove the attachment from the server using the dedicated method self.delete_attachment(msg_id, attributes=attributes_to_edit, attachment_id=attachment_index, timeout=timeout, text=msg_to_edit) # now we can remove this attachment from the auxiliary lists. existing_attachments_filename_list.pop(attachment_index) existing_attachments_list.pop(attachment_index) # now we need to rebuild the attributes dictionary for the part concerning the attachments. # we remove all of them first keys_to_be_removed = list() for key in attributes_to_edit.keys(): if key.startswith('attachment'): keys_to_be_removed.append(key) if key.startswith('delatt'): keys_to_be_removed.append(key) for key in keys_to_be_removed: del attributes_to_edit[key] # now we rebuild it for i, attachment in enumerate(existing_attachments_list): attributes_to_edit[f'attachment{i}'] = os.path.basename(attachment) # remove all duplicate attachments from the new_attachment_list for attach in duplicate_attachment_list: new_attachment_list.remove(attach) else: # As we create a new message, specify creation time if not already specified in attributes if 'When' not in attributes: attributes['When'] = int(datetime.now().timestamp()) if not attributes_to_edit: attributes_to_edit = attributes # Remove any attributes that should not be sent _remove_reserved_attributes(attributes_to_edit) # Make requests module think that Text is a "file". This is the only way to force requests to send data as # multipart/form-data even if there are no attachments. Elog understands only multipart/form-data new_attachment_list.append(('Text', ('', message.encode('iso-8859-1')))) # Base attributes are common to all messages self._add_base_msg_attributes(attributes_to_edit) # Keys in attributes cannot have certain characters like whitespaces or dashes for the http request attributes_to_edit = _replace_special_characters_in_attribute_keys(attributes_to_edit) # All string values in the attributes must be encoded in latin1 attributes_to_edit = _encode_values(attributes_to_edit) try: > response = requests.post(self._url, data=attributes_to_edit, files=new_attachment_list, allow_redirects=False, verify=False, timeout=timeout) .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:115: in post return request("post", url, data=data, json=json, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <requests.adapters.HTTPAdapter object at 0x7f959d563700> request = <PreparedRequest [POST]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = False cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) except (ProtocolError, OSError) as err: raise ConnectionError(err, request=request) except MaxRetryError as e: if isinstance(e.reason, ConnectTimeoutError): # TODO: Remove this in 3.0.0: see #2811 if not isinstance(e.reason, NewConnectionError): raise ConnectTimeout(e, request=request) if isinstance(e.reason, ResponseError): raise RetryError(e, request=request) if isinstance(e.reason, _ProxyError): raise ProxyError(e, request=request) if isinstance(e.reason, _SSLError): # This branch is for urllib3 v1.22 and later. raise SSLError(e, request=request) > raise ConnectionError(e, request=request) E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=Submit (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959c980d60>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:700: ConnectionError During handling of the above exception, another exception occurred: self = <urllib3.connection.HTTPConnection object at 0x7f959c980c40> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: > sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:85: in create_connection raise err _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ address = ('localhost', 8080), timeout = None, source_address = None socket_options = [(6, 1, 1)] def create_connection( address: tuple[str, int], timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, source_address: tuple[str, int] | None = None, socket_options: _TYPE_SOCKET_OPTIONS | None = None, ) -> socket.socket: """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`socket.getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. """ host, port = address if host.startswith("["): host = host.strip("[]") err = None # Using the value from allowed_gai_family() in the context of getaddrinfo lets # us select whether to work with IPv4 DNS records, IPv6 records, or both. # The original create_connection function always returns all records. family = allowed_gai_family() try: host.encode("idna") except UnicodeError: raise LocationParseError(f"'{host}', label empty or too long") from None for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket.socket(af, socktype, proto) # If provided, set socket level options before connecting. _set_socket_options(sock, socket_options) if timeout is not _DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) > sock.connect(sa) E ConnectionRefusedError: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/connection.py:73: ConnectionRefusedError The above exception was the direct cause of the following exception: self = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f959c980a30> method = 'GET', url = '/demo/?cmd=SubmitNone', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Accept': '*/*', 'Connection': 'keep-alive', 'Cookie': 'unm=robot;upwd=me1T.2jUUqQNa1wNuey9zNBOmOa4eILOaPb.ZSZjpn4;'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/demo/', query='cmd=SubmitNone', fragment=None) destination_scheme = None, conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False def urlopen( # type: ignore[override] self, method: str, url: str, body: _TYPE_BODY | None = None, headers: typing.Mapping[str, str] | None = None, retries: Retry | bool | int | None = None, redirect: bool = True, assert_same_host: bool = True, timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, pool_timeout: int | None = None, release_conn: bool | None = None, chunked: bool = False, body_pos: _TYPE_BODY_POSITION | None = None, preload_content: bool = True, decode_content: bool = True, **response_kw: typing.Any, ) -> BaseHTTPResponse: """ Get a connection from the pool and perform an HTTP request. This is the lowest level call for making a request, so you'll need to specify all the raw details. .. note:: More commonly, it's appropriate to use a convenience method such as :meth:`request`. .. note:: `release_conn` will only behave as expected if `preload_content=False` because we want to make `preload_content=False` the default behaviour someday soon without breaking backwards compatibility. :param method: HTTP request method (such as GET, POST, PUT, etc.) :param url: The URL to perform the request on. :param body: Data to send in the request body, either :class:`str`, :class:`bytes`, an iterable of :class:`str`/:class:`bytes`, or a file-like object. :param headers: Dictionary of custom headers to send, such as User-Agent, If-None-Match, etc. If None, pool headers are used. If provided, these headers completely replace any pool-specific headers. :param retries: Configure the number of retries to allow before raising a :class:`~urllib3.exceptions.MaxRetryError` exception. If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a :class:`~urllib3.util.retry.Retry` object for fine-grained control over different types of retries. Pass an integer number to retry connection errors that many times, but no other types of errors. Pass zero to never retry. If ``False``, then retries are disabled and any exception is raised immediately. Also, instead of raising a MaxRetryError on redirects, the redirect response will be returned. :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. :param redirect: If True, automatically handle redirects (status codes 301, 302, 303, 307, 308). Each redirect counts as a retry. Disabling retries will disable redirect, too. :param assert_same_host: If ``True``, will make sure that the host of the pool requests is consistent else will raise HostChangedError. When ``False``, you can use the pool on an HTTP proxy and request foreign hosts. :param timeout: If specified, overrides the default timeout for this one request. It may be a float (in seconds) or an instance of :class:`urllib3.util.Timeout`. :param pool_timeout: If set and the pool is set to block=True, then this method will block for ``pool_timeout`` seconds and raise EmptyPoolError if no connection is available within the time period. :param bool preload_content: If True, the response's body will be preloaded into memory. :param bool decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. :param release_conn: If False, then the urlopen call will not release the connection back into the pool once a response is received (but will release if you read the entire contents of the response such as when `preload_content=True`). This is useful if you're not preloading the response's content immediately. You will need to call ``r.release_conn()`` on the response ``r`` to return the connection back into the pool. If None, it takes the value of ``preload_content`` which defaults to ``True``. :param bool chunked: If True, urllib3 will send the body using chunked transfer encoding. Otherwise, urllib3 will send the body using the standard content-length form. Defaults to False. :param int body_pos: Position to seek to in file-like body in the event of a retry or redirect. Typically this won't need to be set because urllib3 will auto-populate the value when needed. """ parsed_url = parse_url(url) destination_scheme = parsed_url.scheme if headers is None: headers = self.headers if not isinstance(retries, Retry): retries = Retry.from_int(retries, redirect=redirect, default=self.retries) if release_conn is None: release_conn = preload_content # Check host if assert_same_host and not self.is_same_host(url): raise HostChangedError(self, url, retries) # Ensure that the URL we're connecting to is properly encoded if url.startswith("/"): url = to_str(_encode_target(url)) else: url = to_str(parsed_url.url) conn = None # Track whether `conn` needs to be released before # returning/raising/recursing. Update this variable if necessary, and # leave `release_conn` constant throughout the function. That way, if # the function recurses, the original value of `release_conn` will be # passed down into the recursive call, and its value will be respected. # # See issue #651 [1] for details. # # [1] <https://github.com/urllib3/urllib3/issues/651> release_this_conn = release_conn http_tunnel_required = connection_requires_http_tunnel( self.proxy, self.proxy_config, destination_scheme ) # Merge the proxy headers. Only done when not using HTTP CONNECT. We # have to copy the headers dict so we can safely change it without those # changes being reflected in anyone else's copy. if not http_tunnel_required: headers = headers.copy() # type: ignore[attr-defined] headers.update(self.proxy_headers) # type: ignore[union-attr] # Must keep the exception bound to a separate variable or else Python 3 # complains about UnboundLocalError. err = None # Keep track of whether we cleanly exited the except block. This # ensures we do proper cleanup in finally. clean_exit = False # Rewind body position, if needed. Record current position # for future rewinds in the event of a redirect/retry. body_pos = set_file_position(body, body_pos) try: # Request a connection from the queue. timeout_obj = self._get_timeout(timeout) conn = self._get_conn(timeout=pool_timeout) conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] # Is this a closed/new connection that requires CONNECT tunnelling? if self.proxy is not None and http_tunnel_required and conn.is_closed: try: self._prepare_proxy(conn) except (BaseSSLError, OSError, SocketTimeout) as e: self._raise_timeout( err=e, url=self.proxy.url, timeout_value=conn.timeout ) raise # If we're going to release the connection in ``finally:``, then # the response doesn't need to know about the connection. Otherwise # it will also try to release it and we'll have a double-release # mess. response_conn = conn if not release_conn else None # Make the request on the HTTPConnection object > response = self._make_request( conn, method, url, timeout=timeout_obj, body=body, headers=headers, chunked=chunked, retries=retries, response_conn=response_conn, preload_content=preload_content, decode_content=decode_content, **response_kw, ) .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:789: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:495: in _make_request conn.request( .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:441: in request self.endheaders() .pixi/envs/default/lib/python3.8/http/client.py:1251: in endheaders self._send_output(message_body, encode_chunked=encode_chunked) .pixi/envs/default/lib/python3.8/http/client.py:1011: in _send_output self.send(msg) .pixi/envs/default/lib/python3.8/http/client.py:951: in send self.connect() .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:279: in connect self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <urllib3.connection.HTTPConnection object at 0x7f959c980c40> def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ try: sock = connection.create_connection( (self._dns_host, self.port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, ) except socket.gaierror as e: raise NameResolutionError(self.host, self, e) from e except SocketTimeout as e: raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e except OSError as e: > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e E urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f959c980c40>: Failed to establish a new connection: [Errno 111] Connection refused .pixi/envs/default/lib/python3.8/site-packages/urllib3/connection.py:214: NewConnectionError The above exception was the direct cause of the following exception: self = <requests.adapters.HTTPAdapter object at 0x7f959c980a90> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = False cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: > resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:667: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/urllib3/connectionpool.py:843: in urlopen retries = retries.increment( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/demo/?cmd=SubmitNone', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959c980c40>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f959c980a30> _stacktrace = <traceback object at 0x7f959d53d2c0> def increment( self, method: str | None = None, url: str | None = None, response: BaseHTTPResponse | None = None, error: Exception | None = None, _pool: ConnectionPool | None = None, _stacktrace: TracebackType | None = None, ) -> Self: """Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.BaseHTTPResponse` :param Exception error: An error encountered during the request, or None if the response was received successfully. :return: A new ``Retry`` object. """ if self.total is False and error: # Disabled, indicate to re-raise the error. raise reraise(type(error), error, _stacktrace) total = self.total if total is not None: total -= 1 connect = self.connect read = self.read redirect = self.redirect status_count = self.status other = self.other cause = "unknown" status = None redirect_location = None if error and self._is_connection_error(error): # Connect retry? if connect is False: raise reraise(type(error), error, _stacktrace) elif connect is not None: connect -= 1 elif error and self._is_read_error(error): # Read retry? if read is False or method is None or not self._is_method_retryable(method): raise reraise(type(error), error, _stacktrace) elif read is not None: read -= 1 elif error: # Other retry? if other is not None: other -= 1 elif response and response.get_redirect_location(): # Redirect retry? if redirect is not None: redirect -= 1 cause = "too many redirects" response_redirect_location = response.get_redirect_location() if response_redirect_location: redirect_location = response_redirect_location status = response.status else: # Incrementing because of a server error like a 500 in # status_forcelist and the given method is in the allowed_methods cause = ResponseError.GENERIC_ERROR if response and response.status: if status_count is not None: status_count -= 1 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) status = response.status history = self.history + ( RequestHistory(method, url, error, status, redirect_location), ) new_retry = self.new( total=total, connect=connect, read=read, redirect=redirect, status=status_count, other=other, history=history, ) if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=SubmitNone (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959c980c40>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: self = <elog.logbook.Logbook object at 0x7f959d5516d0>, msg_id = None timeout = None def _check_if_message_on_server(self, msg_id, timeout=None): """Try to load page for specific message. If there is a html tag like <td class="errormsg"> then there is no such message. :param msg_id: ID of message to be checked :params timeout: The value of timeout to be passed to the get request :return: """ request_headers = dict() if self._user or self._password: request_headers['Cookie'] = self._make_user_and_pswd_cookie() try: > response = requests.get(self._url + str(msg_id), headers=request_headers, allow_redirects=False, verify=False, timeout=timeout) .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py:581: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:73: in get return request("get", url, params=params, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/api.py:59: in request return session.request(method=method, url=url, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) .pixi/envs/default/lib/python3.8/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <requests.adapters.HTTPAdapter object at 0x7f959c980a90> request = <PreparedRequest [GET]>, stream = False timeout = Timeout(connect=None, read=None, total=None), verify = False cert = None, proxies = OrderedDict() def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection_with_tls_context( request, verify, proxies=proxies, cert=cert ) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) except (ProtocolError, OSError) as err: raise ConnectionError(err, request=request) except MaxRetryError as e: if isinstance(e.reason, ConnectTimeoutError): # TODO: Remove this in 3.0.0: see #2811 if not isinstance(e.reason, NewConnectionError): raise ConnectTimeout(e, request=request) if isinstance(e.reason, ResponseError): raise RetryError(e, request=request) if isinstance(e.reason, _ProxyError): raise ProxyError(e, request=request) if isinstance(e.reason, _SSLError): # This branch is for urllib3 v1.22 and later. raise SSLError(e, request=request) > raise ConnectionError(e, request=request) E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=SubmitNone (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959c980c40>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/requests/adapters.py:700: ConnectionError During handling of the above exception, another exception occurred: mock_screenshot_class = <MagicMock name='Screenshot' id='140280553358960'> @patch("slic.utils.elog.Screenshot") def test_screenshot(mock_screenshot_class): with tempfile.NamedTemporaryFile(delete=False, suffix=".png") as tmp: fake_path = tmp.name tmp.write(b"fake image data") mock_instance = mock_screenshot_class.return_value mock_instance.shoot.return_value = [fake_path] elog = get_test_elog() test_msg = "SCREENSHOT_INTEGRATION_TEST_MSG_456" > entry_id = elog.screenshot(message=test_msg) tests/test_utils_elog.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ slic/utils/elog.py:37: in screenshot self.post(message, **kwargs) slic/utils/elog.py:29: in post return self._log.post(*args, **kwargs) .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py:307: in post self._check_if_message_on_server(msg_id) # raises exceptions if no message or no response from server _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <elog.logbook.Logbook object at 0x7f959d5516d0>, msg_id = None timeout = None def _check_if_message_on_server(self, msg_id, timeout=None): """Try to load page for specific message. If there is a html tag like <td class="errormsg"> then there is no such message. :param msg_id: ID of message to be checked :params timeout: The value of timeout to be passed to the get request :return: """ request_headers = dict() if self._user or self._password: request_headers['Cookie'] = self._make_user_and_pswd_cookie() try: response = requests.get(self._url + str(msg_id), headers=request_headers, allow_redirects=False, verify=False, timeout=timeout) # If there is no message code 200 will be returned (OK) and _validate_response will not recognise it # but there will be some error in the html code. resp_message, resp_headers, resp_msg_id = _validate_response(response) # If there is no message, code 200 will be returned (OK) but there will be some error indication in # the html code. if re.findall('<td.*?class="errormsg".*?>.*?</td>', resp_message.decode('utf-8', 'ignore'), flags=re.DOTALL): raise LogbookInvalidMessageID('Message with ID: ' + str(msg_id) + ' does not exist on logbook.') except requests.Timeout as e: # Catch here a timeout o the post request. # Raise the logbook exception and let the user handle it raise LogbookServerTimeout('{0} method cannot be completed because of a network timeout:\n' + '{1}'.format(sys._getframe().f_code.co_name, e)) except requests.RequestException as e: > raise LogbookServerProblem('No response from the logbook server.\nDetails: ' + '{0}'.format(e)) E elog.logbook_exceptions.LogbookServerProblem: No response from the logbook server. E Details: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /demo/?cmd=SubmitNone (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f959c980c40>: Failed to establish a new connection: [Errno 111] Connection refused')) .pixi/envs/default/lib/python3.8/site-packages/elog/logbook.py:601: LogbookServerProblem📌 Teardown phase
duration:
0.00033174222335219383outcome:
passed
-
-
📄 test_utils_hastyepics.py
↳ Function: test_motor_instantiation_fast_vs_epics
-
❌ Test 216
📌 Setup phase
duration:
0.0001246579922735691outcome:
passed📌 Call phase
duration:
0.11326690297573805outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_hastyepics.py lineno: 37 message: AssertionError: Fast version (0.010787s) should be faster than EPICS (0.000295s) assert 0.0107866823207587 < 0.0002953853458166122traceback:
- path: tests/test_utils_hastyepics.py lineno: 37 message: AssertionErrorlongrepr:
def test_motor_instantiation_fast_vs_epics(): fast_times = [] slow_times = [] # Mock to simulate a real EPICS moteur with patch('epics.Motor.get') as mock_get: mock_get.return_value = 'motor' # Mean of 10 runs for _ in range(10): t0 = time.perf_counter() m_fast = Motor("TEST:MOTOR_t1") t1 = time.perf_counter() t2 = time.perf_counter() m_slow = epics.Motor("TEST:MOTOR_t2") t3 = time.perf_counter() fast_times.append(t1 - t0) slow_times.append(t3 - t2) avg_fast = sum(fast_times) / len(fast_times) avg_slow = sum(slow_times) / len(slow_times) > assert avg_fast < avg_slow, f"Fast version ({avg_fast:.6f}s) should be faster than EPICS ({avg_slow:.6f}s)" E AssertionError: Fast version (0.010787s) should be faster than EPICS (0.000295s) E assert 0.0107866823207587 < 0.0002953853458166122 tests/test_utils_hastyepics.py:37: AssertionError📌 Teardown phase
duration:
0.0005545420572161674outcome:
passed
↳ Function: test_motor_without_suffix_and_dot
-
❌ Test 217
📌 Setup phase
duration:
0.00024912599474191666outcome:
passed📌 Call phase
duration:
0.002098218072205782outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_hastyepics.py lineno: 42 message: AssertionError: assert 'TEST:MOTOR_1.' == 'TEST:MOTOR_1' - TEST:MOTOR_1 + TEST:MOTOR_1. ? +traceback:
- path: tests/test_utils_hastyepics.py lineno: 42 message: AssertionErrorlongrepr:
def test_motor_without_suffix_and_dot(): # Suffix .VAL ... dot should be stripped from name m1 = Motor("TEST:MOTOR_1.VAL") > assert m1._prefix == "TEST:MOTOR_1" E AssertionError: assert 'TEST:MOTOR_1.' == 'TEST:MOTOR_1' E E - TEST:MOTOR_1 E + TEST:MOTOR_1. E ? + tests/test_utils_hastyepics.py:42: AssertionError📌 Teardown phase
duration:
0.00020325137302279472outcome:
passed
↳ Function: test_motor_initializes_device_attrs
-
❌ Test 220
📌 Setup phase
duration:
0.00011458899825811386outcome:
passed📌 Call phase
duration:
0.0016528540290892124outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_hastyepics.py lineno: 79 message: AssertionError: VAL is not a valid PV object assert False + where False = isinstance(None, <class 'epics.pv.PV'>) + where <class 'epics.pv.PV'> = <module 'epics.pv' from '/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pyepics-3.4.3-py3.9.egg/epics/pv.py'>.PV + where <module 'epics.pv' from '/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pyepics-3.4.3-py3.9.egg/epics/pv.py'> = epics.pvtraceback:
- path: tests/test_utils_hastyepics.py lineno: 79 message: AssertionErrorlongrepr:
def test_motor_initializes_device_attrs(): # Check that Motor correctly initializes all Device PVs from _init_list m = Motor("TEST:MOTOR") print("_init_list contents:", m._init_list) print("All attributes on motor:", dir(m)) for attr in m._init_list: print(f"\nChecking attribute: {attr}") assert hasattr(m, attr), f"Motor is missing attribute: {attr}" pv = getattr(m, attr) print(f"PV object: {pv}") print("Type:", type(pv)) if pv is not None: print(f"PV name: {pv.pvname}") print(f"PV connected: {pv.connected}") > assert isinstance(pv, epics.pv.PV), f"{attr} is not a valid PV object" E AssertionError: VAL is not a valid PV object E assert False E + where False = isinstance(None, <class 'epics.pv.PV'>) E + where <class 'epics.pv.PV'> = <module 'epics.pv' from '/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pyepics-3.4.3-py3.9.egg/epics/pv.py'>.PV E + where <module 'epics.pv' from '/workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pyepics-3.4.3-py3.9.egg/epics/pv.py'> = epics.pv tests/test_utils_hastyepics.py:79: AssertionError📌 Teardown phase
duration:
0.0002150246873497963outcome:
passed
-
-
📄 test_utils_logcfg.py
↳ Function: test_import_logging_once_per_module
-
❌ Test 236
📌 Setup phase
duration:
0.00013949396088719368outcome:
passed📌 Call phase
duration:
1.883639084175229outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_logcfg.py lineno: 78 message: AssertionError: Expected 1 import log for 'math', found 0 assert 0 == 1traceback:
- path: tests/test_utils_logcfg.py lineno: 78 message: AssertionErrorlongrepr:
def test_import_logging_once_per_module(): code = textwrap.dedent(""" from slic.utils.logcfg import * import math import io import random """) with tempfile.NamedTemporaryFile("w", suffix=".py", delete=False) as tmp: tmp.write(code) tmp_path = tmp.name env = os.environ.copy() root_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) env["PYTHONPATH"] = root_path + os.pathsep + env.get("PYTHONPATH", "") result = subprocess.run([sys.executable, tmp_path], capture_output=True, text=True, env=env) os.remove(tmp_path) assert result.returncode == 0, f"Script failed:\n{result.stderr}" stderr = result.stderr print(stderr) lines = stderr.splitlines() for mod in ["math", "io", "random"]: count = sum(1 for line in lines if f"importing: {mod}" in line) > assert count == 1, f"Expected 1 import log for '{mod}', found {count}" E AssertionError: Expected 1 import log for 'math', found 0 E assert 0 == 1 tests/test_utils_logcfg.py:78: AssertionError📌 Teardown phase
duration:
0.000383246224373579outcome:
passed
-
-
📄 test_utils_npy.py
↳ Function: test_nice_arange
-
❌ Test 246
params: start=5, stop=0, step=-1, expected="[5. 4. 3. 2. 1. 0.]"📌 Runtime Parameters
params: start: 5 stop: 0 step: -1 expected: [5. 4. 3. 2. 1. 0.] id: 5-0--1-expected1📌 Setup phase
duration:
0.00042541464790701866outcome:
passed📌 Call phase
duration:
0.001104903407394886outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-06, atol=0 Mismatched elements: 6 / 6 (100%) Max absolute difference: 5. Max relative difference: 3. x: array([0., 1., 2., 3., 4., 5.]) y: array([5., 4., 3., 2., 1., 0.])traceback:
- path: tests/test_utils_npy.py lineno: 16 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = 5, stop = 0, step = -1, expected = array([5., 4., 3., 2., 1., 0.]) @pytest.mark.parametrize("start, stop, step, expected", [ (0, 5, 1, np.linspace(0, 5, 6)), # regular integer step (5, 0, -1, np.linspace(5, 0, 6)), # reversed with negative step (1, 2, 0.3, np.linspace(1, 2, 4)), # step doesn't divide evenly (-2, 2, 1.5, np.linspace(-2, 2, 3)), # centered range (2.5, 0.5, -0.4, np.linspace(2.5, 0.5, 6)), # reversed float ]) def test_nice_arange(start, stop, step, expected): > np.testing.assert_allclose(nice_arange(start, stop, step), expected, rtol=1e-6) tests/test_utils_npy.py:16: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959c8d3820>, array([0., 1., 2., 3., 4., 5.]), array([5., 4., 3., 2., 1., 0.])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-06, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-06, atol=0 E E Mismatched elements: 6 / 6 (100%) E Max absolute difference: 5. E Max relative difference: 3. E x: array([0., 1., 2., 3., 4., 5.]) E y: array([5., 4., 3., 2., 1., 0.]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.00031477073207497597outcome:
passed -
❌ Test 248
params: start=-2, stop=2, step=1.5, expected="[-2. 0. 2.]"📌 Runtime Parameters
params: start: -2 stop: 2 step: 1.5 expected: [-2. 0. 2.] id: -2-2-1.5-expected3📌 Setup phase
duration:
0.0004012240096926689outcome:
passed📌 Call phase
duration:
0.0006706947460770607outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-06, atol=0 (shapes (4,), (3,) mismatch) x: array([-2. , -0.666667, 0.666667, 2. ]) y: array([-2., 0., 2.])traceback:
- path: tests/test_utils_npy.py lineno: 16 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = -2, stop = 2, step = 1.5, expected = array([-2., 0., 2.]) @pytest.mark.parametrize("start, stop, step, expected", [ (0, 5, 1, np.linspace(0, 5, 6)), # regular integer step (5, 0, -1, np.linspace(5, 0, 6)), # reversed with negative step (1, 2, 0.3, np.linspace(1, 2, 4)), # step doesn't divide evenly (-2, 2, 1.5, np.linspace(-2, 2, 3)), # centered range (2.5, 0.5, -0.4, np.linspace(2.5, 0.5, 6)), # reversed float ]) def test_nice_arange(start, stop, step, expected): > np.testing.assert_allclose(nice_arange(start, stop, step), expected, rtol=1e-6) tests/test_utils_npy.py:16: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959ccdb160>, array([-2. , -0.66666667, 0.66666667, 2. ]), array([-2., 0., 2.])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-06, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-06, atol=0 E E (shapes (4,), (3,) mismatch) E x: array([-2. , -0.666667, 0.666667, 2. ]) E y: array([-2., 0., 2.]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.00026438524946570396outcome:
passed -
❌ Test 249
params: start=2.5, stop=0.5, step=-0.4, expected="[2.5 2.1 1.7 1.3 0.9 0.5]"📌 Runtime Parameters
params: start: 2.5 stop: 0.5 step: -0.4 expected: [2.5 2.1 1.7 1.3 0.9 0.5] id: 2.5-0.5--0.4-expected4📌 Setup phase
duration:
0.0004024929367005825outcome:
passed📌 Call phase
duration:
0.000959387980401516outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-06, atol=0 Mismatched elements: 6 / 6 (100%) Max absolute difference: 2. Max relative difference: 4. x: array([0.5, 0.9, 1.3, 1.7, 2.1, 2.5]) y: array([2.5, 2.1, 1.7, 1.3, 0.9, 0.5])traceback:
- path: tests/test_utils_npy.py lineno: 16 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = 2.5, stop = 0.5, step = -0.4 expected = array([2.5, 2.1, 1.7, 1.3, 0.9, 0.5]) @pytest.mark.parametrize("start, stop, step, expected", [ (0, 5, 1, np.linspace(0, 5, 6)), # regular integer step (5, 0, -1, np.linspace(5, 0, 6)), # reversed with negative step (1, 2, 0.3, np.linspace(1, 2, 4)), # step doesn't divide evenly (-2, 2, 1.5, np.linspace(-2, 2, 3)), # centered range (2.5, 0.5, -0.4, np.linspace(2.5, 0.5, 6)), # reversed float ]) def test_nice_arange(start, stop, step, expected): > np.testing.assert_allclose(nice_arange(start, stop, step), expected, rtol=1e-6) tests/test_utils_npy.py:16: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959ccf9700>, array([0.5, 0.9, 1.3, 1.7, 2.1, 2.5]), array([2.5, 2.1, 1.7, 1.3, 0.9, 0.5])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-06, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-06, atol=0 E E Mismatched elements: 6 / 6 (100%) E Max absolute difference: 2. E Max relative difference: 4. E x: array([0.5, 0.9, 1.3, 1.7, 2.1, 2.5]) E y: array([2.5, 2.1, 1.7, 1.3, 0.9, 0.5]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.0003020120784640312outcome:
passed
↳ Function: test_nice_steps_left_aligned
-
❌ Test 261
params: start=0, stop=5, step=2, endpoint=true, expected="[0. 2. 4. 6.]"📌 Runtime Parameters
params: start: 0 stop: 5 step: 2 endpoint: True expected: [0. 2. 4. 6.] id: 0-5-2-True-expected0📌 Setup phase
duration:
0.0004221987910568714outcome:
passed📌 Call phase
duration:
0.0005347961559891701outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 (shapes (3,), (4,) mismatch) x: array([0, 2, 4]) y: array([0., 2., 4., 6.])traceback:
- path: tests/test_utils_npy.py lineno: 53 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = 0, stop = 5, step = 2, endpoint = True expected = array([0., 2., 4., 6.]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([0., 2., 4., 6.])), # Normal case with endpoint overshooting (0, 5, 2, False, np.array([0., 2., 4.])), # No endpoint (-1, 2, 1.5, True, np.array([-1., 0.5, 2.])), # Needs fractional alignment to include stop (-1, 2, 1.5, False, np.array([-1., 0.5])), # Same range but no endpoint (-2, 1, 1.2, True, np.array([-2., -0.8, 0.4, 1.6])), # Step overshoots (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Backward steps with overshoot (5, 0, -2, False, np.array([5., 3., 1.])), # No endpoint, backward ]) def test_nice_steps_left_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_left_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959ccf9dc0>, array([0, 2, 4]), array([0., 2., 4., 6.])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (shapes (3,), (4,) mismatch) E x: array([0, 2, 4]) E y: array([0., 2., 4., 6.]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.00022747134789824486outcome:
passed -
❌ Test 262
params: start=0, stop=5, step=2, endpoint=false, expected="[0. 2. 4.]"📌 Runtime Parameters
params: start: 0 stop: 5 step: 2 endpoint: False expected: [0. 2. 4.] id: 0-5-2-False-expected1📌 Setup phase
duration:
0.00038055283948779106outcome:
passed📌 Call phase
duration:
0.0004957779310643673outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 (shapes (2,), (3,) mismatch) x: array([0, 2]) y: array([0., 2., 4.])traceback:
- path: tests/test_utils_npy.py lineno: 53 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = 0, stop = 5, step = 2, endpoint = False, expected = array([0., 2., 4.]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([0., 2., 4., 6.])), # Normal case with endpoint overshooting (0, 5, 2, False, np.array([0., 2., 4.])), # No endpoint (-1, 2, 1.5, True, np.array([-1., 0.5, 2.])), # Needs fractional alignment to include stop (-1, 2, 1.5, False, np.array([-1., 0.5])), # Same range but no endpoint (-2, 1, 1.2, True, np.array([-2., -0.8, 0.4, 1.6])), # Step overshoots (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Backward steps with overshoot (5, 0, -2, False, np.array([5., 3., 1.])), # No endpoint, backward ]) def test_nice_steps_left_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_left_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959ccf9c10>, array([0, 2]), array([0., 2., 4.])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (shapes (2,), (3,) mismatch) E x: array([0, 2]) E y: array([0., 2., 4.]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.0002271188423037529outcome:
passed -
❌ Test 265
params: start=-2, stop=1, step=1.2, endpoint=true, expected="[-2. -0.8 0.4 1.6]"📌 Runtime Parameters
params: start: -2 stop: 1 step: 1.2 endpoint: True expected: [-2. -0.8 0.4 1.6] id: -2-1-1.2-True-expected4📌 Setup phase
duration:
0.0003675888292491436outcome:
passed📌 Call phase
duration:
0.0005304631777107716outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 (shapes (3,), (4,) mismatch) x: array([-2. , -0.8, 0.4]) y: array([-2. , -0.8, 0.4, 1.6])traceback:
- path: tests/test_utils_npy.py lineno: 53 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = -2, stop = 1, step = 1.2, endpoint = True expected = array([-2. , -0.8, 0.4, 1.6]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([0., 2., 4., 6.])), # Normal case with endpoint overshooting (0, 5, 2, False, np.array([0., 2., 4.])), # No endpoint (-1, 2, 1.5, True, np.array([-1., 0.5, 2.])), # Needs fractional alignment to include stop (-1, 2, 1.5, False, np.array([-1., 0.5])), # Same range but no endpoint (-2, 1, 1.2, True, np.array([-2., -0.8, 0.4, 1.6])), # Step overshoots (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Backward steps with overshoot (5, 0, -2, False, np.array([5., 3., 1.])), # No endpoint, backward ]) def test_nice_steps_left_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_left_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959ccf9700>, array([-2. , -0.8, 0.4]), array([-2. , -0.8, 0.4, 1.6])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (shapes (3,), (4,) mismatch) E x: array([-2. , -0.8, 0.4]) E y: array([-2. , -0.8, 0.4, 1.6]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.000286199152469635outcome:
passed -
❌ Test 266
params: start=5, stop=0, step=-2, endpoint=true, expected="[ 5. 3. 1. -1.]"📌 Runtime Parameters
params: start: 5 stop: 0 step: -2 endpoint: True expected: [ 5. 3. 1. -1.] id: 5-0--2-True-expected5📌 Setup phase
duration:
0.00041667791083455086outcome:
passed📌 Call phase
duration:
0.0005812011659145355outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 (shapes (3,), (4,) mismatch) x: array([0, 2, 4]) y: array([ 5., 3., 1., -1.])traceback:
- path: tests/test_utils_npy.py lineno: 53 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = 5, stop = 0, step = -2, endpoint = True expected = array([ 5., 3., 1., -1.]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([0., 2., 4., 6.])), # Normal case with endpoint overshooting (0, 5, 2, False, np.array([0., 2., 4.])), # No endpoint (-1, 2, 1.5, True, np.array([-1., 0.5, 2.])), # Needs fractional alignment to include stop (-1, 2, 1.5, False, np.array([-1., 0.5])), # Same range but no endpoint (-2, 1, 1.2, True, np.array([-2., -0.8, 0.4, 1.6])), # Step overshoots (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Backward steps with overshoot (5, 0, -2, False, np.array([5., 3., 1.])), # No endpoint, backward ]) def test_nice_steps_left_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_left_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959cc9d4c0>, array([0, 2, 4]), array([ 5., 3., 1., -1.])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (shapes (3,), (4,) mismatch) E x: array([0, 2, 4]) E y: array([ 5., 3., 1., -1.]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.0003760233521461487outcome:
passed -
❌ Test 267
params: start=5, stop=0, step=-2, endpoint=false, expected="[5. 3. 1.]"📌 Runtime Parameters
params: start: 5 stop: 0 step: -2 endpoint: False expected: [5. 3. 1.] id: 5-0--2-False-expected6📌 Setup phase
duration:
0.0004542740061879158outcome:
passed📌 Call phase
duration:
0.0006487807258963585outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 (shapes (2,), (3,) mismatch) x: array([0, 2]) y: array([5., 3., 1.])traceback:
- path: tests/test_utils_npy.py lineno: 53 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = 5, stop = 0, step = -2, endpoint = False, expected = array([5., 3., 1.]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([0., 2., 4., 6.])), # Normal case with endpoint overshooting (0, 5, 2, False, np.array([0., 2., 4.])), # No endpoint (-1, 2, 1.5, True, np.array([-1., 0.5, 2.])), # Needs fractional alignment to include stop (-1, 2, 1.5, False, np.array([-1., 0.5])), # Same range but no endpoint (-2, 1, 1.2, True, np.array([-2., -0.8, 0.4, 1.6])), # Step overshoots (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Backward steps with overshoot (5, 0, -2, False, np.array([5., 3., 1.])), # No endpoint, backward ]) def test_nice_steps_left_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_left_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959cc9db80>, array([0, 2]), array([5., 3., 1.])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (shapes (2,), (3,) mismatch) E x: array([0, 2]) E y: array([5., 3., 1.]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.00034142332151532173outcome:
passed
↳ Function: test_nice_steps_right_aligned
-
❌ Test 268
params: start=0, stop=5, step=2, endpoint=true, expected="[6. 4. 2. 0.]"📌 Runtime Parameters
params: start: 0 stop: 5 step: 2 endpoint: True expected: [6. 4. 2. 0.] id: 0-5-2-True-expected0📌 Setup phase
duration:
0.0004410138353705406outcome:
passed📌 Call phase
duration:
0.000578718725591898outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 (shapes (3,), (4,) mismatch) x: array([1, 3, 5]) y: array([6., 4., 2., 0.])traceback:
- path: tests/test_utils_npy.py lineno: 67 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = 0, stop = 5, step = 2, endpoint = True expected = array([6., 4., 2., 0.]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([6., 4., 2., 0.])), # Right-aligned, overshoots left (0, 5, 2, False, np.array([4., 2., 0.])), # Right-aligned, no endpoint (-1, 2, 1.5, True, np.array([2., 0.5, -1.])), # Step doesn t divide evenly, reverse it (-1, 2, 1.5, False, np.array([0.5, -1.])), # Without endpoint (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Negative step, includes endpoint overshoot (5, 0, -2, False, np.array([3., 1., -1.])), # No endpoint, skips last one (-3, 3, 2, True, np.array([5., 3., 1., -1., -3.])), # Large symmetric range, reverse ]) def test_nice_steps_right_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_right_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959cc9d5e0>, array([1, 3, 5]), array([6., 4., 2., 0.])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (shapes (3,), (4,) mismatch) E x: array([1, 3, 5]) E y: array([6., 4., 2., 0.]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.0003720899112522602outcome:
passed -
❌ Test 269
params: start=0, stop=5, step=2, endpoint=false, expected="[4. 2. 0.]"📌 Runtime Parameters
params: start: 0 stop: 5 step: 2 endpoint: False expected: [4. 2. 0.] id: 0-5-2-False-expected1📌 Setup phase
duration:
0.0004598288796842098outcome:
passed📌 Call phase
duration:
0.000583296176046133outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 (shapes (2,), (3,) mismatch) x: array([3, 5]) y: array([4., 2., 0.])traceback:
- path: tests/test_utils_npy.py lineno: 67 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = 0, stop = 5, step = 2, endpoint = False, expected = array([4., 2., 0.]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([6., 4., 2., 0.])), # Right-aligned, overshoots left (0, 5, 2, False, np.array([4., 2., 0.])), # Right-aligned, no endpoint (-1, 2, 1.5, True, np.array([2., 0.5, -1.])), # Step doesn t divide evenly, reverse it (-1, 2, 1.5, False, np.array([0.5, -1.])), # Without endpoint (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Negative step, includes endpoint overshoot (5, 0, -2, False, np.array([3., 1., -1.])), # No endpoint, skips last one (-3, 3, 2, True, np.array([5., 3., 1., -1., -3.])), # Large symmetric range, reverse ]) def test_nice_steps_right_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_right_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959cc95040>, array([3, 5]), array([4., 2., 0.])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (shapes (2,), (3,) mismatch) E x: array([3, 5]) E y: array([4., 2., 0.]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.0003316751681268215outcome:
passed -
❌ Test 270
params: start=-1, stop=2, step=1.5, endpoint=true, expected="[ 2. 0.5 -1. ]"📌 Runtime Parameters
params: start: -1 stop: 2 step: 1.5 endpoint: True expected: [ 2. 0.5 -1. ] id: -1-2-1.5-True-expected2📌 Setup phase
duration:
0.0004430869594216347outcome:
passed📌 Call phase
duration:
0.000937173143029213outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 Mismatched elements: 2 / 3 (66.7%) Max absolute difference: 3. Max relative difference: 3. x: array([-1. , 0.5, 2. ]) y: array([ 2. , 0.5, -1. ])traceback:
- path: tests/test_utils_npy.py lineno: 67 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = -1, stop = 2, step = 1.5, endpoint = True expected = array([ 2. , 0.5, -1. ]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([6., 4., 2., 0.])), # Right-aligned, overshoots left (0, 5, 2, False, np.array([4., 2., 0.])), # Right-aligned, no endpoint (-1, 2, 1.5, True, np.array([2., 0.5, -1.])), # Step doesn t divide evenly, reverse it (-1, 2, 1.5, False, np.array([0.5, -1.])), # Without endpoint (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Negative step, includes endpoint overshoot (5, 0, -2, False, np.array([3., 1., -1.])), # No endpoint, skips last one (-3, 3, 2, True, np.array([5., 3., 1., -1., -3.])), # Large symmetric range, reverse ]) def test_nice_steps_right_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_right_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959cc95b80>, array([-1. , 0.5, 2. ]), array([ 2. , 0.5, -1. ])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E Mismatched elements: 2 / 3 (66.7%) E Max absolute difference: 3. E Max relative difference: 3. E x: array([-1. , 0.5, 2. ]) E y: array([ 2. , 0.5, -1. ]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.00036054477095603943outcome:
passed -
❌ Test 271
params: start=-1, stop=2, step=1.5, endpoint=false, expected="[ 0.5 -1. ]"📌 Runtime Parameters
params: start: -1 stop: 2 step: 1.5 endpoint: False expected: [ 0.5 -1. ] id: -1-2-1.5-False-expected3📌 Setup phase
duration:
0.0004490949213504791outcome:
passed📌 Call phase
duration:
0.0009258054196834564outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 Mismatched elements: 1 / 2 (50%) Max absolute difference: 3. Max relative difference: 3. x: array([0.5, 2. ]) y: array([ 0.5, -1. ])traceback:
- path: tests/test_utils_npy.py lineno: 67 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = -1, stop = 2, step = 1.5, endpoint = False expected = array([ 0.5, -1. ]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([6., 4., 2., 0.])), # Right-aligned, overshoots left (0, 5, 2, False, np.array([4., 2., 0.])), # Right-aligned, no endpoint (-1, 2, 1.5, True, np.array([2., 0.5, -1.])), # Step doesn t divide evenly, reverse it (-1, 2, 1.5, False, np.array([0.5, -1.])), # Without endpoint (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Negative step, includes endpoint overshoot (5, 0, -2, False, np.array([3., 1., -1.])), # No endpoint, skips last one (-3, 3, 2, True, np.array([5., 3., 1., -1., -3.])), # Large symmetric range, reverse ]) def test_nice_steps_right_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_right_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959cc954c0>, array([0.5, 2. ]), array([ 0.5, -1. ])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E Mismatched elements: 1 / 2 (50%) E Max absolute difference: 3. E Max relative difference: 3. E x: array([0.5, 2. ]) E y: array([ 0.5, -1. ]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.0003353790380060673outcome:
passed -
❌ Test 272
params: start=5, stop=0, step=-2, endpoint=true, expected="[ 5. 3. 1. -1.]"📌 Runtime Parameters
params: start: 5 stop: 0 step: -2 endpoint: True expected: [ 5. 3. 1. -1.] id: 5-0--2-True-expected4📌 Setup phase
duration:
0.00045669684186577797outcome:
passed📌 Call phase
duration:
0.0006229011341929436outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 (shapes (3,), (4,) mismatch) x: array([1, 3, 5]) y: array([ 5., 3., 1., -1.])traceback:
- path: tests/test_utils_npy.py lineno: 67 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = 5, stop = 0, step = -2, endpoint = True expected = array([ 5., 3., 1., -1.]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([6., 4., 2., 0.])), # Right-aligned, overshoots left (0, 5, 2, False, np.array([4., 2., 0.])), # Right-aligned, no endpoint (-1, 2, 1.5, True, np.array([2., 0.5, -1.])), # Step doesn t divide evenly, reverse it (-1, 2, 1.5, False, np.array([0.5, -1.])), # Without endpoint (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Negative step, includes endpoint overshoot (5, 0, -2, False, np.array([3., 1., -1.])), # No endpoint, skips last one (-3, 3, 2, True, np.array([5., 3., 1., -1., -3.])), # Large symmetric range, reverse ]) def test_nice_steps_right_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_right_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959cbb1ca0>, array([1, 3, 5]), array([ 5., 3., 1., -1.])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (shapes (3,), (4,) mismatch) E x: array([1, 3, 5]) E y: array([ 5., 3., 1., -1.]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.00039739906787872314outcome:
passed -
❌ Test 273
params: start=5, stop=0, step=-2, endpoint=false, expected="[ 3. 1. -1.]"📌 Runtime Parameters
params: start: 5 stop: 0 step: -2 endpoint: False expected: [ 3. 1. -1.] id: 5-0--2-False-expected5📌 Setup phase
duration:
0.0004786346107721329outcome:
passed📌 Call phase
duration:
0.0006029061041772366outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 (shapes (2,), (3,) mismatch) x: array([3, 5]) y: array([ 3., 1., -1.])traceback:
- path: tests/test_utils_npy.py lineno: 67 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = 5, stop = 0, step = -2, endpoint = False expected = array([ 3., 1., -1.]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([6., 4., 2., 0.])), # Right-aligned, overshoots left (0, 5, 2, False, np.array([4., 2., 0.])), # Right-aligned, no endpoint (-1, 2, 1.5, True, np.array([2., 0.5, -1.])), # Step doesn t divide evenly, reverse it (-1, 2, 1.5, False, np.array([0.5, -1.])), # Without endpoint (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Negative step, includes endpoint overshoot (5, 0, -2, False, np.array([3., 1., -1.])), # No endpoint, skips last one (-3, 3, 2, True, np.array([5., 3., 1., -1., -3.])), # Large symmetric range, reverse ]) def test_nice_steps_right_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_right_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959ccd90d0>, array([3, 5]), array([ 3., 1., -1.])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (shapes (2,), (3,) mismatch) E x: array([3, 5]) E y: array([ 3., 1., -1.]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.00035170698538422585outcome:
passed -
❌ Test 274
params: start=-3, stop=3, step=2, endpoint=true, expected="[ 5. 3. 1. -1. -3.]"📌 Runtime Parameters
params: start: -3 stop: 3 step: 2 endpoint: True expected: [ 5. 3. 1. -1. -3.] id: -3-3-2-True-expected6📌 Setup phase
duration:
0.00043578678742051125outcome:
passed📌 Call phase
duration:
0.000571549404412508outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionError: Not equal to tolerance rtol=1e-07, atol=0 (shapes (4,), (5,) mismatch) x: array([-3, -1, 1, 3]) y: array([ 5., 3., 1., -1., -3.])traceback:
- path: tests/test_utils_npy.py lineno: 67 message: None - path: .pixi/envs/default/lib/python3.8/contextlib.py lineno: 75 message: AssertionErrorlongrepr:
start = -3, stop = 3, step = 2, endpoint = True expected = array([ 5., 3., 1., -1., -3.]) @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ (0, 5, 2, True, np.array([6., 4., 2., 0.])), # Right-aligned, overshoots left (0, 5, 2, False, np.array([4., 2., 0.])), # Right-aligned, no endpoint (-1, 2, 1.5, True, np.array([2., 0.5, -1.])), # Step doesn t divide evenly, reverse it (-1, 2, 1.5, False, np.array([0.5, -1.])), # Without endpoint (5, 0, -2, True, np.array([5., 3., 1., -1.])), # Negative step, includes endpoint overshoot (5, 0, -2, False, np.array([3., 1., -1.])), # No endpoint, skips last one (-3, 3, 2, True, np.array([5., 3., 1., -1., -3.])), # Large symmetric range, reverse ]) def test_nice_steps_right_aligned(start, stop, step, endpoint, expected): > np.testing.assert_allclose(nice_steps_right_aligned(start, stop, step, endpoint), expected) tests/test_utils_npy.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<function assert_allclose.<locals>.compare at 0x7f959cc9db80>, array([-3, -1, 1, 3]), array([ 5., 3., 1., -1., -3.])) kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True} @wraps(func) def inner(*args, **kwds): with self._recreate_cm(): > return func(*args, **kwds) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (shapes (4,), (5,) mismatch) E x: array([-3, -1, 1, 3]) E y: array([ 5., 3., 1., -1., -3.]) .pixi/envs/default/lib/python3.8/contextlib.py:75: AssertionError📌 Teardown phase
duration:
0.0003771139308810234outcome:
passed
-
-
📄 test_utils_pv.py
↳ Function: test_put_with_progress_and_repr
-
❌ Test 347
params: value=0.0, expected_bar=" ", expected_color="\u001b[32m"📌 Runtime Parameters
params: value: 0.0 expected_bar: expected_color: [32m id: 0.0- -\x1b[32m📌 Setup phase
duration:
1.0025320868007839outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: START_TIME: value=2025-08-07 09:41:10.096505 alarm=NO_ALARM severity=NO_ALARM flag=True mask=7 time=1123407670.96540114 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559670.0966353 msecs: 96.63534164428711 relativeCreated: 9922.20664024353 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=4 time=1123407670.97228210 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559670.097258 msecs: 97.25809097290039 relativeCreated: 9922.829389572144 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407670.197652539 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559670.1977403 msecs: 197.7403163909912 relativeCreated: 10023.311614990234 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407670.298206087 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559670.2982717 msecs: 298.27165603637695 relativeCreated: 10123.84295463562 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407670.398796087 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559670.398868 msecs: 398.8680839538574 relativeCreated: 10224.4393825531 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407670.499400544 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559670.4994748 msecs: 499.47476387023926 relativeCreated: 10325.046062469482 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407670.600046643 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559670.6001194 msecs: 600.1193523406982 relativeCreated: 10425.690650939941 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407670.700654805 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559670.7007434 msecs: 700.7434368133545 relativeCreated: 10526.314735412598 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407670.801196730 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559670.8012671 msecs: 801.267147064209 relativeCreated: 10626.838445663452 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407670.901809294 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559670.90188 msecs: 901.8800258636475 relativeCreated: 10727.45132446289 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.2401559 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.002481 msecs: 2.4809837341308594 relativeCreated: 10828.052282333374 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503📌 Call phase
duration:
0.018451503943651915outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_pv.py lineno: 81 message: AssertionError: Expected bar ' ' not found in: [DEBUG] PUT start = 0.0, stop = 0.0 [ 0 |[32m██████████████████████████████[39m| 0 ] [1m0[0m assert []traceback:
- path: tests/test_utils_pv.py lineno: 81 message: AssertionErrorlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.103066190 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1031442 msecs: 103.14416885375977 relativeCreated: 10928.715467453003 thread: 140280520906432 threadName: Thread-3 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.getValue msg: VAL: Read value 0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.1101434 msecs: 110.14342308044434 relativeCreated: 10935.714721679688 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=0 new=0.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.1106527 msecs: 110.65268516540527 relativeCreated: 10936.223983764648 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.110758361 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1107793 msecs: 110.7792854309082 relativeCreated: 10936.350584030151 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.getValue msg: VAL: Read value 0.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.111742 msecs: 111.74201965332031 relativeCreated: 10937.313318252563 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=0.0 new=0.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.1124384 msecs: 112.43844032287598 relativeCreated: 10938.00973892212 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.112510117 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1125255 msecs: 112.52546310424805 relativeCreated: 10938.096761703491 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503longrepr:
value = 0.0, expected_bar = ' ', expected_color = '\x1b[32m' @pytest.mark.parametrize("value, expected_bar, expected_color", [ (0.0, " ", colorama.Fore.GREEN), (25.0, "██▌ ", colorama.Fore.GREEN), (50.0, "█████ ", colorama.Fore.GREEN), (75.0, "███████▌ ", colorama.Fore.GREEN), (100.0, "██████████", colorama.Fore.GREEN), (150.0, ">>>>>>>>>>", colorama.Fore.RED), (-50.0, "<<<<<<<<<<", colorama.Fore.RED) ]) def test_put_with_progress_and_repr(value, expected_bar, expected_color): pv = PV("TEST:VAL", connection_timeout=2.0) assert pv.wait_for_connection(timeout=2.0), "PV not connected" pv.put(0.0, wait=True) assert pv.get() == pytest.approx(0.0) # Capture tous les prints dans une liste printed_lines = [] def fake_print(*args, **kwargs): line = " ".join(str(a) for a in args) printed_lines.append(line) # Monkeypatch print uniquement dans ce contexte original_print = builtins.print builtins.print = fake_print try: pv.put(value, show_progress=True) finally: builtins.print = original_print # Vérifie que la bonne barre a été affichée au moins une fois matches = [line for line in printed_lines if f"|{expected_bar}|" in line] > assert matches, f"Expected bar '{expected_bar}' not found in:\n" + "\n".join(printed_lines) E AssertionError: Expected bar ' ' not found in: E [DEBUG] PUT start = 0.0, stop = 0.0 E [ 0 |[32m██████████████████████████████[39m| 0 ] [1m0[0m E E assert [] tests/test_utils_pv.py:81: AssertionError📌 Teardown phase
duration:
0.00032231584191322327outcome:
passed -
❌ Test 348
params: value=25.0, expected_bar="██▌ ", expected_color="\u001b[32m"📌 Runtime Parameters
params: value: 25.0 expected_bar: ██▌ expected_color: [32m id: 25.0-\u2588\u2588\u258c -\x1b[32m📌 Setup phase
duration:
0.0003795609809458256outcome:
passed📌 Call phase
duration:
0.0031677461229264736outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_pv.py lineno: 81 message: AssertionError: Expected bar '██▌ ' not found in: [DEBUG] PUT start = 0.0, stop = 25.0 [ 0 |[32m [39m| 25 ] [1m0[0m [DEBUG] Callback called with value = 25.0 [ 0 |[32m██████████████████████████████[39m| 25 ] [1m25[0m assert []traceback:
- path: tests/test_utils_pv.py lineno: 81 message: AssertionErrorlog:
- name: pcaspy.SimplePV.getValue msg: VAL: Read value 0.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.1204405 msecs: 120.44048309326172 relativeCreated: 10946.011781692505 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=0.0 new=0.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.1207085 msecs: 120.70846557617188 relativeCreated: 10946.279764175415 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123407671.120805198 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.120824 msecs: 120.82409858703613 relativeCreated: 10946.39539718628 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.getValue msg: VAL: Read value 0.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.1217787 msecs: 121.77872657775879 relativeCreated: 10947.350025177002 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=0.0 new=25.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.1221619 msecs: 122.161865234375 relativeCreated: 10947.733163833618 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=25.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.122235354 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1222517 msecs: 122.25174903869629 relativeCreated: 10947.82304763794 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503longrepr:
value = 25.0, expected_bar = '██▌ ', expected_color = '\x1b[32m' @pytest.mark.parametrize("value, expected_bar, expected_color", [ (0.0, " ", colorama.Fore.GREEN), (25.0, "██▌ ", colorama.Fore.GREEN), (50.0, "█████ ", colorama.Fore.GREEN), (75.0, "███████▌ ", colorama.Fore.GREEN), (100.0, "██████████", colorama.Fore.GREEN), (150.0, ">>>>>>>>>>", colorama.Fore.RED), (-50.0, "<<<<<<<<<<", colorama.Fore.RED) ]) def test_put_with_progress_and_repr(value, expected_bar, expected_color): pv = PV("TEST:VAL", connection_timeout=2.0) assert pv.wait_for_connection(timeout=2.0), "PV not connected" pv.put(0.0, wait=True) assert pv.get() == pytest.approx(0.0) # Capture tous les prints dans une liste printed_lines = [] def fake_print(*args, **kwargs): line = " ".join(str(a) for a in args) printed_lines.append(line) # Monkeypatch print uniquement dans ce contexte original_print = builtins.print builtins.print = fake_print try: pv.put(value, show_progress=True) finally: builtins.print = original_print # Vérifie que la bonne barre a été affichée au moins une fois matches = [line for line in printed_lines if f"|{expected_bar}|" in line] > assert matches, f"Expected bar '{expected_bar}' not found in:\n" + "\n".join(printed_lines) E AssertionError: Expected bar '██▌ ' not found in: E [DEBUG] PUT start = 0.0, stop = 25.0 E [ 0 |[32m [39m| 25 ] [1m0[0m E [DEBUG] Callback called with value = 25.0 E [ 0 |[32m██████████████████████████████[39m| 25 ] [1m25[0m E E assert [] tests/test_utils_pv.py:81: AssertionError📌 Teardown phase
duration:
0.00028527015820145607outcome:
passed -
❌ Test 349
params: value=50.0, expected_bar="█████ ", expected_color="\u001b[32m"📌 Runtime Parameters
params: value: 50.0 expected_bar: █████ expected_color: [32m id: 50.0-\u2588\u2588\u2588\u2588\u2588 -\x1b[32m📌 Setup phase
duration:
0.00037351762875914574outcome:
passed📌 Call phase
duration:
0.002666895743459463outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_pv.py lineno: 81 message: AssertionError: Expected bar '█████ ' not found in: [DEBUG] PUT start = 0.0, stop = 50.0 [ 0 |[32m [39m| 50 ] [1m0[0m assert []traceback:
- path: tests/test_utils_pv.py lineno: 81 message: AssertionErrorlog:
- name: pcaspy.SimplePV.getValue msg: VAL: Read value 25.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.1298895 msecs: 129.88948822021484 relativeCreated: 10955.460786819458 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=25.0 new=0.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.1301694 msecs: 130.16939163208008 relativeCreated: 10955.740690231323 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.130250539 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.13027 msecs: 130.27000427246094 relativeCreated: 10955.841302871704 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.getValue msg: VAL: Read value 0.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.1310213 msecs: 131.02126121520996 relativeCreated: 10956.592559814453 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=0.0 new=50.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.1313262 msecs: 131.32619857788086 relativeCreated: 10956.897497177124 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=50.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.131390019 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1314027 msecs: 131.40273094177246 relativeCreated: 10956.974029541016 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503longrepr:
value = 50.0, expected_bar = '█████ ', expected_color = '\x1b[32m' @pytest.mark.parametrize("value, expected_bar, expected_color", [ (0.0, " ", colorama.Fore.GREEN), (25.0, "██▌ ", colorama.Fore.GREEN), (50.0, "█████ ", colorama.Fore.GREEN), (75.0, "███████▌ ", colorama.Fore.GREEN), (100.0, "██████████", colorama.Fore.GREEN), (150.0, ">>>>>>>>>>", colorama.Fore.RED), (-50.0, "<<<<<<<<<<", colorama.Fore.RED) ]) def test_put_with_progress_and_repr(value, expected_bar, expected_color): pv = PV("TEST:VAL", connection_timeout=2.0) assert pv.wait_for_connection(timeout=2.0), "PV not connected" pv.put(0.0, wait=True) assert pv.get() == pytest.approx(0.0) # Capture tous les prints dans une liste printed_lines = [] def fake_print(*args, **kwargs): line = " ".join(str(a) for a in args) printed_lines.append(line) # Monkeypatch print uniquement dans ce contexte original_print = builtins.print builtins.print = fake_print try: pv.put(value, show_progress=True) finally: builtins.print = original_print # Vérifie que la bonne barre a été affichée au moins une fois matches = [line for line in printed_lines if f"|{expected_bar}|" in line] > assert matches, f"Expected bar '{expected_bar}' not found in:\n" + "\n".join(printed_lines) E AssertionError: Expected bar '█████ ' not found in: E [DEBUG] PUT start = 0.0, stop = 50.0 E [ 0 |[32m [39m| 50 ] [1m0[0m E E assert [] tests/test_utils_pv.py:81: AssertionError📌 Teardown phase
duration:
0.00024902308359742165outcome:
passed -
❌ Test 350
params: value=75.0, expected_bar="███████▌ ", expected_color="\u001b[32m"📌 Runtime Parameters
params: value: 75.0 expected_bar: ███████▌ expected_color: [32m id: 75.0-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c -\x1b[32m📌 Setup phase
duration:
0.00035189511254429817outcome:
passed📌 Call phase
duration:
0.0025131800211966038outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_pv.py lineno: 81 message: AssertionError: Expected bar '███████▌ ' not found in: [DEBUG] PUT start = 0.0, stop = 75.0 [ 0 |[32m [39m| 75 ] [1m0[0m [DEBUG] Callback called with value = 75.0 [ 0 |[32m██████████████████████████████[39m| 75 ] [1m75[0m assert []traceback:
- path: tests/test_utils_pv.py lineno: 81 message: AssertionErrorlog:
- name: pcaspy.SimplePV.getValue msg: VAL: Read value 50.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.1381779 msecs: 138.17787170410156 relativeCreated: 10963.749170303345 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=50.0 new=0.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.138454 msecs: 138.45396041870117 relativeCreated: 10964.025259017944 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.138526783 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1385403 msecs: 138.54026794433594 relativeCreated: 10964.11156654358 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.getValue msg: VAL: Read value 0.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.139216 msecs: 139.21594619750977 relativeCreated: 10964.787244796753 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=0.0 new=75.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.139495 msecs: 139.4948959350586 relativeCreated: 10965.066194534302 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=75.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.139551702 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.139563 msecs: 139.56308364868164 relativeCreated: 10965.134382247925 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503longrepr:
value = 75.0, expected_bar = '███████▌ ', expected_color = '\x1b[32m' @pytest.mark.parametrize("value, expected_bar, expected_color", [ (0.0, " ", colorama.Fore.GREEN), (25.0, "██▌ ", colorama.Fore.GREEN), (50.0, "█████ ", colorama.Fore.GREEN), (75.0, "███████▌ ", colorama.Fore.GREEN), (100.0, "██████████", colorama.Fore.GREEN), (150.0, ">>>>>>>>>>", colorama.Fore.RED), (-50.0, "<<<<<<<<<<", colorama.Fore.RED) ]) def test_put_with_progress_and_repr(value, expected_bar, expected_color): pv = PV("TEST:VAL", connection_timeout=2.0) assert pv.wait_for_connection(timeout=2.0), "PV not connected" pv.put(0.0, wait=True) assert pv.get() == pytest.approx(0.0) # Capture tous les prints dans une liste printed_lines = [] def fake_print(*args, **kwargs): line = " ".join(str(a) for a in args) printed_lines.append(line) # Monkeypatch print uniquement dans ce contexte original_print = builtins.print builtins.print = fake_print try: pv.put(value, show_progress=True) finally: builtins.print = original_print # Vérifie que la bonne barre a été affichée au moins une fois matches = [line for line in printed_lines if f"|{expected_bar}|" in line] > assert matches, f"Expected bar '{expected_bar}' not found in:\n" + "\n".join(printed_lines) E AssertionError: Expected bar '███████▌ ' not found in: E [DEBUG] PUT start = 0.0, stop = 75.0 E [ 0 |[32m [39m| 75 ] [1m0[0m E [DEBUG] Callback called with value = 75.0 E [ 0 |[32m██████████████████████████████[39m| 75 ] [1m75[0m E E assert [] tests/test_utils_pv.py:81: AssertionError📌 Teardown phase
duration:
0.00024887826293706894outcome:
passed -
❌ Test 351
params: value=100.0, expected_bar="██████████", expected_color="\u001b[32m"📌 Runtime Parameters
params: value: 100.0 expected_bar: ██████████ expected_color: [32m id: 100.0-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588-\x1b[32m📌 Setup phase
duration:
0.00036544306203722954outcome:
passed📌 Call phase
duration:
0.0032038060016930103outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_pv.py lineno: 81 message: AssertionError: Expected bar '██████████' not found in: [DEBUG] PUT start = 0.0, stop = 100.0 [ 0 |[32m [39m| 100 ] [1m0[0m assert []traceback:
- path: tests/test_utils_pv.py lineno: 81 message: AssertionErrorlog:
- name: pcaspy.SimplePV.getValue msg: VAL: Read value 75.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.1465538 msecs: 146.55375480651855 relativeCreated: 10972.125053405762 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=75.0 new=0.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.147117 msecs: 147.11689949035645 relativeCreated: 10972.6881980896 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.147285842 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1473205 msecs: 147.32050895690918 relativeCreated: 10972.891807556152 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.getValue msg: VAL: Read value 0.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.148074 msecs: 148.07391166687012 relativeCreated: 10973.645210266113 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=0.0 new=100.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.1483634 msecs: 148.3633518218994 relativeCreated: 10973.934650421143 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=100.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.148445632 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1484582 msecs: 148.45824241638184 relativeCreated: 10974.029541015625 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503longrepr:
value = 100.0, expected_bar = '██████████', expected_color = '\x1b[32m' @pytest.mark.parametrize("value, expected_bar, expected_color", [ (0.0, " ", colorama.Fore.GREEN), (25.0, "██▌ ", colorama.Fore.GREEN), (50.0, "█████ ", colorama.Fore.GREEN), (75.0, "███████▌ ", colorama.Fore.GREEN), (100.0, "██████████", colorama.Fore.GREEN), (150.0, ">>>>>>>>>>", colorama.Fore.RED), (-50.0, "<<<<<<<<<<", colorama.Fore.RED) ]) def test_put_with_progress_and_repr(value, expected_bar, expected_color): pv = PV("TEST:VAL", connection_timeout=2.0) assert pv.wait_for_connection(timeout=2.0), "PV not connected" pv.put(0.0, wait=True) assert pv.get() == pytest.approx(0.0) # Capture tous les prints dans une liste printed_lines = [] def fake_print(*args, **kwargs): line = " ".join(str(a) for a in args) printed_lines.append(line) # Monkeypatch print uniquement dans ce contexte original_print = builtins.print builtins.print = fake_print try: pv.put(value, show_progress=True) finally: builtins.print = original_print # Vérifie que la bonne barre a été affichée au moins une fois matches = [line for line in printed_lines if f"|{expected_bar}|" in line] > assert matches, f"Expected bar '{expected_bar}' not found in:\n" + "\n".join(printed_lines) E AssertionError: Expected bar '██████████' not found in: E [DEBUG] PUT start = 0.0, stop = 100.0 E [ 0 |[32m [39m| 100 ] [1m0[0m E E assert [] tests/test_utils_pv.py:81: AssertionError📌 Teardown phase
duration:
0.00023656245321035385outcome:
passed -
❌ Test 352
params: value=150.0, expected_bar=">>>>>>>>>>", expected_color="\u001b[31m"📌 Runtime Parameters
params: value: 150.0 expected_bar: >>>>>>>>>> expected_color: [31m id: 150.0->>>>>>>>>>-\x1b[31m📌 Setup phase
duration:
0.00036725401878356934outcome:
passed📌 Call phase
duration:
0.002586960792541504outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_pv.py lineno: 81 message: AssertionError: Expected bar '>>>>>>>>>>' not found in: [DEBUG] PUT start = 0.0, stop = 150.0 [ 0 |[32m [39m| 150 ] [1m0[0m [DEBUG] Callback called with value = 150.0 [ 0 |[32m██████████████████████████████[39m| 150 ] [1m150[0m assert []traceback:
- path: tests/test_utils_pv.py lineno: 81 message: AssertionErrorlog:
- name: pcaspy.SimplePV.getValue msg: VAL: Read value 100.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.1557822 msecs: 155.78222274780273 relativeCreated: 10981.353521347046 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=100.0 new=0.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.156084 msecs: 156.0840606689453 relativeCreated: 10981.655359268188 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.156143020 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1561558 msecs: 156.15582466125488 relativeCreated: 10981.727123260498 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.getValue msg: VAL: Read value 0.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.1568053 msecs: 156.80527687072754 relativeCreated: 10982.37657546997 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=0.0 new=150.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.1571262 msecs: 157.12618827819824 relativeCreated: 10982.697486877441 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=150.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.157182251 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1571934 msecs: 157.19342231750488 relativeCreated: 10982.764720916748 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503longrepr:
value = 150.0, expected_bar = '>>>>>>>>>>', expected_color = '\x1b[31m' @pytest.mark.parametrize("value, expected_bar, expected_color", [ (0.0, " ", colorama.Fore.GREEN), (25.0, "██▌ ", colorama.Fore.GREEN), (50.0, "█████ ", colorama.Fore.GREEN), (75.0, "███████▌ ", colorama.Fore.GREEN), (100.0, "██████████", colorama.Fore.GREEN), (150.0, ">>>>>>>>>>", colorama.Fore.RED), (-50.0, "<<<<<<<<<<", colorama.Fore.RED) ]) def test_put_with_progress_and_repr(value, expected_bar, expected_color): pv = PV("TEST:VAL", connection_timeout=2.0) assert pv.wait_for_connection(timeout=2.0), "PV not connected" pv.put(0.0, wait=True) assert pv.get() == pytest.approx(0.0) # Capture tous les prints dans une liste printed_lines = [] def fake_print(*args, **kwargs): line = " ".join(str(a) for a in args) printed_lines.append(line) # Monkeypatch print uniquement dans ce contexte original_print = builtins.print builtins.print = fake_print try: pv.put(value, show_progress=True) finally: builtins.print = original_print # Vérifie que la bonne barre a été affichée au moins une fois matches = [line for line in printed_lines if f"|{expected_bar}|" in line] > assert matches, f"Expected bar '{expected_bar}' not found in:\n" + "\n".join(printed_lines) E AssertionError: Expected bar '>>>>>>>>>>' not found in: E [DEBUG] PUT start = 0.0, stop = 150.0 E [ 0 |[32m [39m| 150 ] [1m0[0m E [DEBUG] Callback called with value = 150.0 E [ 0 |[32m██████████████████████████████[39m| 150 ] [1m150[0m E E assert [] tests/test_utils_pv.py:81: AssertionError📌 Teardown phase
duration:
0.00022720778360962868outcome:
passed -
❌ Test 353
params: value=-50.0, expected_bar="<<<<<<<<<<", expected_color="\u001b[31m"📌 Runtime Parameters
params: value: -50.0 expected_bar: <<<<<<<<<< expected_color: [31m id: -50.0-<<<<<<<<<<-\x1b[31m📌 Setup phase
duration:
0.0003413506783545017outcome:
passed📌 Call phase
duration:
0.002545254770666361outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_pv.py lineno: 81 message: AssertionError: Expected bar '<<<<<<<<<<' not found in: [DEBUG] PUT start = 0.0, stop = -50.0 [ 0 |[32m [39m| -50 ] [1m0[0m assert []traceback:
- path: tests/test_utils_pv.py lineno: 81 message: AssertionErrorlog:
- name: pcaspy.SimplePV.getValue msg: VAL: Read value 150.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.1640651 msecs: 164.06512260437012 relativeCreated: 10989.636421203613 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=150.0 new=0.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.1641836 msecs: 164.1836166381836 relativeCreated: 10989.754915237427 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.164272836 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.164292 msecs: 164.2920970916748 relativeCreated: 10989.863395690918 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.getValue msg: VAL: Read value 0.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.1650603 msecs: 165.06028175354004 relativeCreated: 10990.631580352783 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=0.0 new=-50.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.1653173 msecs: 165.31729698181152 relativeCreated: 10990.888595581055 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=-50.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.165374055 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1653879 msecs: 165.3878688812256 relativeCreated: 10990.959167480469 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503longrepr:
value = -50.0, expected_bar = '<<<<<<<<<<', expected_color = '\x1b[31m' @pytest.mark.parametrize("value, expected_bar, expected_color", [ (0.0, " ", colorama.Fore.GREEN), (25.0, "██▌ ", colorama.Fore.GREEN), (50.0, "█████ ", colorama.Fore.GREEN), (75.0, "███████▌ ", colorama.Fore.GREEN), (100.0, "██████████", colorama.Fore.GREEN), (150.0, ">>>>>>>>>>", colorama.Fore.RED), (-50.0, "<<<<<<<<<<", colorama.Fore.RED) ]) def test_put_with_progress_and_repr(value, expected_bar, expected_color): pv = PV("TEST:VAL", connection_timeout=2.0) assert pv.wait_for_connection(timeout=2.0), "PV not connected" pv.put(0.0, wait=True) assert pv.get() == pytest.approx(0.0) # Capture tous les prints dans une liste printed_lines = [] def fake_print(*args, **kwargs): line = " ".join(str(a) for a in args) printed_lines.append(line) # Monkeypatch print uniquement dans ce contexte original_print = builtins.print builtins.print = fake_print try: pv.put(value, show_progress=True) finally: builtins.print = original_print # Vérifie que la bonne barre a été affichée au moins une fois matches = [line for line in printed_lines if f"|{expected_bar}|" in line] > assert matches, f"Expected bar '{expected_bar}' not found in:\n" + "\n".join(printed_lines) E AssertionError: Expected bar '<<<<<<<<<<' not found in: E [DEBUG] PUT start = 0.0, stop = -50.0 E [ 0 |[32m [39m| -50 ] [1m0[0m E E assert [] tests/test_utils_pv.py:81: AssertionError📌 Teardown phase
duration:
0.00021757883951067924outcome:
passed
↳ Function: test_use_callback_context_manager
-
❌ Test 354
📌 Setup phase
duration:
0.0001530158333480358outcome:
passed📌 Call phase
duration:
0.0012676040641963482outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_pv.py lineno: 105 message: AttributeError: 'PV' object has no attribute '_callbacks'traceback:
- path: tests/test_utils_pv.py lineno: 105 message: AttributeErrorlog:
- name: pcaspy.SimplePV.getValue msg: VAL: Read value -50.0 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 649 funcName: getValue created: 1754559671.171734 msecs: 171.73409461975098 relativeCreated: 10997.305393218994 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.SimplePV.writeValue msg: VAL: ddf494d7ad69 root old=-50.0 new=0.0 args: None levelname: INFO levelno: 20 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 549 funcName: writeValue created: 1754559671.172088 msecs: 172.0879077911377 relativeCreated: 10997.65920639038 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123407671.172147478 args: None levelname: DEBUG levelno: 10 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pcaspy/driver.py filename: driver.py module: driver exc_info: None exc_text: None stack_info: None lineno: 175 funcName: setParam created: 1754559671.1721606 msecs: 172.16062545776367 relativeCreated: 10997.731924057007 thread: 140280529299136 threadName: Thread-4 processName: MainProcess process: 1503longrepr:
def test_use_callback_context_manager(): pv = PV("TEST:VAL", connection_timeout=2.0) assert pv.wait_for_connection(timeout=2.0), "PV not connected" pv.put(0.0, wait=True) seen_values = [] def callback(value=None, **kwargs): seen_values.append(value) > initial_count = len(pv._callbacks) E AttributeError: 'PV' object has no attribute '_callbacks' tests/test_utils_pv.py:105: AttributeError📌 Teardown phase
duration:
0.00020874803885817528outcome:
passed
-
-
📄 test_utils_tqdm_mod.py
↳ Function: test_float_alignment_in_bar
-
❌ Test 453
📌 Setup phase
duration:
0.00011511286720633507outcome:
passed📌 Call phase
duration:
0.0016535688191652298outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_tqdm_mod.py lineno: 130 message: assert 3 == 1 + where 3 = len({50, 64, 65}) + where {50, 64, 65} = set([50, 64, 64, 65, 65])traceback:
- path: tests/test_utils_tqdm_mod.py lineno: 130 message: AssertionErrorlongrepr:
def test_float_alignment_in_bar(): # Capture the tqdm output into a string buffer f = io.StringIO() with redirect_stdout(f): bar = tqdm_mod(total=100.12, desc="AlignBar", file=f, miniters=1, mininterval=0) bar.set(1.3333) bar.set(12.5) bar.set(99.89) bar.set(100.12) bar.close() # Extract lines containing the label lines = extract_lines(f.getvalue(), "AlignBar") # Expected formatted values using format_sizeof expected_values = [ "1.3/100.1", "12.5/100.1", "99.9/100.1", "100.1/100.1", ] # Extract the actual padded float/total strings from the full lines values = [] for line in lines: match = re.search(r"(\d{1,3}\.\d)/100\.1", line) if match: values.append(match.group(0)) # Ensure raw 100.12 never appears : format_sizeof must have truncated it assert all("100.12" not in line for line in lines), "Unrounded value '100.12' found in output!" # Check all expected values appear rounded as expected by format_sizeof for expected in expected_values: assert expected in values, f"Missing expected value: {expected}" # Check that all values are visually aligned, output with same length, to ensure that format_sizeof add the good number avec spaces print("\n") bar_segments = [] for line in lines: match = re.search(r".*?\]", line) if match: bar_segments.append(match.group(0)) print(match.group(0)) lengths = [len(seg) for seg in bar_segments] > assert len(set(lengths)) == 1 E assert 3 == 1 E + where 3 = len({50, 64, 65}) E + where {50, 64, 65} = set([50, 64, 64, 65, 65]) tests/test_utils_tqdm_mod.py:130: AssertionError📌 Teardown phase
duration:
0.00017314590513706207outcome:
passed
-
📚 Collected files
✅ (1 tests)
-
✅
- Outcome:
passed - result:
- nodeid: . type: Dir - Outcome:
✅ ci-reports (13 tests)
-
✅ ci-reports
- Outcome:
passed - result:
- nodeid: ci-reports/allure type: Dir - nodeid: ci-reports/junit type: Dir - nodeid: ci-reports/markdown type: Dir-
✅ ci-reports/allure
- Outcome:
passed - result:
- nodeid: ci-reports/allure/data type: Dir - nodeid: ci-reports/allure/export type: Dir - nodeid: ci-reports/allure/history type: Dir - nodeid: ci-reports/allure/plugin type: Dir - nodeid: ci-reports/allure/widgets type: Dir - Outcome:
-
✅ ci-reports/allure/data
- Outcome:
passed - result:
- nodeid: ci-reports/allure/data/test-cases type: Dir - Outcome:
-
✅ ci-reports/allure/data/test-cases
- Outcome:
passed - result:
[] - Outcome:
-
✅ ci-reports/allure/export
- Outcome:
passed - result:
[] - Outcome:
-
✅ ci-reports/allure/history
- Outcome:
passed - result:
[] - Outcome:
-
✅ ci-reports/allure/plugin
- Outcome:
passed - result:
- nodeid: ci-reports/allure/plugin/behaviors type: Dir - nodeid: ci-reports/allure/plugin/packages type: Dir - nodeid: ci-reports/allure/plugin/screen-diff type: Dir - Outcome:
-
✅ ci-reports/allure/plugin/behaviors
- Outcome:
passed - result:
[] - Outcome:
-
✅ ci-reports/allure/plugin/packages
- Outcome:
passed - result:
[] - Outcome:
-
✅ ci-reports/allure/plugin/screen-diff
- Outcome:
passed - result:
[] - Outcome:
-
✅ ci-reports/allure/widgets
- Outcome:
passed - result:
[] - Outcome:
-
✅ ci-reports/junit
- Outcome:
passed - result:
[] - Outcome:
-
✅ ci-reports/markdown
- Outcome:
passed - result:
[] - Outcome:
- Outcome:
✅ morbidissimo (6 tests)
-
✅ morbidissimo
- Outcome:
passed - result:
- nodeid: morbidissimo/morbidissimo type: Package-
✅ morbidissimo/morbidissimo
- Outcome:
passed - result:
- nodeid: morbidissimo/morbidissimo/modman type: Package - nodeid: morbidissimo/morbidissimo/morioc type: Package - Outcome:
-
✅ morbidissimo/morbidissimo/modman
- Outcome:
passed - result:
- nodeid: morbidissimo/morbidissimo/modman/scripts type: Dir - Outcome:
-
✅ morbidissimo/morbidissimo/modman/scripts
- Outcome:
passed - result:
[] - Outcome:
-
✅ morbidissimo/morbidissimo/morioc
- Outcome:
passed - result:
- nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py type: Module - Outcome:
-
✅ morbidissimo/morbidissimo/morioc/test_infer_type.py
- Outcome:
passed - result:
- nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_type_str type: Function lineno: 14 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_type_float type: Function lineno: 17 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_type_int type: Function lineno: 20 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_value_str type: Function lineno: 24 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_value_long_str type: Function lineno: 27 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_value_float type: Function lineno: 32 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_value_int type: Function lineno: 35 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_empty_value_str type: Function lineno: 39 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_empty_value_float type: Function lineno: 42 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_empty_value_int type: Function lineno: 45 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_pstrue_str type: Function lineno: 49 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_pstrue_float type: Function lineno: 52 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_pstrue_int type: Function lineno: 55 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_psfalse_str type: Function lineno: 59 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_psfalse_float type: Function lineno: 62 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_psfalse_int type: Function lineno: 65 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_None type: Function lineno: 69 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_True type: Function lineno: 72 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_False type: Function lineno: 75 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_nan type: Function lineno: 78 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_np_nan type: Function lineno: 81 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_np1D_int type: Function lineno: 85 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_np2D_int type: Function lineno: 91 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_np1D_float type: Function lineno: 99 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_np2D_float type: Function lineno: 105 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_np1D_bool type: Function lineno: 114 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_np1D_object type: Function lineno: 119 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_np_scalar_int type: Function lineno: 126 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_np_scalar_float type: Function lineno: 131 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_np_scalar_bool type: Function lineno: 136 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_list type: Function lineno: 145 - nodeid: morbidissimo/morbidissimo/morioc/test_infer_type.py::test_it_tuple type: Function lineno: 150 - Outcome:
- Outcome:
✅ outputs (1 tests)
-
✅ outputs
- Outcome:
passed - result:
[] - Outcome:
✅ slic (30 tests)
-
✅ slic
- Outcome:
passed - result:
- nodeid: slic/core type: Package - nodeid: slic/devices type: Package - nodeid: slic/gui type: Package - nodeid: slic/utils type: Package-
✅ slic/core
- Outcome:
passed - result:
- nodeid: slic/core/acquisition type: Package - nodeid: slic/core/adjustable type: Package - nodeid: slic/core/condition type: Package - nodeid: slic/core/device type: Package - nodeid: slic/core/scanner type: Package - nodeid: slic/core/sensor type: Package - nodeid: slic/core/task type: Package - Outcome:
-
✅ slic/core/acquisition
- Outcome:
passed - result:
- nodeid: slic/core/acquisition/broker type: Package - Outcome:
-
✅ slic/core/acquisition/broker
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/core/adjustable
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/core/condition
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/core/device
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/core/scanner
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/core/sensor
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/core/task
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/devices
- Outcome:
passed - result:
- nodeid: slic/devices/cameras type: Package - nodeid: slic/devices/endstations type: Package - nodeid: slic/devices/general type: Package - nodeid: slic/devices/loptics type: Package - nodeid: slic/devices/timing type: Package - nodeid: slic/devices/xdiagnostics type: Package - nodeid: slic/devices/xoptics type: Package - Outcome:
-
✅ slic/devices/cameras
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/devices/endstations
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/devices/general
- Outcome:
passed - result:
- nodeid: slic/devices/general/detectors type: Package - nodeid: slic/devices/general/unused type: Dir - Outcome:
-
✅ slic/devices/general/detectors
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/devices/general/unused
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/devices/loptics
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/devices/timing
- Outcome:
passed - result:
- nodeid: slic/devices/timing/events type: Package - Outcome:
-
✅ slic/devices/timing/events
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/devices/xdiagnostics
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/devices/xoptics
- Outcome:
passed - result:
- nodeid: slic/devices/xoptics/slits type: Package - nodeid: slic/devices/xoptics/unused type: Dir - Outcome:
-
✅ slic/devices/xoptics/slits
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/devices/xoptics/unused
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/gui
- Outcome:
passed - result:
- nodeid: slic/gui/daqpanels type: Package - nodeid: slic/gui/widgets type: Package - Outcome:
-
✅ slic/gui/daqpanels
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/gui/widgets
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/utils
- Outcome:
passed - result:
- nodeid: slic/utils/ioc type: Package - nodeid: slic/utils/unused type: Dir - Outcome:
-
✅ slic/utils/ioc
- Outcome:
passed - result:
[] - Outcome:
-
✅ slic/utils/unused
- Outcome:
passed - result:
- nodeid: slic/utils/unused/xsim type: Package - Outcome:
-
✅ slic/utils/unused/xsim
- Outcome:
passed - result:
[] - Outcome:
- Outcome:
✅ temp-ci (1 tests)
-
✅ temp-ci
- Outcome:
passed - result:
[] - Outcome:
✅ tests (43 tests)
-
✅ tests
- Outcome:
passed - result:
- nodeid: tests/test_utils_argfwd.py type: Module - nodeid: tests/test_utils_ask_yes_no.py type: Module - nodeid: tests/test_utils_channels.py type: Module - nodeid: tests/test_utils_config.py type: Module - nodeid: tests/test_utils_cpint.py type: Module - nodeid: tests/test_utils_debug.py type: Module - nodeid: tests/test_utils_dictext.py type: Module - nodeid: tests/test_utils_dotdir.py type: Module - nodeid: tests/test_utils_elog.py type: Module - nodeid: tests/test_utils_eval.py type: Module - nodeid: tests/test_utils_exceptions.py type: Module - nodeid: tests/test_utils_get_adj.py type: Module - nodeid: tests/test_utils_hastyepics.py type: Module - nodeid: tests/test_utils_ipy.py type: Module - nodeid: tests/test_utils_jsonext.py type: Module - nodeid: tests/test_utils_lazypv.py type: Module - nodeid: tests/test_utils_logcfg.py type: Module - nodeid: tests/test_utils_logign.py type: Module - nodeid: tests/test_utils_metaclasses.py type: Module - nodeid: tests/test_utils_namespace.py type: Module - nodeid: tests/test_utils_npy.py type: Module - nodeid: tests/test_utils_path.py type: Module - nodeid: tests/test_utils_picklio.py type: Module - nodeid: tests/test_utils_printing.py type: Module - nodeid: tests/test_utils_pv.py type: Module - nodeid: tests/test_utils_rangebar.py type: Module - nodeid: tests/test_utils_readable.py type: Module - nodeid: tests/test_utils_registry.py type: Module - nodeid: tests/test_utils_richcfg.py type: Module - nodeid: tests/test_utils_run_later.py type: Module - nodeid: tests/test_utils_sendmail.py type: Module - nodeid: tests/test_utils_shortcut.py type: Module - nodeid: tests/test_utils_snapshot.py type: Module - nodeid: tests/test_utils_termtitle.py type: Module - nodeid: tests/test_utils_tqdm_mod.py type: Module - nodeid: tests/test_utils_trinary.py type: Module - nodeid: tests/test_utils_typecast.py type: Module - nodeid: tests/test_utils_utils.py type: Module - nodeid: tests/test_utils_xrange.py type: Module-
✅ tests/test_utils_argfwd.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_argfwd.py::test_split_at[lst0-2-expected0] type: Function lineno: 8 - nodeid: tests/test_utils_argfwd.py::test_split_at[lst1-1-expected1] type: Function lineno: 8 - nodeid: tests/test_utils_argfwd.py::test_split_at[lst2-0-expected2] type: Function lineno: 8 - nodeid: tests/test_utils_argfwd.py::test_merge_lists_unique[a0-b0-expected0] type: Function lineno: 17 - nodeid: tests/test_utils_argfwd.py::test_merge_lists_unique[a1-b1-expected1] type: Function lineno: 17 - nodeid: tests/test_utils_argfwd.py::test_merge_lists_unique[a2-b2-expected2] type: Function lineno: 17 - nodeid: tests/test_utils_argfwd.py::test_merge_dicts_unique[a0-b0-expected0] type: Function lineno: 26 - nodeid: tests/test_utils_argfwd.py::test_merge_dicts_unique[a1-b1-expected1] type: Function lineno: 26 - nodeid: tests/test_utils_argfwd.py::test_merge_dicts_unique[a2-b2-expected2] type: Function lineno: 26 - nodeid: tests/test_utils_argfwd.py::test_make_params_pos_basic[pos0-expected_names0] type: Function lineno: 35 - nodeid: tests/test_utils_argfwd.py::test_make_params_pos_basic[pos1-expected_names1] type: Function lineno: 35 - nodeid: tests/test_utils_argfwd.py::test_make_params_pos_basic[pos2-expected_names2] type: Function lineno: 35 - nodeid: tests/test_utils_argfwd.py::test_make_params_kw_basic[kw0-expected_keys0-expected_defaults0] type: Function lineno: 48 - nodeid: tests/test_utils_argfwd.py::test_make_params_kw_basic[kw1-expected_keys1-expected_defaults1] type: Function lineno: 48 - nodeid: tests/test_utils_argfwd.py::test_make_params_kw_basic[kw2-expected_keys2-expected_defaults2] type: Function lineno: 48 - nodeid: tests/test_utils_argfwd.py::test_make_signature_parametrized[pos0-kw0-(x, y, z=3)] type: Function lineno: 60 - nodeid: tests/test_utils_argfwd.py::test_make_signature_parametrized[pos1-kw1-(a, b=1, c=2)] type: Function lineno: 60 - nodeid: tests/test_utils_argfwd.py::test_make_signature_parametrized[pos2-kw2-(flag=False)] type: Function lineno: 60 - nodeid: tests/test_utils_argfwd.py::test_get_args_parametrized[<lambda>-expected_pos0-expected_kw0] type: Function lineno: 71 - nodeid: tests/test_utils_argfwd.py::test_get_args_parametrized[<lambda>-expected_pos1-expected_kw1] type: Function lineno: 71 - nodeid: tests/test_utils_argfwd.py::test_get_args_parametrized[<lambda>-expected_pos2-expected_kw2] type: Function lineno: 71 - nodeid: tests/test_utils_argfwd.py::test_signature_visible[wrap_all-(a, b, d=30, c=10)] type: Function lineno: 104 - nodeid: tests/test_utils_argfwd.py::test_signature_visible[wrap_skip-(a, b, c=10, d=20)] type: Function lineno: 104 - nodeid: tests/test_utils_argfwd.py::test_signature_visible[wrap_ignore_all-(x, y, c=10, d=20)] type: Function lineno: 104 - nodeid: tests/test_utils_argfwd.py::test_wrapper_behavior[wrap_all-args0-kwargs0-36] type: Function lineno: 112 - nodeid: tests/test_utils_argfwd.py::test_wrapper_behavior[wrap_all-args1-kwargs1-11] type: Function lineno: 112 - nodeid: tests/test_utils_argfwd.py::test_wrapper_behavior[wrap_skip-args2-kwargs2-10] type: Function lineno: 112 - nodeid: tests/test_utils_argfwd.py::test_wrapper_behavior[wrap_ignore_all-args3-kwargs3-10] type: Function lineno: 112 - Outcome:
-
✅ tests/test_utils_ask_yes_no.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[None-y-True-Question? [y/n] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[None-yes-True-Question? [y/n] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[None-n-False-Question? [y/n] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[None-no-False-Question? [y/n] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[None-user_input4-True-Question? [y/n] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[None-user_input5-False-Question? [y/n] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[None-user_input6-True-Question? [y/n] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[y-y-True-Question? [Y/n] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[y-n-False-Question? [Y/n] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[y--True-Question? [Y/n] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[n-y-True-Question? [y/N] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[n-n-False-Question? [y/N] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no[n--False-Question? [y/N] ] type: Function lineno: 8 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_c[None-KeyboardInterrupt-False-n] type: Function lineno: 46 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_c[None-KeyboardInterrupt-True-y] type: Function lineno: 46 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_c[y-KeyboardInterrupt-False-n] type: Function lineno: 46 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_c[y-KeyboardInterrupt-True-y] type: Function lineno: 46 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_c[n-KeyboardInterrupt-False-n] type: Function lineno: 46 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_c[None-user_input5-False-n] type: Function lineno: 46 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_c[None-user_input6-True-y] type: Function lineno: 46 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_c[None-user_input7-False-None] type: Function lineno: 46 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_c[n-user_input8-False-None] type: Function lineno: 46 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_c[n-user_input9-False-Invalid] type: Function lineno: 46 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[None-EOFError-False-n] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[None-EOFError-True-y] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[y-EOFError-True-y] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[n-EOFError-True-y] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[n-EOFError-False-n] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[None-user_input5-True-y] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[None-user_input6-False-n] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[y-EOFError-True-None] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[n-EOFError-False-None] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[None-user_input9-True-None] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[n-user_input10-False-None] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[None-user_input11-True-None] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[None-user_input12-False-n] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_ctrl_d[None-user_input13-True-y] type: Function lineno: 79 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_mixed_sequences[None-invalid-None-user_input0-False] type: Function lineno: 117 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_mixed_sequences[None-None-notananswer-user_input1-True] type: Function lineno: 117 - nodeid: tests/test_utils_ask_yes_no.py::test_ask_yes_no_mixed_sequences[None-n-nop-user_input2-False] type: Function lineno: 117 - Outcome:
-
✅ tests/test_utils_channels.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_channels.py::test_load_channels_and_channels_class_with_professional_names type: Function lineno: 42 - Outcome:
-
✅ tests/test_utils_config.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_config.py::test_config_with_nested_and_list_data type: Function lineno: 15 - nodeid: tests/test_utils_config.py::test_config_with_strange_and_edge_keys type: Function lineno: 73 - Outcome:
-
✅ tests/test_utils_cpint.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_cpint.py::test_load_color_variants_all_keys_and_types[red] type: Function lineno: 9 - nodeid: tests/test_utils_cpint.py::test_load_color_variants_all_keys_and_types[blue] type: Function lineno: 9 - nodeid: tests/test_utils_cpint.py::test_load_color_variants_all_keys_and_types[yellow] type: Function lineno: 9 - nodeid: tests/test_utils_cpint.py::test_load_color_variants_all_keys_and_types[green] type: Function lineno: 9 - nodeid: tests/test_utils_cpint.py::test_load_color_variants_all_keys_and_types[cyan] type: Function lineno: 9 - nodeid: tests/test_utils_cpint.py::test_load_color_variants_all_keys_and_types[magenta] type: Function lineno: 9 - nodeid: tests/test_utils_cpint.py::test_load_color_variants_all_keys_and_types[white] type: Function lineno: 9 - nodeid: tests/test_utils_cpint.py::test_load_color_variants_all_keys_and_types[black] type: Function lineno: 9 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects0-color_spec0- | -['Fancy', 'list'] | {'a': 7} | None-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects1-color_spec1- - -{'k': [1, 2]} - 99 - ['X', ['Y']]-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects2-color_spec2- / -[] / {} / End-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects3-color_spec3-;-['', [3, 4]];done;0-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects4-color_spec4-::-['alpha', None]::['beta', {}]::stop-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects5-color_spec5- ... -['deep', ['deeper', ['deepest']]] ... X-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects6-color_spec6- // -{'dict': {'nested': [4, 5]}} // [True, False] // 6.28-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects7-color_spec7-==-['A', ['B']]==string==C-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects8-color_spec8- ++ -['Test', None, []] ++ {'v': 0}-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects9-None-;-['no', 'color'];plain-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects10-None- | -['simple'] | | 12-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects11-None- : -[['very', 'deep']] : {'ok': True}-None] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects12-color_spec12-|-['fail', 'color']|123-ValueError] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects13-color_spec13- * -['error'] * {}-ValueError] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects14-color_spec14-//-['nope']//['bad']-ValueError] type: Function lineno: 24 - nodeid: tests/test_utils_cpint.py::test_cprint_all_cases_fancy[objects15-color_spec15----wrong--base-ValueError] type: Function lineno: 24 - Outcome:
-
✅ tests/test_utils_debug.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_debug.py::test_traceable[A-entry0-creating: A(10, 20)] type: Function lineno: 21 - nodeid: tests/test_utils_debug.py::test_traceable[A-entry1-creating: A(10, 20, e=100)] type: Function lineno: 21 - nodeid: tests/test_utils_debug.py::test_traceable[A-entry2-creating: A('foo', [1, 2, 3], flag=True, data={'x': 9})] type: Function lineno: 21 - nodeid: tests/test_utils_debug.py::test_traceable[A-entry3-creating: A(CustomObj(big), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], name='test', meta='yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...)] type: Function lineno: 21 - nodeid: tests/test_utils_debug.py::test_traceable[A-entry4-creating: A('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..., [0, 0, 0, 0, 0])] type: Function lineno: 21 - nodeid: tests/test_utils_debug.py::test_short_repr[abc-10-'abc'] type: Function lineno: 52 - nodeid: tests/test_utils_debug.py::test_short_repr[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-10-'aaaaaaaaaa...] type: Function lineno: 52 - nodeid: tests/test_utils_debug.py::test_short_repr[12345-10-12345] type: Function lineno: 52 - nodeid: tests/test_utils_debug.py::test_short_repr[value3-15-[0, 0, 0, 0, 0,...] type: Function lineno: 52 - nodeid: tests/test_utils_debug.py::test_short_repr[None-10-None] type: Function lineno: 52 - nodeid: tests/test_utils_debug.py::test_short_repr[value5-20-Obj(xxxxxxxxxxxxxxxxx...] type: Function lineno: 52 - Outcome:
-
✅ tests/test_utils_dictext.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_dictext.py::test_attrdict_getattr[data0-x-1] type: Function lineno: 12 - nodeid: tests/test_utils_dictext.py::test_attrdict_getattr[data1-world-ok] type: Function lineno: 12 - nodeid: tests/test_utils_dictext.py::test_attrdict_getattr[data2-outer-expected2] type: Function lineno: 12 - nodeid: tests/test_utils_dictext.py::test_attrdict_setattr[initial0-nouveau-123] type: Function lineno: 26 - nodeid: tests/test_utils_dictext.py::test_attrdict_setattr[initial1-b-valeur] type: Function lineno: 26 - nodeid: tests/test_utils_dictext.py::test_attrdict_delattr[initial0-a-expected_keys0] type: Function lineno: 40 - nodeid: tests/test_utils_dictext.py::test_attrdict_delattr[initial1-k-expected_keys1] type: Function lineno: 40 - nodeid: tests/test_utils_dictext.py::test_attrdict_dir[data0-expected_keys0] type: Function lineno: 55 - nodeid: tests/test_utils_dictext.py::test_attrdict_dir[data1-expected_keys1] type: Function lineno: 55 - nodeid: tests/test_utils_dictext.py::test_attrdict_getattr_and_missing[data0-x-1-None] type: Function lineno: 69 - nodeid: tests/test_utils_dictext.py::test_attrdict_getattr_and_missing[data1-missing-None-'MyDict' object has no attribute 'missing'] type: Function lineno: 69 - nodeid: tests/test_utils_dictext.py::test_dictupdatemixin_init_and_update[init_kwargs0-None-kwargs0-expected0] type: Function lineno: 90 - nodeid: tests/test_utils_dictext.py::test_dictupdatemixin_init_and_update[init_kwargs1-other1-kwargs1-expected1] type: Function lineno: 90 - nodeid: tests/test_utils_dictext.py::test_dictupdatemixin_init_and_update[init_kwargs2-other2-kwargs2-expected2] type: Function lineno: 90 - nodeid: tests/test_utils_dictext.py::test_dictupdatemixin_init_and_update[init_kwargs3-None-kwargs3-expected3] type: Function lineno: 90 - nodeid: tests/test_utils_dictext.py::test_dictupdatemixin_init_and_update[init_kwargs4-other4-kwargs4-expected4] type: Function lineno: 90 - nodeid: tests/test_utils_dictext.py::test_dictupdatemixin_init_and_update[init_kwargs5-other5-kwargs5-expected5] type: Function lineno: 90 - Outcome:
-
✅ tests/test_utils_dotdir.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_dotdir.py::test_dotdir_creation_and_base_exists type: Function lineno: 14 - nodeid: tests/test_utils_dotdir.py::test_dotdir_repr_returns_path_str type: Function lineno: 28 - nodeid: tests/test_utils_dotdir.py::test_dotdir_call type: Function lineno: 35 - Outcome:
-
✅ tests/test_utils_elog.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_with_direct_password_and_real_check type: Function lineno: 32 - nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_asks_password_and_opens type: Function lineno: 45 - nodeid: tests/test_utils_elog.py::test_get_default_elog_with_path_home type: Function lineno: 63 - nodeid: tests/test_utils_elog.py::test_post type: Function lineno: 94 - nodeid: tests/test_utils_elog.py::test_screenshot type: Function lineno: 110 - Outcome:
-
✅ tests/test_utils_eval.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[1 + 2-3] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[4 - 2-2] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[3 * 5-15] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[10 / 2-5.0] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[10 % 3-1] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[-5--5] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[+7-7] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[1 + 2 * 3-7] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[(1 + 2) * 3-9] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[-(-3)-3] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[-2 + 4 * 2-6] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[(4 + 5) * (6 - 1)-45] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[(((3)))-3] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[-(-(-2))--2] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[3 + +4-7] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[3 + -4--1] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[True + 1-2] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid['string'-string] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid[1e1000 * 1e1000-inf] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_valid['a' + 'b'-ab] type: Function lineno: 7 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_raises_with_message[2 ** 3-Unsupported BinOp Pow] type: Function lineno: 33 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_raises_with_message[3 << 1-Unsupported BinOp LShift] type: Function lineno: 33 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_raises_with_message[1 < 2-Unsupported node type Compare] type: Function lineno: 33 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_raises_with_message[abs(3)-Unsupported node type Call] type: Function lineno: 33 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_raises_with_message[a + 2-Unsupported node type Name] type: Function lineno: 33 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_raises_with_message[string-Unsupported node type Name] type: Function lineno: 33 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_raises_with_message[[1, 2] + [3]-Unsupported node type List] type: Function lineno: 33 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_raises_with_message[{1: 2}-Unsupported node type Dict] type: Function lineno: 33 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_runtime_errors[1 / 0-ZeroDivisionError] type: Function lineno: 52 - nodeid: tests/test_utils_eval.py::test_arithmetic_eval_runtime_errors[10 % 0-ZeroDivisionError] type: Function lineno: 52 - nodeid: tests/test_utils_eval.py::test_forgiving_eval[1 + 2-3] type: Function lineno: 61 - nodeid: tests/test_utils_eval.py::test_forgiving_eval[bad + 2-bad + 2] type: Function lineno: 61 - nodeid: tests/test_utils_eval.py::test_forgiving_eval[1 / 0-1 / 0] type: Function lineno: 61 - nodeid: tests/test_utils_eval.py::test_forgiving_eval[2 ** 10-2 ** 10] type: Function lineno: 61 - nodeid: tests/test_utils_eval.py::test_defaulting_eval[3 * 4-0-12] type: Function lineno: 71 - nodeid: tests/test_utils_eval.py::test_defaulting_eval[invalid + 1-99-99] type: Function lineno: 71 - nodeid: tests/test_utils_eval.py::test_defaulting_eval[1 / 0--1--1] type: Function lineno: 71 - nodeid: tests/test_utils_eval.py::test_defaulting_eval[2 ** 10-42-42] type: Function lineno: 71 - Outcome:
-
✅ tests/test_utils_exceptions.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_exceptions.py::test_chained_exception_various[cause_key_error-High-level task failed\ncaused by KeyError: 'missing'] type: Function lineno: 28 - nodeid: tests/test_utils_exceptions.py::test_chained_exception_various[cause_index_error-High-level task failed\ncaused by IndexError: list index out of range] type: Function lineno: 28 - nodeid: tests/test_utils_exceptions.py::test_chained_exception_various[cause_zero_division-High-level task failed\ncaused by ZeroDivisionError: division by zero] type: Function lineno: 28 - nodeid: tests/test_utils_exceptions.py::test_chained_exception_various[cause_value_error-High-level task failed\ncaused by ValueError: invalid literal for int() with base 10: 'not_a_number'] type: Function lineno: 28 - nodeid: tests/test_utils_exceptions.py::test_chained_exception_various[cause_type_error-High-level task failed\ncaused by TypeError: can only concatenate str (not "int") to str] type: Function lineno: 28 - nodeid: tests/test_utils_exceptions.py::test_printed_exception[cause_key_error-KeyError: 'missing'] type: Function lineno: 60 - nodeid: tests/test_utils_exceptions.py::test_printed_exception[cause_index_error-IndexError: list index out of range] type: Function lineno: 60 - nodeid: tests/test_utils_exceptions.py::test_printed_exception[cause_zero_division-ZeroDivisionError: division by zero] type: Function lineno: 60 - nodeid: tests/test_utils_exceptions.py::test_printed_exception[cause_value_error-ValueError: invalid literal for int() with base 10: 'not_a_number'] type: Function lineno: 60 - nodeid: tests/test_utils_exceptions.py::test_printed_exception[cause_type_error-TypeError: can only concatenate str (not "int") to str] type: Function lineno: 60 - Outcome:
-
✅ tests/test_utils_get_adj.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_get_adj.py::test_get_adj_success type: Function lineno: 23 - nodeid: tests/test_utils_get_adj.py::test_get_adj_not_found type: Function lineno: 27 - nodeid: tests/test_utils_get_adj.py::test_ensure_adjs_mixed type: Function lineno: 31 - nodeid: tests/test_utils_get_adj.py::test_get_adjs_filter type: Function lineno: 37 - Outcome:
-
✅ tests/test_utils_hastyepics.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_hastyepics.py::test_motor_instantiation_fast_vs_epics type: Function lineno: 11 - nodeid: tests/test_utils_hastyepics.py::test_motor_without_suffix_and_dot type: Function lineno: 38 - nodeid: tests/test_utils_hastyepics.py::test_motor_invalid_name_raises type: Function lineno: 50 - nodeid: tests/test_utils_hastyepics.py::test_motor_init_list_has_no_disabled type: Function lineno: 55 - nodeid: tests/test_utils_hastyepics.py::test_motor_initializes_device_attrs type: Function lineno: 59 - nodeid: tests/test_utils_hastyepics.py::test_motor_pv_connection_skipped_by_default type: Function lineno: 82 - nodeid: tests/test_utils_hastyepics.py::test_motor_adds_all_extras_pvs type: Function lineno: 90 - nodeid: tests/test_utils_hastyepics.py::test_motor_PV_method_exists_and_works type: Function lineno: 109 - Outcome:
-
✅ tests/test_utils_ipy.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_ipy.py::test_devices_repr_fallback_and_ignore type: Function lineno: 19 - Outcome:
-
✅ tests/test_utils_jsonext.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_jsonext.py::test_json_validate_save_load[input_obj0-expected0] type: Function lineno: 7 - nodeid: tests/test_utils_jsonext.py::test_json_validate_save_load[input_obj1-42] type: Function lineno: 7 - nodeid: tests/test_utils_jsonext.py::test_json_validate_save_load[(1-1j)-expected2] type: Function lineno: 7 - nodeid: tests/test_utils_jsonext.py::test_json_validate_save_load[input_obj3-/tmp/file.txt] type: Function lineno: 7 - nodeid: tests/test_utils_jsonext.py::test_json_validate_save_load[input_obj4-expected4] type: Function lineno: 7 - nodeid: tests/test_utils_jsonext.py::test_json_validate_save_load[input_obj5-expected5] type: Function lineno: 7 - nodeid: tests/test_utils_jsonext.py::test_json_validate_save_load[input_obj6-expected6] type: Function lineno: 7 - nodeid: tests/test_utils_jsonext.py::test_json_validate_save_load[input_obj7-expected7] type: Function lineno: 7 - Outcome:
-
✅ tests/test_utils_lazypv.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_lazypv.py::test_getattr type: Function lineno: 7 - Outcome:
-
✅ tests/test_utils_logcfg.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_logcfg.py::test_custom_log_outputs[LONG-<lambda>-This is a LONG message] type: Function lineno: 21 - nodeid: tests/test_utils_logcfg.py::test_custom_log_outputs[ENLARGE-<lambda>-Please ENLARGE this!] type: Function lineno: 21 - nodeid: tests/test_utils_logcfg.py::test_import_logging_once_per_module type: Function lineno: 51 - Outcome:
-
✅ tests/test_utils_logign.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_logign.py::test_ignore_log_msg_behavior[WARNING-This should be ignored-This should appear] type: Function lineno: 9 - nodeid: tests/test_utils_logign.py::test_ignore_log_msg_behavior[ENLARGE-ENLARGE this-Keep this ENLARGE] type: Function lineno: 9 - nodeid: tests/test_utils_logign.py::test_ignore_only_by_level type: Function lineno: 42 - nodeid: tests/test_utils_logign.py::test_ignore_only_by_msg type: Function lineno: 64 - nodeid: tests/test_utils_logign.py::test_filter_removed_after_context type: Function lineno: 86 - Outcome:
-
✅ tests/test_utils_metaclasses.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_metaclasses.py::test_combine_classes_combines_methods type: Function lineno: 14 - nodeid: tests/test_utils_metaclasses.py::test_registryabc_combines_registrymeta_and_abcmeta type: Function lineno: 25 - Outcome:
-
✅ tests/test_utils_namespace.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_namespace.py::test_namespace_pretty_repr_mixed_and_nested type: Function lineno: 4 - Outcome:
-
✅ tests/test_utils_npy.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_npy.py::test_nice_arange[0-5-1-expected0] type: Function lineno: 7 - nodeid: tests/test_utils_npy.py::test_nice_arange[5-0--1-expected1] type: Function lineno: 7 - nodeid: tests/test_utils_npy.py::test_nice_arange[1-2-0.3-expected2] type: Function lineno: 7 - nodeid: tests/test_utils_npy.py::test_nice_arange[-2-2-1.5-expected3] type: Function lineno: 7 - nodeid: tests/test_utils_npy.py::test_nice_arange[2.5-0.5--0.4-expected4] type: Function lineno: 7 - nodeid: tests/test_utils_npy.py::test_nice_linspace[0-10-4-expected0] type: Function lineno: 18 - nodeid: tests/test_utils_npy.py::test_nice_linspace[5-15-2-expected1] type: Function lineno: 18 - nodeid: tests/test_utils_npy.py::test_nice_linspace[-5-5-4-expected2] type: Function lineno: 18 - nodeid: tests/test_utils_npy.py::test_nice_linspace[0-1-3-expected3] type: Function lineno: 18 - nodeid: tests/test_utils_npy.py::test_nice_linspace[2-2-3-expected4] type: Function lineno: 18 - nodeid: tests/test_utils_npy.py::test_nice_linspace[3-0-3-expected5] type: Function lineno: 18 - nodeid: tests/test_utils_npy.py::test_nice_linspace[0-1-0-expected6] type: Function lineno: 18 - nodeid: tests/test_utils_npy.py::test_nice_steps_centered[-2-2-2-True-expected0] type: Function lineno: 32 - nodeid: tests/test_utils_npy.py::test_nice_steps_centered[0-5-2-True-expected1] type: Function lineno: 32 - nodeid: tests/test_utils_npy.py::test_nice_steps_centered[0-5-2-False-expected2] type: Function lineno: 32 - nodeid: tests/test_utils_npy.py::test_nice_steps_centered[-1-2-1.5-True-expected3] type: Function lineno: 32 - nodeid: tests/test_utils_npy.py::test_nice_steps_left_aligned[0-5-2-True-expected0] type: Function lineno: 42 - nodeid: tests/test_utils_npy.py::test_nice_steps_left_aligned[0-5-2-False-expected1] type: Function lineno: 42 - nodeid: tests/test_utils_npy.py::test_nice_steps_left_aligned[-1-2-1.5-True-expected2] type: Function lineno: 42 - nodeid: tests/test_utils_npy.py::test_nice_steps_left_aligned[-1-2-1.5-False-expected3] type: Function lineno: 42 - nodeid: tests/test_utils_npy.py::test_nice_steps_left_aligned[-2-1-1.2-True-expected4] type: Function lineno: 42 - nodeid: tests/test_utils_npy.py::test_nice_steps_left_aligned[5-0--2-True-expected5] type: Function lineno: 42 - nodeid: tests/test_utils_npy.py::test_nice_steps_left_aligned[5-0--2-False-expected6] type: Function lineno: 42 - nodeid: tests/test_utils_npy.py::test_nice_steps_right_aligned[0-5-2-True-expected0] type: Function lineno: 56 - nodeid: tests/test_utils_npy.py::test_nice_steps_right_aligned[0-5-2-False-expected1] type: Function lineno: 56 - nodeid: tests/test_utils_npy.py::test_nice_steps_right_aligned[-1-2-1.5-True-expected2] type: Function lineno: 56 - nodeid: tests/test_utils_npy.py::test_nice_steps_right_aligned[-1-2-1.5-False-expected3] type: Function lineno: 56 - nodeid: tests/test_utils_npy.py::test_nice_steps_right_aligned[5-0--2-True-expected4] type: Function lineno: 56 - nodeid: tests/test_utils_npy.py::test_nice_steps_right_aligned[5-0--2-False-expected5] type: Function lineno: 56 - nodeid: tests/test_utils_npy.py::test_nice_steps_right_aligned[-3-3-2-True-expected6] type: Function lineno: 56 - nodeid: tests/test_utils_npy.py::test_within_scalar[5-0-10-True] type: Function lineno: 70 - nodeid: tests/test_utils_npy.py::test_within_scalar[5-6-10-False] type: Function lineno: 70 - nodeid: tests/test_utils_npy.py::test_within_scalar[5-None-10-True] type: Function lineno: 70 - nodeid: tests/test_utils_npy.py::test_within_scalar[5-0-None-True] type: Function lineno: 70 - nodeid: tests/test_utils_npy.py::test_within_scalar[5-None-None-True] type: Function lineno: 70 - nodeid: tests/test_utils_npy.py::test_within_fraction[data0-2-5-0.6] type: Function lineno: 81 - nodeid: tests/test_utils_npy.py::test_within_fraction[data1-5-25-0.6666666666666666] type: Function lineno: 81 - nodeid: tests/test_utils_npy.py::test_within_fraction[data2-None-2-0.3333333333333333] type: Function lineno: 81 - nodeid: tests/test_utils_npy.py::test_within_fraction[data3-0-1-0] type: Function lineno: 81 - nodeid: tests/test_utils_npy.py::test_fraction_to_percentage[0.456-1-45.6] type: Function lineno: 92 - nodeid: tests/test_utils_npy.py::test_fraction_to_percentage[0.12345-2-12.35] type: Function lineno: 92 - nodeid: tests/test_utils_npy.py::test_fraction_to_percentage[0.9999-0-100.0] type: Function lineno: 92 - nodeid: tests/test_utils_npy.py::test_get_dtype[val0-ndarray] type: Function lineno: 101 - nodeid: tests/test_utils_npy.py::test_get_dtype[val1-list] type: Function lineno: 101 - nodeid: tests/test_utils_npy.py::test_get_dtype[3.14-float] type: Function lineno: 101 - nodeid: tests/test_utils_npy.py::test_get_shape[val0-expected0] type: Function lineno: 114 - nodeid: tests/test_utils_npy.py::test_get_shape[val1-expected1] type: Function lineno: 114 - nodeid: tests/test_utils_npy.py::test_get_shape[42-expected2] type: Function lineno: 114 - nodeid: tests/test_utils_npy.py::test_is_array[val0-True] type: Function lineno: 123 - nodeid: tests/test_utils_npy.py::test_is_array[val1-False] type: Function lineno: 123 - nodeid: tests/test_utils_npy.py::test_is_array[42-False] type: Function lineno: 123 - Outcome:
-
✅ tests/test_utils_path.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_path.py::test_can_create_all_files_user_says_yes type: Function lineno: 10 - nodeid: tests/test_utils_path.py::test_can_create_all_files_user_says_no type: Function lineno: 36 - nodeid: tests/test_utils_path.py::test_make_missing_dir_creates_folder type: Function lineno: 54 - nodeid: tests/test_utils_path.py::test_glob_files_returns_matching_files_only type: Function lineno: 66 - nodeid: tests/test_utils_path.py::test_filter_files_excludes_directories type: Function lineno: 83 - Outcome:
-
✅ tests/test_utils_picklio.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_picklio.py::test_pickle_and_unpickle[test_obj0] type: Function lineno: 6 - nodeid: tests/test_utils_picklio.py::test_pickle_and_unpickle[test_obj1] type: Function lineno: 6 - nodeid: tests/test_utils_picklio.py::test_pickle_and_unpickle[simple string] type: Function lineno: 6 - nodeid: tests/test_utils_picklio.py::test_pickle_and_unpickle[42] type: Function lineno: 6 - nodeid: tests/test_utils_picklio.py::test_pickle_and_unpickle[3.14159] type: Function lineno: 6 - nodeid: tests/test_utils_picklio.py::test_pickle_and_unpickle[test_obj5] type: Function lineno: 6 - nodeid: tests/test_utils_picklio.py::test_pickle_and_unpickle[test_obj6] type: Function lineno: 6 - Outcome:
-
✅ tests/test_utils_printing.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_printing.py::test_maxlen_valid[seq0-3] type: Function lineno: 8 - nodeid: tests/test_utils_printing.py::test_maxlen_valid[seq1-0] type: Function lineno: 8 - nodeid: tests/test_utils_printing.py::test_maxlen_valid[seq2-3] type: Function lineno: 8 - nodeid: tests/test_utils_printing.py::test_maxlen_valid[seq3-2] type: Function lineno: 8 - nodeid: tests/test_utils_printing.py::test_strlen[42-2] type: Function lineno: 17 - nodeid: tests/test_utils_printing.py::test_strlen[hello-5] type: Function lineno: 17 - nodeid: tests/test_utils_printing.py::test_strlen[False-5] type: Function lineno: 17 - nodeid: tests/test_utils_printing.py::test_strlen[None-4] type: Function lineno: 17 - nodeid: tests/test_utils_printing.py::test_strlen[value4-9] type: Function lineno: 17 - nodeid: tests/test_utils_printing.py::test_strlen[value5-8] type: Function lineno: 17 - nodeid: tests/test_utils_printing.py::test_strlen[value6-6] type: Function lineno: 17 - nodeid: tests/test_utils_printing.py::test_strlen[-0] type: Function lineno: 17 - nodeid: tests/test_utils_printing.py::test_strlen[this is a phrase-16] type: Function lineno: 17 - nodeid: tests/test_utils_printing.py::test_maxstrlen[seq0-6] type: Function lineno: 31 - nodeid: tests/test_utils_printing.py::test_maxstrlen[seq1-3] type: Function lineno: 31 - nodeid: tests/test_utils_printing.py::test_maxstrlen[seq2-9] type: Function lineno: 31 - nodeid: tests/test_utils_printing.py::test_maxstrlen[seq3-16] type: Function lineno: 31 - nodeid: tests/test_utils_printing.py::test_maxstrlen[seq4-5] type: Function lineno: 31 - nodeid: tests/test_utils_printing.py::test_transpose_matrix[data0-expected0] type: Function lineno: 41 - nodeid: tests/test_utils_printing.py::test_transpose_matrix[data1-expected1] type: Function lineno: 41 - nodeid: tests/test_utils_printing.py::test_transpose_matrix[data2-expected2] type: Function lineno: 41 - nodeid: tests/test_utils_printing.py::test_prepend[initial0-1-expected0] type: Function lineno: 50 - nodeid: tests/test_utils_printing.py::test_prepend[initial1-a-expected1] type: Function lineno: 50 - nodeid: tests/test_utils_printing.py::test_prepend[initial2-prepend2-expected2] type: Function lineno: 50 - nodeid: tests/test_utils_printing.py::test_prepend[initial3-prepend3-expected3] type: Function lineno: 50 - nodeid: tests/test_utils_printing.py::test_fmt_table_line[entries0-widths0- a bbb] type: Function lineno: 61 - nodeid: tests/test_utils_printing.py::test_fmt_table_line[entries1-widths1- 1 2] type: Function lineno: 61 - nodeid: tests/test_utils_printing.py::test_fmt_table_line[entries2-widths2- long val] type: Function lineno: 61 - nodeid: tests/test_utils_printing.py::test_fmt_table_line[entries3-widths3- True False] type: Function lineno: 61 - nodeid: tests/test_utils_printing.py::test_fmt_table_line[entries4-widths4- 123 4567] type: Function lineno: 61 - nodeid: tests/test_utils_printing.py::test_fmt_table_line[entries5-widths5- text with space end] type: Function lineno: 61 - nodeid: tests/test_utils_printing.py::test_fmt_table_line[entries6-widths6- {'a': 1} {'b': 2}] type: Function lineno: 61 - nodeid: tests/test_utils_printing.py::test_fmt_table_line[entries7-widths7- [1, 2] [3, 4]] type: Function lineno: 61 - nodeid: tests/test_utils_printing.py::test_fmt_label_sep[widths0------ ----] type: Function lineno: 74 - nodeid: tests/test_utils_printing.py::test_fmt_label_sep[widths1-=-== ===] type: Function lineno: 74 - nodeid: tests/test_utils_printing.py::test_fmt_label_sep[widths2-*-***** **] type: Function lineno: 74 - nodeid: tests/test_utils_printing.py::test_printable_dict_with_header[d0-HeaderTest-expected_lines0] type: Function lineno: 82 - nodeid: tests/test_utils_printing.py::test_printable_dict_of_dicts type: Function lineno: 101 - nodeid: tests/test_utils_printing.py::test_printable_table[data0-labels0-A: ID\nB: \u2713 Success?\nC: SuperPrecisionValue\nD: Result Metadata\n\n# A B C D\n- ------------- ----- ---------- ----------------------------\n0 X1 True 0.1234 {'meta': 'ok'}\n1 AnotherSample False 98765.4321 {'meta': [1, 2, 3]}\n2 Z None 0.0 {'meta': {'nested_key': 42}}] type: Function lineno: 128 - Outcome:
-
✅ tests/test_utils_pv.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_pv.py::test_put_with_progress_and_repr[0.0- -\x1b[32m] type: Function lineno: 47 - nodeid: tests/test_utils_pv.py::test_put_with_progress_and_repr[25.0-\u2588\u2588\u258c -\x1b[32m] type: Function lineno: 47 - nodeid: tests/test_utils_pv.py::test_put_with_progress_and_repr[50.0-\u2588\u2588\u2588\u2588\u2588 -\x1b[32m] type: Function lineno: 47 - nodeid: tests/test_utils_pv.py::test_put_with_progress_and_repr[75.0-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c -\x1b[32m] type: Function lineno: 47 - nodeid: tests/test_utils_pv.py::test_put_with_progress_and_repr[100.0-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588-\x1b[32m] type: Function lineno: 47 - nodeid: tests/test_utils_pv.py::test_put_with_progress_and_repr[150.0->>>>>>>>>>-\x1b[31m] type: Function lineno: 47 - nodeid: tests/test_utils_pv.py::test_put_with_progress_and_repr[-50.0-<<<<<<<<<<-\x1b[31m] type: Function lineno: 47 - nodeid: tests/test_utils_pv.py::test_use_callback_context_manager type: Function lineno: 94 - Outcome:
-
✅ tests/test_utils_rangebar.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_rangebar.py::test_full_progress_bar type: Function lineno: 14 - nodeid: tests/test_utils_rangebar.py::test_half_progress_bar type: Function lineno: 27 - nodeid: tests/test_utils_rangebar.py::test_zero_progress_bar type: Function lineno: 42 - nodeid: tests/test_utils_rangebar.py::test_overflow_bar type: Function lineno: 56 - nodeid: tests/test_utils_rangebar.py::test_underflow_bar type: Function lineno: 69 - nodeid: tests/test_utils_rangebar.py::test_repr type: Function lineno: 82 - nodeid: tests/test_utils_rangebar.py::test_each_value_separately[0- ] type: Function lineno: 89 - nodeid: tests/test_utils_rangebar.py::test_each_value_separately[10-\u2588 ] type: Function lineno: 89 - nodeid: tests/test_utils_rangebar.py::test_each_value_separately[25-\u2588\u2588\u258c ] type: Function lineno: 89 - nodeid: tests/test_utils_rangebar.py::test_each_value_separately[27-\u2588\u2588\u258a ] type: Function lineno: 89 - nodeid: tests/test_utils_rangebar.py::test_each_value_separately[49-\u2588\u2588\u2588\u2588\u2589 ] type: Function lineno: 89 - nodeid: tests/test_utils_rangebar.py::test_each_value_separately[50-\u2588\u2588\u2588\u2588\u2588 ] type: Function lineno: 89 - nodeid: tests/test_utils_rangebar.py::test_each_value_separately[51-\u2588\u2588\u2588\u2588\u2588\u258f ] type: Function lineno: 89 - nodeid: tests/test_utils_rangebar.py::test_each_value_separately[73-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258e ] type: Function lineno: 89 - nodeid: tests/test_utils_rangebar.py::test_each_value_separately[75-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c ] type: Function lineno: 89 - nodeid: tests/test_utils_rangebar.py::test_each_value_separately[90-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 ] type: Function lineno: 89 - nodeid: tests/test_utils_rangebar.py::test_each_value_separately[100-\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588] type: Function lineno: 89 - Outcome:
-
✅ tests/test_utils_readable.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_readable.py::test_readable_seconds[59.4-59 seconds] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[59.9-60 seconds] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[119.9-120 seconds] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[120.1-2 minutes] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[3599.9-60 minutes] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[3600.1-60 minutes] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[7199.9-120 minutes] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[7200.1-2 hours] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[90.4-90 seconds] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[90.6-91 seconds] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[121.9-2 minutes] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[1296000.0-2 weeks] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[2592000.0-4 weeks] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[2800000.0-5 weeks] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[3888000.0-6 weeks] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[5097600.0-8 weeks] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[5184000.0-9 weeks] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[5270400.0-2 months] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[23328000.0-9 months] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[31104000.0-12 months] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[33696000.0-13 months] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[59616000.0-23 months] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[62208000.0-24 months] type: Function lineno: 3 - nodeid: tests/test_utils_readable.py::test_readable_seconds[64208000.0-2 years] type: Function lineno: 3 - Outcome:
-
✅ tests/test_utils_registry.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_registry.py::test_metaclass_creates_weakset type: Function lineno: 13 - nodeid: tests/test_utils_registry.py::test_metaclass_tracks_instances type: Function lineno: 22 - nodeid: tests/test_utils_registry.py::test_registry_inheritance type: Function lineno: 32 - nodeid: tests/test_utils_registry.py::test_instance_tracking type: Function lineno: 39 - nodeid: tests/test_utils_registry.py::test_collect_instances_recursive type: Function lineno: 53 - nodeid: tests/test_utils_registry.py::test_instances_function type: Function lineno: 69 - nodeid: tests/test_utils_registry.py::test_non_registry_class_error type: Function lineno: 93 - nodeid: tests/test_utils_registry.py::test_signature_preservation type: Function lineno: 102 - Outcome:
-
✅ tests/test_utils_richcfg.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_richcfg.py::test_rich_inspector_outputs_more_than_builtin type: Function lineno: 45 - Outcome:
-
✅ tests/test_utils_run_later.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_run_later.py::test_init_and_repr type: Function lineno: 17 - nodeid: tests/test_utils_run_later.py::test_call type: Function lineno: 22 - nodeid: tests/test_utils_run_later.py::test_matmul_with_string type: Function lineno: 27 - nodeid: tests/test_utils_run_later.py::test_matmul_with_list type: Function lineno: 32 - nodeid: tests/test_utils_run_later.py::test_matmul_with_single_int type: Function lineno: 37 - nodeid: tests/test_utils_run_later.py::test_run_at_future_triggered_and_logs type: Function lineno: 49 - nodeid: tests/test_utils_run_later.py::test_run_at_already_past type: Function lineno: 61 - nodeid: tests/test_utils_run_later.py::test_run_in_future_triggered_and_logs type: Function lineno: 72 - nodeid: tests/test_utils_run_later.py::test_run_in_past type: Function lineno: 83 - nodeid: tests/test_utils_run_later.py::test_run_later_with_seconds type: Function lineno: 95 - nodeid: tests/test_utils_run_later.py::test_run_later_with_past_datetime type: Function lineno: 105 - nodeid: tests/test_utils_run_later.py::test_run_at_tqdm_multiple_updates type: Function lineno: 115 - nodeid: tests/test_utils_run_later.py::test_today_basic type: Function lineno: 137 - nodeid: tests/test_utils_run_later.py::test_tomorrow_basic type: Function lineno: 143 - nodeid: tests/test_utils_run_later.py::test_yesterday_basic type: Function lineno: 149 - nodeid: tests/test_utils_run_later.py::test_today_matmul_string type: Function lineno: 155 - nodeid: tests/test_utils_run_later.py::test_tomorrow_matmul_list type: Function lineno: 161 - nodeid: tests/test_utils_run_later.py::test_yesterday_matmul_single type: Function lineno: 167 - Outcome:
-
✅ tests/test_utils_sendmail.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_sendmail.py::test_sendmail_real_local_verbose type: Function lineno: 70 - Outcome:
-
✅ tests/test_utils_shortcut.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_shortcut.py::TestShortcutInitialization type: Class - nodeid: tests/test_utils_shortcut.py::test_run_method type: Function lineno: 31 - nodeid: tests/test_utils_shortcut.py::test_repr_output type: Function lineno: 54 - nodeid: tests/test_utils_shortcut.py::test_source_with_regular_function type: Function lineno: 62 - nodeid: tests/test_utils_shortcut.py::test_source_error_handling type: Function lineno: 76 - nodeid: tests/test_utils_shortcut.py::test_as_shortcut_basic type: Function lineno: 86 - nodeid: tests/test_utils_shortcut.py::test_as_shortcut_with_name type: Function lineno: 96 - nodeid: tests/test_utils_shortcut.py::test_as_shortcut_factory_pattern type: Function lineno: 104 - nodeid: tests/test_utils_shortcut.py::TestShortcutsSingleton type: Class - nodeid: tests/test_utils_shortcut.py::TestFullIntegration type: Class - nodeid: tests/test_utils_shortcut.py::test_registry_inheritance type: Function lineno: 204 - Outcome:
-
✅ tests/test_utils_shortcut.py::TestFullIntegration
- Outcome:
passed - result:
- nodeid: tests/test_utils_shortcut.py::TestFullIntegration::test_workflow type: Function lineno: 170 - nodeid: tests/test_utils_shortcut.py::TestFullIntegration::test_multiple_shortcuts type: Function lineno: 190 - Outcome:
-
✅ tests/test_utils_shortcut.py::TestShortcutInitialization
- Outcome:
passed - result:
- nodeid: tests/test_utils_shortcut.py::TestShortcutInitialization::test_init_with_custom_name type: Function lineno: 16 - nodeid: tests/test_utils_shortcut.py::TestShortcutInitialization::test_init_without_name type: Function lineno: 23 - Outcome:
-
✅ tests/test_utils_shortcut.py::TestShortcutsSingleton
- Outcome:
passed - result:
- nodeid: tests/test_utils_shortcut.py::TestShortcutsSingleton::test_singleton_behavior type: Function lineno: 121 - nodeid: tests/test_utils_shortcut.py::TestShortcutsSingleton::test_registration type: Function lineno: 127 - nodeid: tests/test_utils_shortcut.py::TestShortcutsSingleton::test_getitem_access type: Function lineno: 141 - nodeid: tests/test_utils_shortcut.py::TestShortcutsSingleton::test_missing_key type: Function lineno: 149 - nodeid: tests/test_utils_shortcut.py::TestShortcutsSingleton::test_repr_output type: Function lineno: 154 - Outcome:
-
✅ tests/test_utils_snapshot.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_snapshot.py::test_snapshot[exclude_internals] type: Function lineno: 83 - nodeid: tests/test_utils_snapshot.py::test_snapshot[include_internals] type: Function lineno: 83 - nodeid: tests/test_utils_snapshot.py::test_snapshot[empty_case] type: Function lineno: 83 - nodeid: tests/test_utils_snapshot.py::test_snapshot[sort_str] type: Function lineno: 83 - nodeid: tests/test_utils_snapshot.py::test_snapshot[sort_id] type: Function lineno: 83 - nodeid: tests/test_utils_snapshot.py::test_snapshot[sort_case_insensitive] type: Function lineno: 83 - nodeid: tests/test_utils_snapshot.py::test_snapshot[sort_length] type: Function lineno: 83 - nodeid: tests/test_utils_snapshot.py::test_snapshot[sort_reverse] type: Function lineno: 83 - Outcome:
-
✅ tests/test_utils_termtitle.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_termtitle.py::test_terminal_title_with_tmux type: Function lineno: 9 - Outcome:
-
✅ tests/test_utils_tqdm_mod.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_tqdm_mod.py::test_complete_progress_bar type: Function lineno: 25 - nodeid: tests/test_utils_tqdm_mod.py::test_set_progress_multiple_points type: Function lineno: 42 - nodeid: tests/test_utils_tqdm_mod.py::test_format_sizeof_alignment type: Function lineno: 65 - nodeid: tests/test_utils_tqdm_mod.py::test_float_alignment_in_bar type: Function lineno: 83 - nodeid: tests/test_utils_tqdm_mod.py::test_custom_unit type: Function lineno: 132 - nodeid: tests/test_utils_tqdm_mod.py::test_clamp_above_total type: Function lineno: 146 - nodeid: tests/test_utils_tqdm_mod.py::test_clamp_below_zero type: Function lineno: 163 - Outcome:
-
✅ tests/test_utils_trinary.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_trinary.py::test_check_trinary_valid_values type: Function lineno: 6 - nodeid: tests/test_utils_trinary.py::test_check_trinary_invalid_value type: Function lineno: 14 - nodeid: tests/test_utils_trinary.py::test_check_trinary_with_custom_allowed_values type: Function lineno: 22 - Outcome:
-
✅ tests/test_utils_typecast.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_typecast.py::test_downcast_success type: Function lineno: 24 - nodeid: tests/test_utils_typecast.py::test_upcast_success type: Function lineno: 30 - nodeid: tests/test_utils_typecast.py::test_downcast_invalid type: Function lineno: 41 - nodeid: tests/test_utils_typecast.py::test_upcast_invalid type: Function lineno: 48 - nodeid: tests/test_utils_typecast.py::test_object_identity_preserved type: Function lineno: 53 - nodeid: tests/test_utils_typecast.py::test_ensure_subclass_valid type: Function lineno: 64 - nodeid: tests/test_utils_typecast.py::test_ensure_subclass_invalid type: Function lineno: 67 - nodeid: tests/test_utils_typecast.py::test_cast_changes_class type: Function lineno: 79 - nodeid: tests/test_utils_typecast.py::test_cast_preserves_identity type: Function lineno: 86 - Outcome:
-
✅ tests/test_utils_utils.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_utils.py::test_singleton_instance type: Function lineno: 17 - nodeid: tests/test_utils_utils.py::test_singleton_identity type: Function lineno: 25 - nodeid: tests/test_utils_utils.py::test_typename[None-NoneType] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[True-bool] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[42-int] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[3.14-float] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[text-str] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[obj5-set] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[obj6-list] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[obj7-list] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[obj8-dict] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[<lambda>-function] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[sample_function-function] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[nested-function] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[len-builtin_function_or_method] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[sum-builtin_function_or_method] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[math-module] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[sys-module] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[function-type] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[<genexpr>-generator] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_typename[obj18-list_iterator] type: Function lineno: 44 - nodeid: tests/test_utils_utils.py::test_next_int[nums0-4] type: Function lineno: 77 - nodeid: tests/test_utils_utils.py::test_next_int[nums1-21] type: Function lineno: 77 - nodeid: tests/test_utils_utils.py::test_next_int[nums2-0] type: Function lineno: 77 - nodeid: tests/test_utils_utils.py::test_zero_pad[7-3-007] type: Function lineno: 87 - nodeid: tests/test_utils_utils.py::test_zero_pad[123-5-00123] type: Function lineno: 87 - nodeid: tests/test_utils_utils.py::test_zero_pad[0-2-00] type: Function lineno: 87 - nodeid: tests/test_utils_utils.py::test_iround[3.6-4] type: Function lineno: 97 - nodeid: tests/test_utils_utils.py::test_iround[2.1-2] type: Function lineno: 97 - nodeid: tests/test_utils_utils.py::test_iround[-1.5--2] type: Function lineno: 97 - nodeid: tests/test_utils_utils.py::test_iround[-1.4--1] type: Function lineno: 97 - nodeid: tests/test_utils_utils.py::test_sorted_naturally[items0-expected0] type: Function lineno: 108 - nodeid: tests/test_utils_utils.py::test_sorted_naturally[items1-expected1] type: Function lineno: 108 - nodeid: tests/test_utils_utils.py::test_sorted_naturally_reverse[items0-expected0] type: Function lineno: 115 - Outcome:
-
✅ tests/test_utils_xrange.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_xrange.py::test_xrange_finite[args0-kwargs0-expected0] type: Function lineno: 11 - nodeid: tests/test_utils_xrange.py::test_xrange_finite[args1-kwargs1-expected1] type: Function lineno: 11 - nodeid: tests/test_utils_xrange.py::test_xrange_finite[args2-kwargs2-expected2] type: Function lineno: 11 - nodeid: tests/test_utils_xrange.py::test_xrange_finite[args3-kwargs3-expected3] type: Function lineno: 11 - nodeid: tests/test_utils_xrange.py::test_xrange_infinite[args0-kwargs0-count(0)] type: Function lineno: 20 - nodeid: tests/test_utils_xrange.py::test_xrange_infinite[args1-kwargs1-count(0, 2)] type: Function lineno: 20 - nodeid: tests/test_utils_xrange.py::test_xrange_too_many_args[args0] type: Function lineno: 31 - Outcome:
- Outcome:
✅ . (1 tests)
-
✅ .
- Outcome:
passed - result:
- nodeid: ci-reports type: Dir - nodeid: morbidissimo type: Dir - nodeid: outputs type: Dir - nodeid: slic type: Package - nodeid: temp-ci type: Dir - nodeid: tests type: Dir - Outcome:
⚠️ Warnings
Warnings nº1
message: invalid escape sequence \-
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/bsread/h5.py
lineno: 207
Warnings nº2
message: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pyepics-3.4.3-py3.9.egg/epics/ca.py
lineno: 28
Warnings nº3
message: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/pkg_resources/__init__.py
lineno: 3154
Warnings nº4
message: The module numpy.dual is deprecated. Instead of using dual, use the functions directly from numpy or scipy.
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/scipy/fft/__init__.py
lineno: 97