Table of Contents
Test Report
View CI Run 1770 | Commit b4bad3d
🧪 Test Report
Generated on 2025-08-06 23:46:53 CEST
🧾 General Info
- duration: 13.693650960922241
- root: /workspace/tligui_y/slic
- environment: {}
📋 Summary
- Passed: 474
- Failed: 36
- Total: 510
- Collected: 510
🔎 Tests
✅ Passed (474)
-
📄 morbidissimo/morbidissimo/morioc/test_infer_type.py
↳ Function: test_it_type_str
-
✅ Test 1
📌 Setup phase
duration:
0.0006736968643963337outcome:
passed📌 Call phase
duration:
0.0002223053015768528outcome:
passed📌 Teardown phase
duration:
0.0002078767865896225outcome:
passed
↳ Function: test_it_type_float
-
✅ Test 2
📌 Setup phase
duration:
0.00011952128261327744outcome:
passed📌 Call phase
duration:
0.00015501072630286217outcome:
passed📌 Teardown phase
duration:
0.00010908907279372215outcome:
passed
↳ Function: test_it_type_int
-
✅ Test 3
📌 Setup phase
duration:
0.00011297082528471947outcome:
passed📌 Call phase
duration:
0.0001398809254169464outcome:
passed📌 Teardown phase
duration:
9.830109775066376e-05outcome:
passed
↳ Function: test_it_value_str
-
✅ Test 4
📌 Setup phase
duration:
0.00010738801211118698outcome:
passed📌 Call phase
duration:
0.00013771280646324158outcome:
passed📌 Teardown phase
duration:
0.00010303407907485962outcome:
passed
↳ Function: test_it_value_long_str
-
✅ Test 5
📌 Setup phase
duration:
0.00011489912867546082outcome:
passed📌 Call phase
duration:
0.0001404760405421257outcome:
passed📌 Teardown phase
duration:
0.0001084781251847744outcome:
passed
↳ Function: test_it_value_float
-
✅ Test 6
📌 Setup phase
duration:
0.00010645994916558266outcome:
passed📌 Call phase
duration:
0.0001565222628414631outcome:
passed📌 Teardown phase
duration:
9.606312960386276e-05outcome:
passed
↳ Function: test_it_value_int
-
✅ Test 7
📌 Setup phase
duration:
0.00010650977492332458outcome:
passed📌 Call phase
duration:
0.0001539061777293682outcome:
passed📌 Teardown phase
duration:
9.842822328209877e-05outcome:
passed
↳ Function: test_it_empty_value_str
-
✅ Test 8
📌 Setup phase
duration:
0.00010856799781322479outcome:
passed📌 Call phase
duration:
0.00013706926256418228outcome:
passed📌 Teardown phase
duration:
9.504100307822227e-05outcome:
passed
↳ Function: test_it_empty_value_float
-
✅ Test 9
📌 Setup phase
duration:
0.00012280885130167007outcome:
passed📌 Call phase
duration:
0.00013733096420764923outcome:
passed📌 Teardown phase
duration:
0.00010143965482711792outcome:
passed
↳ Function: test_it_empty_value_int
-
✅ Test 10
📌 Setup phase
duration:
0.00011601625010371208outcome:
passed📌 Call phase
duration:
0.0001339539885520935outcome:
passed📌 Teardown phase
duration:
0.00010108388960361481outcome:
passed
↳ Function: test_pstrue_str
-
✅ Test 11
📌 Setup phase
duration:
0.00011046929284930229outcome:
passed📌 Call phase
duration:
0.0001415582373738289outcome:
passed📌 Teardown phase
duration:
9.645521640777588e-05outcome:
passed
↳ Function: test_pstrue_float
-
✅ Test 12
📌 Setup phase
duration:
0.00010457402095198631outcome:
passed📌 Call phase
duration:
0.00014550378546118736outcome:
passed📌 Teardown phase
duration:
9.759003296494484e-05outcome:
passed
↳ Function: test_pstrue_int
-
✅ Test 13
📌 Setup phase
duration:
0.00011474406346678734outcome:
passed📌 Call phase
duration:
0.00014854595065116882outcome:
passed📌 Teardown phase
duration:
9.532691910862923e-05outcome:
passed
↳ Function: test_psfalse_str
-
✅ Test 14
📌 Setup phase
duration:
0.00010524317622184753outcome:
passed📌 Call phase
duration:
0.00013560429215431213outcome:
passed📌 Teardown phase
duration:
0.00010569393634796143outcome:
passed
↳ Function: test_psfalse_float
-
✅ Test 15
📌 Setup phase
duration:
0.00011519622057676315outcome:
passed📌 Call phase
duration:
0.00013602478429675102outcome:
passed📌 Teardown phase
duration:
0.00010508671402931213outcome:
passed
↳ Function: test_psfalse_int
-
✅ Test 16
📌 Setup phase
duration:
0.00010442687198519707outcome:
passed📌 Call phase
duration:
0.00013293791562318802outcome:
passed📌 Teardown phase
duration:
9.855115786194801e-05outcome:
passed
↳ Function: test_it_None
-
✅ Test 17
📌 Setup phase
duration:
0.00010941317304968834outcome:
passed📌 Call phase
duration:
0.00015718117356300354outcome:
passed📌 Teardown phase
duration:
9.487662464380264e-05outcome:
passed
↳ Function: test_it_True
-
✅ Test 18
📌 Setup phase
duration:
0.00010630721226334572outcome:
passed📌 Call phase
duration:
0.00013332394883036613outcome:
passed📌 Teardown phase
duration:
9.697815403342247e-05outcome:
passed
↳ Function: test_it_False
-
✅ Test 19
📌 Setup phase
duration:
0.00011726515367627144outcome:
passed📌 Call phase
duration:
0.0002875332720577717outcome:
passed📌 Teardown phase
duration:
0.00010286690667271614outcome:
passed
↳ Function: test_it_nan
-
✅ Test 20
📌 Setup phase
duration:
0.00011521531268954277outcome:
passed📌 Call phase
duration:
0.00013566575944423676outcome:
passed📌 Teardown phase
duration:
0.00010250415652990341outcome:
passed
↳ Function: test_it_np_nan
-
✅ Test 21
📌 Setup phase
duration:
0.00011821882799267769outcome:
passed📌 Call phase
duration:
0.00013870978727936745outcome:
passed📌 Teardown phase
duration:
9.517418220639229e-05outcome:
passed
↳ Function: test_it_np1D_int
-
✅ Test 22
📌 Setup phase
duration:
0.00010798405855894089outcome:
passed📌 Call phase
duration:
0.00019284291192889214outcome:
passed📌 Teardown phase
duration:
9.885616600513458e-05outcome:
passed
↳ Function: test_it_np2D_int
-
✅ Test 23
📌 Setup phase
duration:
0.00010515004396438599outcome:
passed📌 Call phase
duration:
0.00017728516831994057outcome:
passed📌 Teardown phase
duration:
9.863590821623802e-05outcome:
passed
↳ Function: test_it_np1D_float
-
✅ Test 24
📌 Setup phase
duration:
0.00010547088459134102outcome:
passed📌 Call phase
duration:
0.0002211863175034523outcome:
passed📌 Teardown phase
duration:
0.0001080092042684555outcome:
passed
↳ Function: test_it_np2D_float
-
✅ Test 25
📌 Setup phase
duration:
0.0001153796911239624outcome:
passed📌 Call phase
duration:
0.00020474009215831757outcome:
passed📌 Teardown phase
duration:
0.00010163988918066025outcome:
passed
↳ Function: test_it_np1D_bool
-
✅ Test 26
📌 Setup phase
duration:
0.00010582013055682182outcome:
passed📌 Call phase
duration:
0.0001652231439948082outcome:
passed📌 Teardown phase
duration:
0.00010261498391628265outcome:
passed
↳ Function: test_it_np1D_object
-
✅ Test 27
📌 Setup phase
duration:
0.00010904017835855484outcome:
passed📌 Call phase
duration:
0.00015864195302128792outcome:
passed📌 Teardown phase
duration:
9.557278826832771e-05outcome:
passed
↳ Function: test_it_np_scalar_int
-
✅ Test 28
📌 Setup phase
duration:
0.0001043626107275486outcome:
passed📌 Call phase
duration:
0.00017334194853901863outcome:
passed📌 Teardown phase
duration:
0.00010063592344522476outcome:
passed
↳ Function: test_it_np_scalar_float
-
✅ Test 29
📌 Setup phase
duration:
0.00011100806295871735outcome:
passed📌 Call phase
duration:
0.00016140006482601166outcome:
passed📌 Teardown phase
duration:
9.77078452706337e-05outcome:
passed
↳ Function: test_it_np_scalar_bool
-
✅ Test 30
📌 Setup phase
duration:
0.00010598078370094299outcome:
passed📌 Call phase
duration:
0.0001683463342487812outcome:
passed📌 Teardown phase
duration:
0.00010065874084830284outcome:
passed
↳ Function: test_it_list
-
✅ Test 31
📌 Setup phase
duration:
0.00010659685358405113outcome:
passed📌 Call phase
duration:
0.00014498084783554077outcome:
passed📌 Teardown phase
duration:
0.00010439567267894745outcome:
passed
↳ Function: test_it_tuple
-
✅ Test 32
📌 Setup phase
duration:
0.00010865088552236557outcome:
passed📌 Call phase
duration:
0.0001578889787197113outcome:
passed📌 Teardown phase
duration:
0.00010522501543164253outcome:
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.0003872467204928398outcome:
passed📌 Call phase
duration:
0.00016394583508372307outcome:
passed📌 Teardown phase
duration:
0.0001612580381333828outcome:
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.0002983580343425274outcome:
passed📌 Call phase
duration:
0.00013919174671173096outcome:
passed📌 Teardown phase
duration:
0.00015354109928011894outcome:
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.0002886638976633549outcome:
passed📌 Call phase
duration:
0.00014179013669490814outcome:
passed📌 Teardown phase
duration:
0.00016360636800527573outcome:
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.00027181487530469894outcome:
passed📌 Call phase
duration:
0.00015065399929881096outcome:
passed📌 Teardown phase
duration:
0.0001675877720117569outcome:
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.0002695308066904545outcome:
passed📌 Call phase
duration:
0.00014263484627008438outcome:
passed📌 Teardown phase
duration:
0.00015609897673130035outcome:
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.0002658008597791195outcome:
passed📌 Call phase
duration:
0.0001568780280649662outcome:
passed📌 Teardown phase
duration:
0.00015421118587255478outcome:
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.00025905296206474304outcome:
passed📌 Call phase
duration:
0.00014143623411655426outcome:
passed📌 Teardown phase
duration:
0.00015685521066188812outcome:
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.0003557130694389343outcome:
passed📌 Call phase
duration:
0.0001475638709962368outcome:
passed📌 Teardown phase
duration:
0.00015047471970319748outcome:
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.00026523834094405174outcome:
passed📌 Call phase
duration:
0.000142563134431839outcome:
passed📌 Teardown phase
duration:
0.0001589362509548664outcome:
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.00022164219990372658outcome:
passed📌 Call phase
duration:
0.00016403011977672577outcome:
passed📌 Teardown phase
duration:
0.000154946930706501outcome:
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.00021476903930306435outcome:
passed📌 Call phase
duration:
0.00016413116827607155outcome:
passed📌 Teardown phase
duration:
0.00013884715735912323outcome:
passed -
✅ Test 44
params: pos=[], expected_names=[]📌 Runtime Parameters
params: pos: [] expected_names: [] id: pos2-expected_names2📌 Setup phase
duration:
0.0002102297730743885outcome:
passed📌 Call phase
duration:
0.0001479433849453926outcome:
passed📌 Teardown phase
duration:
0.00013866694644093513outcome:
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.0002637328580021858outcome:
passed📌 Call phase
duration:
0.00022499123588204384outcome:
passed📌 Teardown phase
duration:
0.00015842635184526443outcome:
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.00029024528339505196outcome:
passed📌 Call phase
duration:
0.00015529105439782143outcome:
passed📌 Teardown phase
duration:
0.00016448600217700005outcome:
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.00027353502810001373outcome:
passed📌 Call phase
duration:
0.0001567932777106762outcome:
passed📌 Teardown phase
duration:
0.000168719794601202outcome:
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.00025662314146757126outcome:
passed📌 Call phase
duration:
0.0001934780739247799outcome:
passed📌 Teardown phase
duration:
0.00015711970627307892outcome:
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.0002690278925001621outcome:
passed📌 Call phase
duration:
0.00017959391698241234outcome:
passed📌 Teardown phase
duration:
0.00015708943828940392outcome:
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.0002885209396481514outcome:
passed📌 Call phase
duration:
0.00016437657177448273outcome:
passed📌 Teardown phase
duration:
0.00015655998140573502outcome:
passed
↳ Function: test_get_args_parametrized
-
✅ Test 51
params: func=" at 0x7f211e85d5e0>", expected_pos=["a", "b"], expected_kw={"c": 3, "d": 4}📌 Runtime Parameters
params: func: <function <lambda> at 0x7f211e85d5e0> expected_pos: - a - b expected_kw: c: 3 d: 4 id: <lambda>-expected_pos0-expected_kw0📌 Setup phase
duration:
0.0002723131328821182outcome:
passed📌 Call phase
duration:
0.00019219797104597092outcome:
passed📌 Teardown phase
duration:
0.000147984828799963outcome:
passed -
✅ Test 52
params: func=" at 0x7f211e85f550>", expected_pos=[], expected_kw="{'x': 1, 'y': , 'z': 0}"📌 Runtime Parameters
params: func: <function <lambda> at 0x7f211e85f550> expected_pos: [] expected_kw: {'x': 1, 'y': <class 'inspect._empty'>, 'z': 0} id: <lambda>-expected_pos1-expected_kw1📌 Setup phase
duration:
0.00027377670630812645outcome:
passed📌 Call phase
duration:
0.00018968526273965836outcome:
passed📌 Teardown phase
duration:
0.00015419069677591324outcome:
passed -
✅ Test 53
params: func=" at 0x7f211e85f670>", expected_pos=[], expected_kw={}📌 Runtime Parameters
params: func: <function <lambda> at 0x7f211e85f670> expected_pos: [] expected_kw: {} id: <lambda>-expected_pos2-expected_kw2📌 Setup phase
duration:
0.00027340883389115334outcome:
passed📌 Call phase
duration:
0.0001989835873246193outcome:
passed📌 Teardown phase
duration:
0.00015494180843234062outcome:
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 0x7f211e85f8b0> expected_sig: (a, b, d=30, c=10) id: wrap_all-(a, b, d=30, c=10)📌 Setup phase
duration:
0.0002261628396809101outcome:
passed📌 Call phase
duration:
0.0001682490110397339outcome:
passed📌 Teardown phase
duration:
0.00014114473015069962outcome:
passed -
✅ Test 55
params: func="", expected_sig="(a, b, c=10, d=20)"📌 Runtime Parameters
params: func: <function wrap_skip at 0x7f211e85f940> expected_sig: (a, b, c=10, d=20) id: wrap_skip-(a, b, c=10, d=20)📌 Setup phase
duration:
0.0002435757778584957outcome:
passed📌 Call phase
duration:
0.00015968410298228264outcome:
passed📌 Teardown phase
duration:
0.0001356438733637333outcome:
passed -
✅ Test 56
params: func="", expected_sig="(x, y, c=10, d=20)"📌 Runtime Parameters
params: func: <function wrap_ignore_all at 0x7f211e85f9d0> expected_sig: (x, y, c=10, d=20) id: wrap_ignore_all-(x, y, c=10, d=20)📌 Setup phase
duration:
0.00022503826767206192outcome:
passed📌 Call phase
duration:
0.0001603551208972931outcome:
passed📌 Teardown phase
duration:
0.00014964677393436432outcome:
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 0x7f211e85f8b0> args: - 1 - 2 - 3 kwargs: {} expected_result: 36 id: wrap_all-args0-kwargs0-36📌 Setup phase
duration:
0.00030985474586486816outcome:
passed📌 Call phase
duration:
0.0001377677544951439outcome:
passed📌 Teardown phase
duration:
0.00017862441018223763outcome:
passed -
✅ Test 58
params: func="", args=[1, 2, 3], kwargs={"d": 5}, expected_result=11📌 Runtime Parameters
params: func: <function wrap_all at 0x7f211e85f8b0> args: - 1 - 2 - 3 kwargs: d: 5 expected_result: 11 id: wrap_all-args1-kwargs1-11📌 Setup phase
duration:
0.0003041350282728672outcome:
passed📌 Call phase
duration:
0.00015213992446660995outcome:
passed📌 Teardown phase
duration:
0.00016553327441215515outcome:
passed -
✅ Test 59
params: func="", args=[0, 0], kwargs={"c": 3, "d": 4}, expected_result=10📌 Runtime Parameters
params: func: <function wrap_skip at 0x7f211e85f940> args: - (vide) - (vide) kwargs: c: 3 d: 4 expected_result: 10 id: wrap_skip-args2-kwargs2-10📌 Setup phase
duration:
0.0003010788932442665outcome:
passed📌 Call phase
duration:
0.0001370040699839592outcome:
passed📌 Teardown phase
duration:
0.00017315195873379707outcome:
passed -
✅ Test 60
params: func="", args=[0, 0], kwargs={}, expected_result=10📌 Runtime Parameters
params: func: <function wrap_ignore_all at 0x7f211e85f9d0> args: - (vide) - (vide) kwargs: {} expected_result: 10 id: wrap_ignore_all-args3-kwargs3-10📌 Setup phase
duration:
0.0003221598453819752outcome:
passed📌 Call phase
duration:
0.00013425806537270546outcome:
passed📌 Teardown phase
duration:
0.00017079664394259453outcome:
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.0003155488520860672outcome:
passed📌 Call phase
duration:
0.0011471179313957691outcome:
passed📌 Teardown phase
duration:
0.0002203681506216526outcome:
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.0003367653116583824outcome:
passed📌 Call phase
duration:
0.0005779317580163479outcome:
passed📌 Teardown phase
duration:
0.0002043633721768856outcome:
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.00032634614035487175outcome:
passed📌 Call phase
duration:
0.0005212579853832722outcome:
passed📌 Teardown phase
duration:
0.00018422026187181473outcome:
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.00031538819894194603outcome:
passed📌 Call phase
duration:
0.000601703766733408outcome:
passed📌 Teardown phase
duration:
0.0001841471530497074outcome:
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.00033285096287727356outcome:
passed📌 Call phase
duration:
0.0005262866616249084outcome:
passed📌 Teardown phase
duration:
0.00018721399828791618outcome:
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.0003251689486205578outcome:
passed📌 Call phase
duration:
0.0005288985557854176outcome:
passed📌 Teardown phase
duration:
0.00019295187667012215outcome:
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.0003167940303683281outcome:
passed📌 Call phase
duration:
0.0005547930486500263outcome:
passed📌 Teardown phase
duration:
0.0001883408986032009outcome:
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.00032531190663576126outcome:
passed📌 Call phase
duration:
0.0006007719784975052outcome:
passed📌 Teardown phase
duration:
0.0001852181740105152outcome:
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.00034635188058018684outcome:
passed📌 Call phase
duration:
0.0005115959793329239outcome:
passed📌 Teardown phase
duration:
0.00018577370792627335outcome:
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.00032296497374773026outcome:
passed📌 Call phase
duration:
0.0005228319205343723outcome:
passed📌 Teardown phase
duration:
0.00019095605239272118outcome:
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.0003159879706799984outcome:
passed📌 Call phase
duration:
0.0005999971181154251outcome:
passed📌 Teardown phase
duration:
0.0001967400312423706outcome:
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.00032454775646328926outcome:
passed📌 Call phase
duration:
0.0005023996345698833outcome:
passed📌 Teardown phase
duration:
0.00017796922475099564outcome:
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.00032224785536527634outcome:
passed📌 Call phase
duration:
0.0004904479719698429outcome:
passed📌 Teardown phase
duration:
0.00019332673400640488outcome:
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.0003132219426333904outcome:
passed📌 Call phase
duration:
0.0005245557986199856outcome:
passed📌 Teardown phase
duration:
0.0002002236433327198outcome:
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.0003186170943081379outcome:
passed📌 Call phase
duration:
0.0006568962708115578outcome:
passed📌 Teardown phase
duration:
0.00018006190657615662outcome:
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.00033351127058267593outcome:
passed📌 Call phase
duration:
0.0005057970993220806outcome:
passed📌 Teardown phase
duration:
0.0001866668462753296outcome:
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.0003273650072515011outcome:
passed📌 Call phase
duration:
0.0005048331804573536outcome:
passed📌 Teardown phase
duration:
0.00019798986613750458outcome:
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.0003183716908097267outcome:
passed📌 Call phase
duration:
0.0005285670049488544outcome:
passed📌 Teardown phase
duration:
0.00020542601123452187outcome:
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.00032216403633356094outcome:
passed📌 Call phase
duration:
0.0006392248906195164outcome:
passed📌 Teardown phase
duration:
0.00018895696848630905outcome:
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.00033994903787970543outcome:
passed📌 Call phase
duration:
0.0005576512776315212outcome:
passed📌 Teardown phase
duration:
0.00018463796004652977outcome:
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.0003393637016415596outcome:
passed📌 Call phase
duration:
0.0005959393456578255outcome:
passed📌 Teardown phase
duration:
0.0001952000893652439outcome:
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.0003237491473555565outcome:
passed📌 Call phase
duration:
0.0006498349830508232outcome:
passed📌 Teardown phase
duration:
0.00020048720762133598outcome:
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.0003225691616535187outcome:
passed📌 Call phase
duration:
0.0005507268942892551outcome:
passed📌 Teardown phase
duration:
0.00019017281010746956outcome:
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.0003174790181219578outcome:
passed📌 Call phase
duration:
0.0005118842236697674outcome:
passed📌 Teardown phase
duration:
0.00018226215615868568outcome:
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.0003383061848580837outcome:
passed📌 Call phase
duration:
0.0005175089463591576outcome:
passed📌 Teardown phase
duration:
0.0001862826757133007outcome:
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.0003397860564291477outcome:
passed📌 Call phase
duration:
0.0006067198701202869outcome:
passed📌 Teardown phase
duration:
0.0002006031572818756outcome:
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.0003257780335843563outcome:
passed📌 Call phase
duration:
0.000519957859069109outcome:
passed📌 Teardown phase
duration:
0.00018884288147091866outcome:
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.0003282972611486912outcome:
passed📌 Call phase
duration:
0.0005387947894632816outcome:
passed📌 Teardown phase
duration:
0.00018900539726018906outcome:
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.00033204304054379463outcome:
passed📌 Call phase
duration:
0.0005362187512218952outcome:
passed📌 Teardown phase
duration:
0.0002464628778398037outcome:
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.0003341049887239933outcome:
passed📌 Call phase
duration:
0.0006109769456088543outcome:
passed📌 Teardown phase
duration:
0.00019916286692023277outcome:
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.0003316751681268215outcome:
passed📌 Call phase
duration:
0.0005189361982047558outcome:
passed📌 Teardown phase
duration:
0.0001973779872059822outcome:
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.00030663004145026207outcome:
passed📌 Call phase
duration:
0.0005261339247226715outcome:
passed📌 Teardown phase
duration:
0.00018009822815656662outcome:
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.0003407159820199013outcome:
passed📌 Call phase
duration:
0.0006602597422897816outcome:
passed📌 Teardown phase
duration:
0.00018892483785748482outcome:
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.0003305920399725437outcome:
passed📌 Call phase
duration:
0.0004990282468497753outcome:
passed📌 Teardown phase
duration:
0.00019789626821875572outcome:
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.0003253137692809105outcome:
passed📌 Call phase
duration:
0.0005454383790493011outcome:
passed📌 Teardown phase
duration:
0.00019735191017389297outcome:
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.0003161500208079815outcome:
passed📌 Call phase
duration:
0.0005951700732111931outcome:
passed📌 Teardown phase
duration:
0.00020207511261105537outcome:
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.0003333832137286663outcome:
passed📌 Call phase
duration:
0.0006416710093617439outcome:
passed📌 Teardown phase
duration:
0.00018603866919875145outcome:
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.00037878425791859627outcome:
passed📌 Call phase
duration:
0.0005792058072984219outcome:
passed📌 Teardown phase
duration:
0.00020223995670676231outcome:
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.00037049874663352966outcome:
passed📌 Call phase
duration:
0.0006110100075602531outcome:
passed📌 Teardown phase
duration:
0.00020391400903463364outcome:
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.0003709779120981693outcome:
passed📌 Call phase
duration:
0.0006739860400557518outcome:
passed📌 Teardown phase
duration:
0.0002225278876721859outcome:
passed
-
-
📄 test_utils_channels.py
↳ Function: test_load_channels_and_channels_class_with_professional_names
-
✅ Test 101
📌 Setup phase
duration:
0.00012909295037388802outcome:
passed📌 Call phase
duration:
0.0009753829799592495outcome:
passed📌 Teardown phase
duration:
0.00012400373816490173outcome:
passed
-
-
📄 test_utils_config.py
↳ Function: test_config_with_nested_and_list_data
-
✅ Test 102
📌 Setup phase
duration:
0.00012295786291360855outcome:
passed📌 Call phase
duration:
0.0006050909869372845outcome:
passed📌 Teardown phase
duration:
0.0001401570625603199outcome:
passed
↳ Function: test_config_with_strange_and_edge_keys
-
✅ Test 103
📌 Setup phase
duration:
0.00012313621118664742outcome:
passed📌 Call phase
duration:
0.0007262402214109898outcome:
passed📌 Teardown phase
duration:
0.00012005772441625595outcome:
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.00019868789240717888outcome:
passed📌 Call phase
duration:
0.00017004087567329407outcome:
passed📌 Teardown phase
duration:
0.00012536300346255302outcome:
passed -
✅ Test 105
params: base_color="blue"📌 Runtime Parameters
params: base_color: blue id: blue📌 Setup phase
duration:
0.00019953586161136627outcome:
passed📌 Call phase
duration:
0.00016252277418971062outcome:
passed📌 Teardown phase
duration:
0.00012579374015331268outcome:
passed -
✅ Test 106
params: base_color="yellow"📌 Runtime Parameters
params: base_color: yellow id: yellow📌 Setup phase
duration:
0.0001864088699221611outcome:
passed📌 Call phase
duration:
0.00016081426292657852outcome:
passed📌 Teardown phase
duration:
0.00012806477025151253outcome:
passed -
✅ Test 107
params: base_color="green"📌 Runtime Parameters
params: base_color: green id: green📌 Setup phase
duration:
0.00018223188817501068outcome:
passed📌 Call phase
duration:
0.00016076397150754929outcome:
passed📌 Teardown phase
duration:
0.00012297136709094048outcome:
passed -
✅ Test 108
params: base_color="cyan"📌 Runtime Parameters
params: base_color: cyan id: cyan📌 Setup phase
duration:
0.00017810333520174026outcome:
passed📌 Call phase
duration:
0.00014996668323874474outcome:
passed📌 Teardown phase
duration:
0.00011804094538092613outcome:
passed -
✅ Test 109
params: base_color="magenta"📌 Runtime Parameters
params: base_color: magenta id: magenta📌 Setup phase
duration:
0.00017930381000041962outcome:
passed📌 Call phase
duration:
0.00015298789367079735outcome:
passed📌 Teardown phase
duration:
0.0001356448046863079outcome:
passed -
✅ Test 110
params: base_color="white"📌 Runtime Parameters
params: base_color: white id: white📌 Setup phase
duration:
0.00017476780340075493outcome:
passed📌 Call phase
duration:
0.00014714617282152176outcome:
passed📌 Teardown phase
duration:
0.00011895596981048584outcome:
passed -
✅ Test 111
params: base_color="black"📌 Runtime Parameters
params: base_color: black id: black📌 Setup phase
duration:
0.00017650006338953972outcome:
passed📌 Call phase
duration:
0.0001588151790201664outcome:
passed📌 Teardown phase
duration:
0.0001368410885334015outcome:
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.0005950289778411388outcome:
passed📌 Call phase
duration:
0.00024833716452121735outcome:
passed📌 Teardown phase
duration:
0.00026976922526955605outcome:
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.0004637320525944233outcome:
passed📌 Call phase
duration:
0.0002389727160334587outcome:
passed📌 Teardown phase
duration:
0.00025322288274765015outcome:
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.0004936712794005871outcome:
passed📌 Call phase
duration:
0.0002432679757475853outcome:
passed📌 Teardown phase
duration:
0.00026498502120375633outcome:
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.00048166094347834587outcome:
passed📌 Call phase
duration:
0.00023972196504473686outcome:
passed📌 Teardown phase
duration:
0.0002575237303972244outcome:
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.0004931488074362278outcome:
passed📌 Call phase
duration:
0.00023997202515602112outcome:
passed📌 Teardown phase
duration:
0.0002512270584702492outcome:
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.0005173101089894772outcome:
passed📌 Call phase
duration:
0.0002582920715212822outcome:
passed📌 Teardown phase
duration:
0.0002577980048954487outcome:
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.0005060220137238503outcome:
passed📌 Call phase
duration:
0.00024075107648968697outcome:
passed📌 Teardown phase
duration:
0.0005935737863183022outcome:
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.0004868609830737114outcome:
passed📌 Call phase
duration:
0.00022224895656108856outcome:
passed📌 Teardown phase
duration:
0.0002634008415043354outcome:
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.000458509661257267outcome:
passed📌 Call phase
duration:
0.0002190028317272663outcome:
passed📌 Teardown phase
duration:
0.0002511311322450638outcome:
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.000465592835098505outcome:
passed📌 Call phase
duration:
0.00020701903849840164outcome:
passed📌 Teardown phase
duration:
0.0002583838067948818outcome:
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.00045951083302497864outcome:
passed📌 Call phase
duration:
0.00021946057677268982outcome:
passed📌 Teardown phase
duration:
0.0002418598160147667outcome:
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.00047155795618891716outcome:
passed📌 Call phase
duration:
0.0002211080864071846outcome:
passed📌 Teardown phase
duration:
0.00027720583602786064outcome:
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.00045995786786079407outcome:
passed📌 Call phase
duration:
0.00023877760395407677outcome:
passed📌 Teardown phase
duration:
0.0002683349885046482outcome:
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.0004643527790904045outcome:
passed📌 Call phase
duration:
0.00026960717514157295outcome:
passed📌 Teardown phase
duration:
0.00024427007883787155outcome:
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.0005118460394442081outcome:
passed📌 Call phase
duration:
0.00023731309920549393outcome:
passed📌 Teardown phase
duration:
0.00024296483024954796outcome:
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.0004623550921678543outcome:
passed📌 Call phase
duration:
0.00022589322179555893outcome:
passed📌 Teardown phase
duration:
0.0002477099187672138outcome:
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.0002755839377641678outcome:
passed📌 Call phase
duration:
0.0008627227507531643outcome:
passed📌 Teardown phase
duration:
0.00017618108540773392outcome:
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.00027957698330283165outcome:
passed📌 Call phase
duration:
0.0009334119968116283outcome:
passed📌 Teardown phase
duration:
0.00019898684695363045outcome:
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.00029937876388430595outcome:
passed📌 Call phase
duration:
0.000830851960927248outcome:
passed📌 Teardown phase
duration:
0.00019241590052843094outcome:
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.00034718774259090424outcome:
passed📌 Call phase
duration:
0.0009826216846704483outcome:
passed📌 Teardown phase
duration:
0.00029257219284772873outcome:
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.0003909869119524956outcome:
passed📌 Call phase
duration:
0.0008253590203821659outcome:
passed📌 Teardown phase
duration:
0.00030323397368192673outcome:
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.0004183580167591572outcome:
passed📌 Call phase
duration:
0.00016320869326591492outcome:
passed📌 Teardown phase
duration:
0.0001963418908417225outcome:
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.0005561248399317265outcome:
passed📌 Call phase
duration:
0.0002690148539841175outcome:
passed📌 Teardown phase
duration:
0.0002680569887161255outcome:
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.0004559950903058052outcome:
passed📌 Call phase
duration:
0.0002589132636785507outcome:
passed📌 Teardown phase
duration:
0.0002862396650016308outcome:
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.00047866906970739365outcome:
passed📌 Call phase
duration:
0.000250993762165308outcome:
passed📌 Teardown phase
duration:
0.0002751750871539116outcome:
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.0005243029445409775outcome:
passed📌 Call phase
duration:
0.00027177808806300163outcome:
passed📌 Teardown phase
duration:
0.000280710868537426outcome:
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.000388474203646183outcome:
passed📌 Call phase
duration:
0.00016083801165223122outcome:
passed📌 Teardown phase
duration:
0.00018183095380663872outcome:
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.0002839472144842148outcome:
passed📌 Call phase
duration:
0.00014899717643857002outcome:
passed📌 Teardown phase
duration:
0.00017013493925333023outcome:
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.00026693521067500114outcome:
passed📌 Call phase
duration:
0.0001536160707473755outcome:
passed📌 Teardown phase
duration:
0.0001615770161151886outcome:
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.00030030589550733566outcome:
passed📌 Call phase
duration:
0.00017885630950331688outcome:
passed📌 Teardown phase
duration:
0.00015151593834161758outcome:
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.0002842131070792675outcome:
passed📌 Call phase
duration:
0.0001868908293545246outcome:
passed📌 Teardown phase
duration:
0.0001613730564713478outcome:
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.0002570529468357563outcome:
passed📌 Call phase
duration:
0.00016969675198197365outcome:
passed📌 Teardown phase
duration:
0.00015842076390981674outcome:
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.00022436771541833878outcome:
passed📌 Call phase
duration:
0.0001535383053123951outcome:
passed📌 Teardown phase
duration:
0.00015028193593025208outcome:
passed -
✅ Test 147
params: data={}, expected_keys="set()"📌 Runtime Parameters
params: data: {} expected_keys: set() id: data1-expected_keys1📌 Setup phase
duration:
0.00022185686975717545outcome:
passed📌 Call phase
duration:
0.00016777403652668outcome:
passed📌 Teardown phase
duration:
0.00013910001143813133outcome:
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.0003117336891591549outcome:
passed📌 Call phase
duration:
0.00016433373093605042outcome:
passed📌 Teardown phase
duration:
0.00016858801245689392outcome:
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.00032698409631848335outcome:
passed📌 Call phase
duration:
0.00017010793089866638outcome:
passed📌 Teardown phase
duration:
0.000178484246134758outcome:
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.00031670089811086655outcome:
passed📌 Call phase
duration:
0.0001656860113143921outcome:
passed📌 Teardown phase
duration:
0.0001808498054742813outcome:
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.0002956618554890156outcome:
passed📌 Call phase
duration:
0.00016616471111774445outcome:
passed📌 Teardown phase
duration:
0.0001750430092215538outcome:
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.0003144768998026848outcome:
passed📌 Call phase
duration:
0.00014696456491947174outcome:
passed📌 Teardown phase
duration:
0.00017147697508335114outcome:
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.000324007123708725outcome:
passed📌 Call phase
duration:
0.0001501278020441532outcome:
passed📌 Teardown phase
duration:
0.00016984296962618828outcome:
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.00030099693685770035outcome:
passed📌 Call phase
duration:
0.00015415716916322708outcome:
passed📌 Teardown phase
duration:
0.00017799902707338333outcome:
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.0003015776164829731outcome:
passed📌 Call phase
duration:
0.0002741701900959015outcome:
passed📌 Teardown phase
duration:
0.00018068496137857437outcome:
passed
-
-
📄 test_utils_dotdir.py
↳ Function: test_dotdir_creation_and_base_exists
-
✅ Test 156
📌 Setup phase
duration:
0.0015669669955968857outcome:
passed📌 Call phase
duration:
0.0002780756913125515outcome:
passed📌 Teardown phase
duration:
0.00022531207650899887outcome:
passed
↳ Function: test_dotdir_repr_returns_path_str
-
✅ Test 157
📌 Setup phase
duration:
0.0006610769778490067outcome:
passed📌 Call phase
duration:
0.00024376297369599342outcome:
passed📌 Teardown phase
duration:
0.00022242823615670204outcome:
passed
↳ Function: test_dotdir_call
-
✅ Test 158
📌 Setup phase
duration:
0.0006379000842571259outcome:
passed📌 Call phase
duration:
0.000243346206843853outcome:
passed📌 Teardown phase
duration:
0.00021141301840543747outcome:
passed
-
-
📄 test_utils_eval.py
↳ Function: test_arithmetic_eval_valid
-
✅ Test 165
params: expr="1 + 2", expected=3📌 Runtime Parameters
params: expr: 1 + 2 expected: 3 id: 1 + 2-3📌 Setup phase
duration:
0.00036360975354909897outcome:
passed📌 Call phase
duration:
0.00023964513093233109outcome:
passed📌 Teardown phase
duration:
0.00016155466437339783outcome:
passed -
✅ Test 166
params: expr="4 - 2", expected=2📌 Runtime Parameters
params: expr: 4 - 2 expected: 2 id: 4 - 2-2📌 Setup phase
duration:
0.00027072010561823845outcome:
passed📌 Call phase
duration:
0.00016753794625401497outcome:
passed📌 Teardown phase
duration:
0.0001401635818183422outcome:
passed -
✅ Test 167
params: expr="3 * 5", expected=15📌 Runtime Parameters
params: expr: 3 * 5 expected: 15 id: 3 * 5-15📌 Setup phase
duration:
0.0002293637953698635outcome:
passed📌 Call phase
duration:
0.00015349499881267548outcome:
passed📌 Teardown phase
duration:
0.00014454592019319534outcome:
passed -
✅ Test 168
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.0002309824340045452outcome:
passed📌 Call phase
duration:
0.0001588030718266964outcome:
passed📌 Teardown phase
duration:
0.0001355232670903206outcome:
passed -
✅ Test 169
params: expr="10 % 3", expected=1📌 Runtime Parameters
params: expr: 10 % 3 expected: 1 id: 10 % 3-1📌 Setup phase
duration:
0.00021742098033428192outcome:
passed📌 Call phase
duration:
0.00015733111649751663outcome:
passed📌 Teardown phase
duration:
0.00014871777966618538outcome:
passed -
✅ Test 170
params: expr="-5", expected=-5📌 Runtime Parameters
params: expr: -5 expected: -5 id: -5--5📌 Setup phase
duration:
0.00021508987993001938outcome:
passed📌 Call phase
duration:
0.0001536342315375805outcome:
passed📌 Teardown phase
duration:
0.00015632389113307outcome:
passed -
✅ Test 171
params: expr="+7", expected=7📌 Runtime Parameters
params: expr: +7 expected: 7 id: +7-7📌 Setup phase
duration:
0.00022196071222424507outcome:
passed📌 Call phase
duration:
0.00015497999265789986outcome:
passed📌 Teardown phase
duration:
0.00013933610171079636outcome:
passed -
✅ Test 172
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.0002258853055536747outcome:
passed📌 Call phase
duration:
0.0001770169474184513outcome:
passed📌 Teardown phase
duration:
0.00016473419964313507outcome:
passed -
✅ Test 173
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.00021875789389014244outcome:
passed📌 Call phase
duration:
0.0001690192148089409outcome:
passed📌 Teardown phase
duration:
0.00014560110867023468outcome:
passed -
✅ Test 174
params: expr="-(-3)", expected=3📌 Runtime Parameters
params: expr: -(-3) expected: 3 id: -(-3)-3📌 Setup phase
duration:
0.0002396698109805584outcome:
passed📌 Call phase
duration:
0.00016084499657154083outcome:
passed📌 Teardown phase
duration:
0.00013704178854823112outcome:
passed -
✅ Test 175
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.0002269200049340725outcome:
passed📌 Call phase
duration:
0.00016547366976737976outcome:
passed📌 Teardown phase
duration:
0.00013961084187030792outcome:
passed -
✅ Test 176
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.00023374799638986588outcome:
passed📌 Call phase
duration:
0.00017057126387953758outcome:
passed📌 Teardown phase
duration:
0.00015015807002782822outcome:
passed -
✅ Test 177
params: expr="(((3)))", expected=3📌 Runtime Parameters
params: expr: (((3))) expected: 3 id: (((3)))-3📌 Setup phase
duration:
0.0002132318913936615outcome:
passed📌 Call phase
duration:
0.00014751404523849487outcome:
passed📌 Teardown phase
duration:
0.0001478232443332672outcome:
passed -
✅ Test 178
params: expr="-(-(-2))", expected=-2📌 Runtime Parameters
params: expr: -(-(-2)) expected: -2 id: -(-(-2))--2📌 Setup phase
duration:
0.00022070901468396187outcome:
passed📌 Call phase
duration:
0.00016053486615419388outcome:
passed📌 Teardown phase
duration:
0.00013662409037351608outcome:
passed -
✅ Test 179
params: expr="3 + +4", expected=7📌 Runtime Parameters
params: expr: 3 + +4 expected: 7 id: 3 + +4-7📌 Setup phase
duration:
0.000212780199944973outcome:
passed📌 Call phase
duration:
0.0001689349301159382outcome:
passed📌 Teardown phase
duration:
0.00014026090502738953outcome:
passed -
✅ Test 180
params: expr="3 + -4", expected=-1📌 Runtime Parameters
params: expr: 3 + -4 expected: -1 id: 3 + -4--1📌 Setup phase
duration:
0.00022016093134880066outcome:
passed📌 Call phase
duration:
0.0001645069569349289outcome:
passed📌 Teardown phase
duration:
0.00014248304069042206outcome:
passed -
✅ Test 181
params: expr="True + 1", expected=2📌 Runtime Parameters
params: expr: True + 1 expected: 2 id: True + 1-2📌 Setup phase
duration:
0.00022142380475997925outcome:
passed📌 Call phase
duration:
0.00015561003237962723outcome:
passed📌 Teardown phase
duration:
0.0001341700553894043outcome:
passed -
✅ Test 182
params: expr="'string'", expected="string"📌 Runtime Parameters
params: expr: 'string' expected: string id: 'string'-string📌 Setup phase
duration:
0.00023431796580553055outcome:
passed📌 Call phase
duration:
0.00016052601858973503outcome:
passed📌 Teardown phase
duration:
0.00015149777755141258outcome:
passed -
✅ Test 183
params: expr="1e1000 * 1e1000", expected=Infinity📌 Runtime Parameters
params: expr: 1e1000 * 1e1000 expected: inf id: 1e1000 * 1e1000-inf📌 Setup phase
duration:
0.00024034827947616577outcome:
passed📌 Call phase
duration:
0.00016539311036467552outcome:
passed📌 Teardown phase
duration:
0.00013938313350081444outcome:
passed -
✅ Test 184
params: expr="'a' + 'b'", expected="ab"📌 Runtime Parameters
params: expr: 'a' + 'b' expected: ab id: 'a' + 'b'-ab📌 Setup phase
duration:
0.00022191880270838737outcome:
passed📌 Call phase
duration:
0.00015744008123874664outcome:
passed📌 Teardown phase
duration:
0.00014108093455433846outcome:
passed
↳ Function: test_arithmetic_eval_raises_with_message
-
✅ Test 185
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.00022346293553709984outcome:
passed📌 Call phase
duration:
0.00044640619307756424outcome:
passed📌 Teardown phase
duration:
0.00015514902770519257outcome:
passed -
✅ Test 186
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.00026919320225715637outcome:
passed📌 Call phase
duration:
0.0004046829417347908outcome:
passed📌 Teardown phase
duration:
0.00015368079766631126outcome:
passed -
✅ Test 187
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.00022975215688347816outcome:
passed📌 Call phase
duration:
0.0003533419221639633outcome:
passed📌 Teardown phase
duration:
0.0001488639973104outcome:
passed -
✅ Test 188
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.00022578006610274315outcome:
passed📌 Call phase
duration:
0.0003644111566245556outcome:
passed📌 Teardown phase
duration:
0.00014679040759801865outcome:
passed -
✅ Test 189
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.0002330513671040535outcome:
passed📌 Call phase
duration:
0.00035014981403946877outcome:
passed📌 Teardown phase
duration:
0.00015497300773859024outcome:
passed -
✅ Test 190
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.0002377629280090332outcome:
passed📌 Call phase
duration:
0.00018165819346904755outcome:
passed📌 Teardown phase
duration:
0.00015407288447022438outcome:
passed -
✅ Test 191
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.00023126788437366486outcome:
passed📌 Call phase
duration:
0.0006000609137117863outcome:
passed📌 Teardown phase
duration:
0.00014866981655359268outcome:
passed -
✅ Test 192
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.00023369910195469856outcome:
passed📌 Call phase
duration:
0.00034144893288612366outcome:
passed📌 Teardown phase
duration:
0.00015314295887947083outcome:
passed
↳ Function: test_arithmetic_eval_runtime_errors
-
✅ Test 193
params: expr="1 / 0", exception=""📌 Runtime Parameters
params: expr: 1 / 0 exception: <class 'ZeroDivisionError'> id: 1 / 0-ZeroDivisionError📌 Setup phase
duration:
0.0002197357825934887outcome:
passed📌 Call phase
duration:
0.0001829788088798523outcome:
passed📌 Teardown phase
duration:
0.0001455540768802166outcome:
passed -
✅ Test 194
params: expr="10 % 0", exception=""📌 Runtime Parameters
params: expr: 10 % 0 exception: <class 'ZeroDivisionError'> id: 10 % 0-ZeroDivisionError📌 Setup phase
duration:
0.0002221851609647274outcome:
passed📌 Call phase
duration:
0.00018330197781324387outcome:
passed📌 Teardown phase
duration:
0.00014652078971266747outcome:
passed
↳ Function: test_forgiving_eval
-
✅ Test 195
params: expr="1 + 2", expected=3📌 Runtime Parameters
params: expr: 1 + 2 expected: 3 id: 1 + 2-3📌 Setup phase
duration:
0.00022478075698018074outcome:
passed📌 Call phase
duration:
0.00016071880236268044outcome:
passed📌 Teardown phase
duration:
0.00013932585716247559outcome:
passed -
✅ Test 196
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.00021572783589363098outcome:
passed📌 Call phase
duration:
0.0001694108359515667outcome:
passed📌 Teardown phase
duration:
0.0001415656879544258outcome:
passed -
✅ Test 197
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.00023527396842837334outcome:
passed📌 Call phase
duration:
0.00015522120520472527outcome:
passed📌 Teardown phase
duration:
0.00013441825285553932outcome:
passed -
✅ Test 198
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.00023805489763617516outcome:
passed📌 Call phase
duration:
0.00019682478159666061outcome:
passed📌 Teardown phase
duration:
0.00015560118481516838outcome:
passed
↳ Function: test_defaulting_eval
-
✅ Test 199
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.0002657659351825714outcome:
passed📌 Call phase
duration:
0.00015660235658288002outcome:
passed📌 Teardown phase
duration:
0.00017146393656730652outcome:
passed -
✅ Test 200
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.0002719997428357601outcome:
passed📌 Call phase
duration:
0.00016484595835208893outcome:
passed📌 Teardown phase
duration:
0.00016167806461453438outcome:
passed -
✅ Test 201
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.00026644300669431686outcome:
passed📌 Call phase
duration:
0.0001723109744489193outcome:
passed📌 Teardown phase
duration:
0.00015633460134267807outcome:
passed -
✅ Test 202
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.00028263917192816734outcome:
passed📌 Call phase
duration:
0.00016399798914790154outcome:
passed📌 Teardown phase
duration:
0.00015805475413799286outcome:
passed
-
-
📄 test_utils_exceptions.py
↳ Function: test_chained_exception_various
-
✅ Test 203
params: func="", expected_output="High-level task failed\ncaused by KeyError: 'missing'"📌 Runtime Parameters
params: func: <function cause_key_error at 0x7f21854c5d30> 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.0002502943389117718outcome:
passed📌 Call phase
duration:
0.00020978599786758423outcome:
passed📌 Teardown phase
duration:
0.00016835564747452736outcome:
passed -
✅ Test 204
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 0x7f21854c5e50> 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.00022998731583356857outcome:
passed📌 Call phase
duration:
0.00015031127259135246outcome:
passed📌 Teardown phase
duration:
0.0001488691195845604outcome:
passed -
✅ Test 205
params: func="", expected_output="High-level task failed\ncaused by ZeroDivisionError: division by zero"📌 Runtime Parameters
params: func: <function cause_zero_division at 0x7f21854c5ee0> 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.0002257651649415493outcome:
passed📌 Call phase
duration:
0.00015758397057652473outcome:
passed📌 Teardown phase
duration:
0.00016000214964151382outcome:
passed -
✅ Test 206
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 0x7f21854c5f70> 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.00024423282593488693outcome:
passed📌 Call phase
duration:
0.00016542011871933937outcome:
passed📌 Teardown phase
duration:
0.00014499900862574577outcome:
passed -
✅ Test 207
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 0x7f211f20b040> 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.00024461420252919197outcome:
passed📌 Call phase
duration:
0.0001470218412578106outcome:
passed📌 Teardown phase
duration:
0.0001535317860543728outcome:
passed
↳ Function: test_printed_exception
-
✅ Test 208
params: func="", expected_output="KeyError: 'missing'"📌 Runtime Parameters
params: func: <function cause_key_error at 0x7f21854c5d30> expected_output: KeyError: 'missing' id: cause_key_error-KeyError: 'missing'📌 Setup phase
duration:
0.0008294768631458282outcome:
passed📌 Call phase
duration:
0.0012768348678946495outcome:
passed📌 Teardown phase
duration:
0.0004649357870221138outcome:
passed -
✅ Test 209
params: func="", expected_output="IndexError: list index out of range"📌 Runtime Parameters
params: func: <function cause_index_error at 0x7f21854c5e50> expected_output: IndexError: list index out of range id: cause_index_error-IndexError: list index out of range📌 Setup phase
duration:
0.0006160628981888294outcome:
passed📌 Call phase
duration:
0.0009541097097098827outcome:
passed📌 Teardown phase
duration:
0.00043517258018255234outcome:
passed -
✅ Test 210
params: func="", expected_output="ZeroDivisionError: division by zero"📌 Runtime Parameters
params: func: <function cause_zero_division at 0x7f21854c5ee0> expected_output: ZeroDivisionError: division by zero id: cause_zero_division-ZeroDivisionError: division by zero📌 Setup phase
duration:
0.0005668750964105129outcome:
passed📌 Call phase
duration:
0.0007859012112021446outcome:
passed📌 Teardown phase
duration:
0.00044005410745739937outcome:
passed -
✅ Test 211
params: func="", expected_output="ValueError: invalid literal for int() with base 10: 'not_a_number'"📌 Runtime Parameters
params: func: <function cause_value_error at 0x7f21854c5f70> 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.0006188820116221905outcome:
passed📌 Call phase
duration:
0.001010328996926546outcome:
passed📌 Teardown phase
duration:
0.00044682715088129044outcome:
passed -
✅ Test 212
params: func="", expected_output="TypeError: can only concatenate str (not \"int\") to str"📌 Runtime Parameters
params: func: <function cause_type_error at 0x7f211f20b040> 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.0005517653189599514outcome:
passed📌 Call phase
duration:
0.0011742101050913334outcome:
passed📌 Teardown phase
duration:
0.000471367035061121outcome:
passed
-
-
📄 test_utils_get_adj.py
↳ Function: test_get_adj_success
-
✅ Test 213
📌 Setup phase
duration:
0.00014162017032504082outcome:
passed📌 Call phase
duration:
0.0008797277696430683outcome:
passed📌 Teardown phase
duration:
0.00011529680341482162outcome:
passed
↳ Function: test_get_adj_not_found
-
✅ Test 214
📌 Setup phase
duration:
0.0004811398684978485outcome:
passed📌 Call phase
duration:
0.001022465992718935outcome:
passed📌 Teardown phase
duration:
0.00040912721306085587outcome:
passed
↳ Function: test_ensure_adjs_mixed
-
✅ Test 215
📌 Setup phase
duration:
0.00013701524585485458outcome:
passed📌 Call phase
duration:
0.0007777530699968338outcome:
passed📌 Teardown phase
duration:
0.00013508368283510208outcome:
passed
↳ Function: test_get_adjs_filter
-
✅ Test 216
📌 Setup phase
duration:
0.00011807819828391075outcome:
passed📌 Call phase
duration:
0.0009113471023738384outcome:
passed📌 Teardown phase
duration:
0.00012379512190818787outcome:
passed
-
-
📄 test_utils_hastyepics.py
↳ Function: test_motor_invalid_name_raises
-
✅ Test 219
📌 Setup phase
duration:
0.0001272442750632763outcome:
passed📌 Call phase
duration:
0.0002683401107788086outcome:
passed📌 Teardown phase
duration:
0.00011588912457227707outcome:
passed
↳ Function: test_motor_init_list_has_no_disabled
-
✅ Test 220
📌 Setup phase
duration:
0.00012116087600588799outcome:
passed📌 Call phase
duration:
0.00015456229448318481outcome:
passed📌 Teardown phase
duration:
0.00010733725503087044outcome:
passed
↳ Function: test_motor_pv_connection_skipped_by_default
-
✅ Test 222
📌 Setup phase
duration:
0.0001271967776119709outcome:
passed📌 Call phase
duration:
0.0003775302320718765outcome:
passed📌 Teardown phase
duration:
0.00011826818808913231outcome:
passed
↳ Function: test_motor_adds_all_extras_pvs
-
✅ Test 223
📌 Setup phase
duration:
0.00014346512034535408outcome:
passed📌 Call phase
duration:
0.0003579813055694103outcome:
passed📌 Teardown phase
duration:
0.00011892616748809814outcome:
passed
↳ Function: test_motor_PV_method_exists_and_works
-
✅ Test 224
📌 Setup phase
duration:
0.00011162878945469856outcome:
passed📌 Call phase
duration:
0.0003596274182200432outcome:
passed📌 Teardown phase
duration:
0.0001300252042710781outcome:
passed
-
-
📄 test_utils_ipy.py
↳ Function: test_devices_repr_fallback_and_ignore
-
✅ Test 225
📌 Setup phase
duration:
0.0007759821601212025outcome:
passed📌 Call phase
duration:
0.0008823219686746597outcome:
passed📌 Teardown phase
duration:
0.00025578588247299194outcome:
passed
-
-
📄 test_utils_jsonext.py
↳ Function: test_json_validate_save_load
-
✅ Test 226
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.0009806822054088116outcome:
passed📌 Call phase
duration:
0.0007123039104044437outcome:
passed📌 Teardown phase
duration:
0.00024812575429677963outcome:
passed -
✅ Test 227
params: input_obj="42", expected=42📌 Runtime Parameters
params: input_obj: 42 expected: 42 id: input_obj1-42📌 Setup phase
duration:
0.0007323808968067169outcome:
passed📌 Call phase
duration:
0.00044629722833633423outcome:
passed📌 Teardown phase
duration:
0.00019147992134094238outcome:
passed -
✅ Test 228
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.0006188871338963509outcome:
passed📌 Call phase
duration:
0.00044430186972022057outcome:
passed📌 Teardown phase
duration:
0.00019533373415470123outcome:
passed -
✅ Test 229
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.0006210571154952049outcome:
passed📌 Call phase
duration:
0.0003605559468269348outcome:
passed📌 Teardown phase
duration:
0.00020705582574009895outcome:
passed -
✅ Test 230
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.0006359140388667583outcome:
passed📌 Call phase
duration:
0.0003934623673558235outcome:
passed📌 Teardown phase
duration:
0.00020727794617414474outcome:
passed -
✅ Test 231
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.0005977028049528599outcome:
passed📌 Call phase
duration:
0.0004088059067726135outcome:
passed📌 Teardown phase
duration:
0.00018608802929520607outcome:
passed -
✅ Test 232
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.0007465649396181107outcome:
passed📌 Call phase
duration:
0.0004192632623016834outcome:
passed📌 Teardown phase
duration:
0.00018617883324623108outcome:
passed -
✅ Test 233
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.0006097801961004734outcome:
passed📌 Call phase
duration:
0.0005997880361974239outcome:
passed📌 Teardown phase
duration:
0.0001882258802652359outcome:
passed
-
-
📄 test_utils_lazypv.py
↳ Function: test_getattr
-
✅ Test 234
📌 Setup phase
duration:
0.00014005322009325027outcome:
passed📌 Call phase
duration:
0.0003053802065551281outcome:
passed📌 Teardown phase
duration:
0.00011453218758106232outcome:
passed
-
-
📄 test_utils_logcfg.py
↳ Function: test_custom_log_outputs
-
✅ Test 235
params: levelname="LONG", logfunc=" at 0x7f211f212820>", message="This is a LONG message"📌 Runtime Parameters
params: levelname: LONG logfunc: <function <lambda> at 0x7f211f212820> message: This is a LONG message id: LONG-<lambda>-This is a LONG message📌 Setup phase
duration:
0.0015690987929701805outcome:
passed📌 Call phase
duration:
0.0008073491044342518outcome:
passed📌 Teardown phase
duration:
0.0002718362957239151outcome:
passed -
✅ Test 236
params: levelname="ENLARGE", logfunc=" at 0x7f211f2128b0>", message="Please ENLARGE this!"📌 Runtime Parameters
params: levelname: ENLARGE logfunc: <function <lambda> at 0x7f211f2128b0> message: Please ENLARGE this! id: ENLARGE-<lambda>-Please ENLARGE this!📌 Setup phase
duration:
0.0004450008273124695outcome:
passed📌 Call phase
duration:
0.0004329271614551544outcome:
passed📌 Teardown phase
duration:
0.0002218778245151043outcome:
passed
-
-
📄 test_utils_logign.py
↳ Function: test_ignore_log_msg_behavior
-
✅ Test 238
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.000710776075720787outcome:
passed📌 Call phase
duration:
0.0008755959570407867outcome:
passed📌 Teardown phase
duration:
0.00023742299526929855outcome:
passed -
✅ Test 239
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.0004153619520366192outcome:
passed📌 Call phase
duration:
0.00048431800678372383outcome:
passed📌 Teardown phase
duration:
0.00021508242934942245outcome:
passed
↳ Function: test_ignore_only_by_level
-
✅ Test 240
📌 Setup phase
duration:
0.0002416498027741909outcome:
passed📌 Call phase
duration:
0.00040668295696377754outcome:
passed📌 Teardown phase
duration:
0.00016498100012540817outcome:
passed
↳ Function: test_ignore_only_by_msg
-
✅ Test 241
📌 Setup phase
duration:
0.0002496517263352871outcome:
passed📌 Call phase
duration:
0.0003771847113966942outcome:
passed📌 Teardown phase
duration:
0.00017864257097244263outcome:
passed
↳ Function: test_filter_removed_after_context
-
✅ Test 242
📌 Setup phase
duration:
0.00024150870740413666outcome:
passed📌 Call phase
duration:
0.00038079312071204185outcome:
passed📌 Teardown phase
duration:
0.00019366992637515068outcome:
passed
-
-
📄 test_utils_metaclasses.py
↳ Function: test_combine_classes_combines_methods
-
✅ Test 243
📌 Setup phase
duration:
0.00012561772018671036outcome:
passed📌 Call phase
duration:
0.00020910287275910378outcome:
passed📌 Teardown phase
duration:
0.0001021786592900753outcome:
passed
↳ Function: test_registryabc_combines_registrymeta_and_abcmeta
-
✅ Test 244
📌 Setup phase
duration:
0.00011927308514714241outcome:
passed📌 Call phase
duration:
0.005750786047428846outcome:
passed📌 Teardown phase
duration:
0.00013096816837787628outcome:
passed
-
-
📄 test_utils_namespace.py
↳ Function: test_namespace_pretty_repr_mixed_and_nested
-
✅ Test 245
📌 Setup phase
duration:
0.00012431107461452484outcome:
passed📌 Call phase
duration:
0.00028673000633716583outcome:
passed📌 Teardown phase
duration:
0.00011593103408813477outcome:
passed
-
-
📄 test_utils_npy.py
↳ Function: test_nice_arange
-
✅ Test 246
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.0003820369020104408outcome:
passed📌 Call phase
duration:
0.021282103843986988outcome:
passed📌 Teardown phase
duration:
0.00025785667821764946outcome:
passed -
✅ Test 248
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.0003933529369533062outcome:
passed📌 Call phase
duration:
0.0004918682388961315outcome:
passed📌 Teardown phase
duration:
0.00021360302343964577outcome:
passed
↳ Function: test_nice_linspace
-
✅ Test 251
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.0003366377204656601outcome:
passed📌 Call phase
duration:
0.0003727274015545845outcome:
passed📌 Teardown phase
duration:
0.000192269217222929outcome:
passed -
✅ Test 252
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.00035327812656760216outcome:
passed📌 Call phase
duration:
0.00034288177266716957outcome:
passed📌 Teardown phase
duration:
0.00019570579752326012outcome:
passed -
✅ Test 253
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.00034390203654766083outcome:
passed📌 Call phase
duration:
0.0003435756079852581outcome:
passed📌 Teardown phase
duration:
0.00018345890566706657outcome:
passed -
✅ Test 254
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.00033453525975346565outcome:
passed📌 Call phase
duration:
0.0003243749961256981outcome:
passed📌 Teardown phase
duration:
0.0001920349895954132outcome:
passed -
✅ Test 255
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.0003489619120955467outcome:
passed📌 Call phase
duration:
0.00035984907299280167outcome:
passed📌 Teardown phase
duration:
0.0002032672055065632outcome:
passed -
✅ Test 256
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.00032939203083515167outcome:
passed📌 Call phase
duration:
0.00033447612076997757outcome:
passed📌 Teardown phase
duration:
0.00019166292622685432outcome:
passed -
✅ Test 257
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.00031354278326034546outcome:
passed📌 Call phase
duration:
0.0003297682851552963outcome:
passed📌 Teardown phase
duration:
0.00019065896049141884outcome:
passed
↳ Function: test_nice_steps_centered
-
✅ Test 258
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.0003920122981071472outcome:
passed📌 Call phase
duration:
0.00036281393840909004outcome:
passed📌 Teardown phase
duration:
0.0002173469401896outcome:
passed -
✅ Test 259
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.00037623289972543716outcome:
passed📌 Call phase
duration:
0.0003348090685904026outcome:
passed📌 Teardown phase
duration:
0.00020217290148139outcome:
passed -
✅ Test 260
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.0003753639757633209outcome:
passed📌 Call phase
duration:
0.00036138808354735374outcome:
passed📌 Teardown phase
duration:
0.0002042311243712902outcome:
passed -
✅ Test 261
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.0003919992595911026outcome:
passed📌 Call phase
duration:
0.0003269151784479618outcome:
passed📌 Teardown phase
duration:
0.00019790977239608765outcome:
passed
↳ Function: test_nice_steps_left_aligned
-
✅ Test 264
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.00038041407242417336outcome:
passed📌 Call phase
duration:
0.0003719138912856579outcome:
passed📌 Teardown phase
duration:
0.00020563695579767227outcome:
passed -
✅ Test 265
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.00038389163091778755outcome:
passed📌 Call phase
duration:
0.00034952908754348755outcome:
passed📌 Teardown phase
duration:
0.00020339107140898705outcome:
passed
↳ Function: test_within_scalar
-
✅ Test 276
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.0003442610614001751outcome:
passed📌 Call phase
duration:
0.00015333807095885277outcome:
passed📌 Teardown phase
duration:
0.000169241800904274outcome:
passed -
✅ Test 277
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.0003000842407345772outcome:
passed📌 Call phase
duration:
0.0001462348736822605outcome:
passed📌 Teardown phase
duration:
0.00017489120364189148outcome:
passed -
✅ Test 278
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.00030732201412320137outcome:
passed📌 Call phase
duration:
0.00013494305312633514outcome:
passed📌 Teardown phase
duration:
0.00017314497381448746outcome:
passed -
✅ Test 279
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.0003037489950656891outcome:
passed📌 Call phase
duration:
0.00014183996245265007outcome:
passed📌 Teardown phase
duration:
0.00017007719725370407outcome:
passed -
✅ Test 280
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.00030267471447587013outcome:
passed📌 Call phase
duration:
0.00013844016939401627outcome:
passed📌 Teardown phase
duration:
0.00016273930668830872outcome:
passed
↳ Function: test_within_fraction
-
✅ Test 281
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.00030313292518258095outcome:
passed📌 Call phase
duration:
0.00029452284798026085outcome:
passed📌 Teardown phase
duration:
0.00018589338287711143outcome:
passed -
✅ Test 282
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.00034010782837867737outcome:
passed📌 Call phase
duration:
0.0002522687427699566outcome:
passed📌 Teardown phase
duration:
0.0001759510487318039outcome:
passed -
✅ Test 283
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.0003321659751236439outcome:
passed📌 Call phase
duration:
0.00023519014939665794outcome:
passed📌 Teardown phase
duration:
0.00017464905977249146outcome:
passed -
✅ Test 284
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.0003287871368229389outcome:
passed📌 Call phase
duration:
0.00023143505677580833outcome:
passed📌 Teardown phase
duration:
0.00017388397827744484outcome:
passed
↳ Function: test_fraction_to_percentage
-
✅ Test 285
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.0002775820903480053outcome:
passed📌 Call phase
duration:
0.00015424098819494247outcome:
passed📌 Teardown phase
duration:
0.00015643518418073654outcome:
passed -
✅ Test 286
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.0002623768523335457outcome:
passed📌 Call phase
duration:
0.00013848207890987396outcome:
passed📌 Teardown phase
duration:
0.00015632621943950653outcome:
passed -
✅ Test 287
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.00027049705386161804outcome:
passed📌 Call phase
duration:
0.00013991724699735641outcome:
passed📌 Teardown phase
duration:
0.0001467759720981121outcome:
passed
↳ Function: test_get_dtype
-
✅ Test 288
params: val="[1 2 3]", expected=""📌 Runtime Parameters
params: val: [1 2 3] expected: <class 'numpy.ndarray'> id: val0-ndarray📌 Setup phase
duration:
0.00021519791334867477outcome:
passed📌 Call phase
duration:
0.00015535298734903336outcome:
passed📌 Teardown phase
duration:
0.00015263631939888outcome:
passed -
✅ Test 289
params: val=[1, 2, 3], expected=""📌 Runtime Parameters
params: val: - 1 - 2 - 3 expected: <class 'list'> id: val1-list📌 Setup phase
duration:
0.00022611673921346664outcome:
passed📌 Call phase
duration:
0.00014022225514054298outcome:
passed📌 Teardown phase
duration:
0.00015093805268406868outcome:
passed -
✅ Test 290
params: val=3.14, expected=""📌 Runtime Parameters
params: val: 3.14 expected: <class 'float'> id: 3.14-float📌 Setup phase
duration:
0.00021576788276433945outcome:
passed📌 Call phase
duration:
0.00013619521632790565outcome:
passed📌 Teardown phase
duration:
0.00013441499322652817outcome:
passed
↳ Function: test_get_shape
-
✅ Test 291
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.0002248678356409073outcome:
passed📌 Call phase
duration:
0.00014090165495872498outcome:
passed📌 Teardown phase
duration:
0.00014378270134329796outcome:
passed -
✅ Test 292
params: val=[1, 2, 3], expected=[]📌 Runtime Parameters
params: val: - 1 - 2 - 3 expected: [] id: val1-expected1📌 Setup phase
duration:
0.00022346526384353638outcome:
passed📌 Call phase
duration:
0.0001442600041627884outcome:
passed📌 Teardown phase
duration:
0.00013848301023244858outcome:
passed -
✅ Test 293
params: val=42, expected=[]📌 Runtime Parameters
params: val: 42 expected: [] id: 42-expected2📌 Setup phase
duration:
0.000212749931961298outcome:
passed📌 Call phase
duration:
0.00013331323862075806outcome:
passed📌 Teardown phase
duration:
0.00013751164078712463outcome:
passed
↳ Function: test_is_array
-
✅ Test 294
params: val="[1 2 3]", expected=true📌 Runtime Parameters
params: val: [1 2 3] expected: True id: val0-True📌 Setup phase
duration:
0.00022359006106853485outcome:
passed📌 Call phase
duration:
0.00013396376743912697outcome:
passed📌 Teardown phase
duration:
0.0001406027004122734outcome:
passed -
✅ Test 295
params: val=[1, 2, 3], expected=false📌 Runtime Parameters
params: val: - 1 - 2 - 3 expected: False id: val1-False📌 Setup phase
duration:
0.00022861408069729805outcome:
passed📌 Call phase
duration:
0.00014463718980550766outcome:
passed📌 Teardown phase
duration:
0.00013550929725170135outcome:
passed -
✅ Test 296
params: val=42, expected=false📌 Runtime Parameters
params: val: 42 expected: False id: 42-False📌 Setup phase
duration:
0.00021954113617539406outcome:
passed📌 Call phase
duration:
0.00013115117326378822outcome:
passed📌 Teardown phase
duration:
0.00013164104893803596outcome:
passed
-
-
📄 test_utils_path.py
↳ Function: test_can_create_all_files_user_says_yes
-
✅ Test 297
📌 Setup phase
duration:
0.00012031290680170059outcome:
passed📌 Call phase
duration:
0.0007090223953127861outcome:
passed📌 Teardown phase
duration:
0.00011016195639967918outcome:
passed
↳ Function: test_can_create_all_files_user_says_no
-
✅ Test 298
📌 Setup phase
duration:
0.00011827377602458outcome:
passed📌 Call phase
duration:
0.0004111388698220253outcome:
passed📌 Teardown phase
duration:
0.00010868813842535019outcome:
passed
↳ Function: test_make_missing_dir_creates_folder
-
✅ Test 299
📌 Setup phase
duration:
0.00011318083852529526outcome:
passed📌 Call phase
duration:
0.000502806156873703outcome:
passed📌 Teardown phase
duration:
0.0001309090293943882outcome:
passed
↳ Function: test_glob_files_returns_matching_files_only
-
✅ Test 300
📌 Setup phase
duration:
0.0001163720153272152outcome:
passed📌 Call phase
duration:
0.0010516848415136337outcome:
passed📌 Teardown phase
duration:
0.0001389291137456894outcome:
passed
↳ Function: test_filter_files_excludes_directories
-
✅ Test 301
📌 Setup phase
duration:
0.00011529307812452316outcome:
passed📌 Call phase
duration:
0.0007296507246792316outcome:
passed📌 Teardown phase
duration:
0.00012094201520085335outcome:
passed
-
-
📄 test_utils_picklio.py
↳ Function: test_pickle_and_unpickle
-
✅ Test 302
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.0006265109404921532outcome:
passed📌 Call phase
duration:
0.0004084738902747631outcome:
passed📌 Teardown phase
duration:
0.0001610051840543747outcome:
passed -
✅ Test 303
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.0005726679228246212outcome:
passed📌 Call phase
duration:
0.0002864161506295204outcome:
passed📌 Teardown phase
duration:
0.00015952391549944878outcome:
passed -
✅ Test 304
params: test_obj="simple string"📌 Runtime Parameters
params: test_obj: simple string id: simple string📌 Setup phase
duration:
0.0005574887618422508outcome:
passed📌 Call phase
duration:
0.00029198499396443367outcome:
passed📌 Teardown phase
duration:
0.0001575881615281105outcome:
passed -
✅ Test 305
params: test_obj=42📌 Runtime Parameters
params: test_obj: 42 id: 42📌 Setup phase
duration:
0.0005311369895935059outcome:
passed📌 Call phase
duration:
0.00033502187579870224outcome:
passed📌 Teardown phase
duration:
0.0001557101495563984outcome:
passed -
✅ Test 306
params: test_obj=3.14159📌 Runtime Parameters
params: test_obj: 3.14159 id: 3.14159📌 Setup phase
duration:
0.0005360627546906471outcome:
passed📌 Call phase
duration:
0.0002833539620041847outcome:
passed📌 Teardown phase
duration:
0.00016104476526379585outcome:
passed -
✅ Test 307
params: test_obj=[true, false, null]📌 Runtime Parameters
params: test_obj: - True - (vide) - (vide) id: test_obj5📌 Setup phase
duration:
0.0005708159878849983outcome:
passed📌 Call phase
duration:
0.0003104391507804394outcome:
passed📌 Teardown phase
duration:
0.00022076815366744995outcome:
passed -
✅ Test 308
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.000517627689987421outcome:
passed📌 Call phase
duration:
0.0003893338143825531outcome:
passed📌 Teardown phase
duration:
0.0001609339378774166outcome:
passed
-
-
📄 test_utils_printing.py
↳ Function: test_maxlen_valid
-
✅ Test 309
params: seq=["a", "abc", ""], expected=3📌 Runtime Parameters
params: seq: - a - abc - (vide) expected: 3 id: seq0-3📌 Setup phase
duration:
0.00024412712082266808outcome:
passed📌 Call phase
duration:
0.0001495140604674816outcome:
passed📌 Teardown phase
duration:
0.00021559838205575943outcome:
passed -
✅ Test 310
params: seq=[], expected=0📌 Runtime Parameters
params: seq: [] expected: 0 id: seq1-0📌 Setup phase
duration:
0.00022669415920972824outcome:
passed📌 Call phase
duration:
0.000164765864610672outcome:
passed📌 Teardown phase
duration:
0.00013802200555801392outcome:
passed -
✅ Test 311
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.0002263188362121582outcome:
passed📌 Call phase
duration:
0.00015833694487810135outcome:
passed📌 Teardown phase
duration:
0.00013594608753919601outcome:
passed -
✅ Test 312
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.00022027874365448952outcome:
passed📌 Call phase
duration:
0.0001422320492565632outcome:
passed📌 Teardown phase
duration:
0.00013461196795105934outcome:
passed
↳ Function: test_strlen
-
✅ Test 313
params: value=42, expected=2📌 Runtime Parameters
params: value: 42 expected: 2 id: 42-2📌 Setup phase
duration:
0.0002465369179844856outcome:
passed📌 Call phase
duration:
0.00015674205496907234outcome:
passed📌 Teardown phase
duration:
0.00013821618631482124outcome:
passed -
✅ Test 314
params: value="hello", expected=5📌 Runtime Parameters
params: value: hello expected: 5 id: hello-5📌 Setup phase
duration:
0.00023110583424568176outcome:
passed📌 Call phase
duration:
0.00014180829748511314outcome:
passed📌 Teardown phase
duration:
0.0001389840617775917outcome:
passed -
✅ Test 315
params: value=false, expected=5📌 Runtime Parameters
params: value: False expected: 5 id: False-5📌 Setup phase
duration:
0.00021617300808429718outcome:
passed📌 Call phase
duration:
0.00013375794515013695outcome:
passed📌 Teardown phase
duration:
0.00014249468222260475outcome:
passed -
✅ Test 316
params: value=null, expected=4📌 Runtime Parameters
params: value: None expected: 4 id: None-4📌 Setup phase
duration:
0.0002207527868449688outcome:
passed📌 Call phase
duration:
0.00013759778812527657outcome:
passed📌 Teardown phase
duration:
0.00015364866703748703outcome:
passed -
✅ Test 317
params: value=[1, 2, 3], expected=9📌 Runtime Parameters
params: value: - 1 - 2 - 3 expected: 9 id: value4-9📌 Setup phase
duration:
0.0002154707908630371outcome:
passed📌 Call phase
duration:
0.00014225905761122704outcome:
passed📌 Teardown phase
duration:
0.00014392612501978874outcome:
passed -
✅ Test 318
params: value={"a": 1}, expected=8📌 Runtime Parameters
params: value: a: 1 expected: 8 id: value5-8📌 Setup phase
duration:
0.00021365797147154808outcome:
passed📌 Call phase
duration:
0.00013552885502576828outcome:
passed📌 Teardown phase
duration:
0.0001388760283589363outcome:
passed -
✅ Test 319
params: value=[1, 2], expected=6📌 Runtime Parameters
params: value: - 1 - 2 expected: 6 id: value6-6📌 Setup phase
duration:
0.00022021867334842682outcome:
passed📌 Call phase
duration:
0.00017121899873018265outcome:
passed📌 Teardown phase
duration:
0.00014143763110041618outcome:
passed -
✅ Test 320
params: value="", expected=0📌 Runtime Parameters
params: value: None expected: 0 id: -0📌 Setup phase
duration:
0.00023310212418437004outcome:
passed📌 Call phase
duration:
0.00016439566388726234outcome:
passed📌 Teardown phase
duration:
0.00014153588563203812outcome:
passed -
✅ Test 321
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.00023557618260383606outcome:
passed📌 Call phase
duration:
0.0001344289630651474outcome:
passed📌 Teardown phase
duration:
0.00021940097212791443outcome:
passed
↳ Function: test_maxstrlen
-
✅ Test 322
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.00023685023188591003outcome:
passed📌 Call phase
duration:
0.00015286821871995926outcome:
passed📌 Teardown phase
duration:
0.00013808580115437508outcome:
passed -
✅ Test 323
params: seq=["aa", "bbb", "c"], expected=3📌 Runtime Parameters
params: seq: - aa - bbb - c expected: 3 id: seq1-3📌 Setup phase
duration:
0.00022123521193861961outcome:
passed📌 Call phase
duration:
0.00014662928879261017outcome:
passed📌 Teardown phase
duration:
0.00016142195090651512outcome:
passed -
✅ Test 324
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.00022791791707277298outcome:
passed📌 Call phase
duration:
0.00014337105676531792outcome:
passed📌 Teardown phase
duration:
0.000143412034958601outcome:
passed -
✅ Test 325
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.0002201627939939499outcome:
passed📌 Call phase
duration:
0.00014650775119662285outcome:
passed📌 Teardown phase
duration:
0.00018598884344100952outcome:
passed -
✅ Test 326
params: seq=[null, false, 12345], expected=5📌 Runtime Parameters
params: seq: - (vide) - (vide) - 12345 expected: 5 id: seq4-5📌 Setup phase
duration:
0.00022599799558520317outcome:
passed📌 Call phase
duration:
0.00016617309302091599outcome:
passed📌 Teardown phase
duration:
0.0001485450193285942outcome:
passed
↳ Function: test_transpose_matrix
-
✅ Test 327
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.00023313378915190697outcome:
passed📌 Call phase
duration:
0.00014083972200751305outcome:
passed📌 Teardown phase
duration:
0.00013374583795666695outcome:
passed -
✅ Test 328
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.00027791084721684456outcome:
passed📌 Call phase
duration:
0.00014512008056044579outcome:
passed📌 Teardown phase
duration:
0.0001387977972626686outcome:
passed -
✅ Test 329
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.00021964684128761292outcome:
passed📌 Call phase
duration:
0.00014518573880195618outcome:
passed📌 Teardown phase
duration:
0.0001418660394847393outcome:
passed
↳ Function: test_prepend
-
✅ Test 330
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.0002672099508345127outcome:
passed📌 Call phase
duration:
0.00013724900782108307outcome:
passed📌 Teardown phase
duration:
0.00019555678591132164outcome:
passed -
✅ Test 331
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.000268308911472559outcome:
passed📌 Call phase
duration:
0.00014612078666687012outcome:
passed📌 Teardown phase
duration:
0.00015486404299736023outcome:
passed -
✅ Test 332
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.00026792101562023163outcome:
passed📌 Call phase
duration:
0.00017780903726816177outcome:
passed📌 Teardown phase
duration:
0.0001626899465918541outcome:
passed -
✅ Test 333
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.00027602212503552437outcome:
passed📌 Call phase
duration:
0.00013577286154031754outcome:
passed📌 Teardown phase
duration:
0.00015191268175840378outcome:
passed
↳ Function: test_fmt_table_line
-
✅ Test 334
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.00027107493951916695outcome:
passed📌 Call phase
duration:
0.00014479877427220345outcome:
passed📌 Teardown phase
duration:
0.0001467461697757244outcome:
passed -
✅ Test 335
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.0002549341879785061outcome:
passed📌 Call phase
duration:
0.0001464681699872017outcome:
passed📌 Teardown phase
duration:
0.00017503788694739342outcome:
passed -
✅ Test 336
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.00025876425206661224outcome:
passed📌 Call phase
duration:
0.00014034798368811607outcome:
passed📌 Teardown phase
duration:
0.00015850085765123367outcome:
passed -
✅ Test 337
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.0002600010484457016outcome:
passed📌 Call phase
duration:
0.00016996171325445175outcome:
passed📌 Teardown phase
duration:
0.0001514991745352745outcome:
passed -
✅ Test 338
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.0002536820247769356outcome:
passed📌 Call phase
duration:
0.0001472681760787964outcome:
passed📌 Teardown phase
duration:
0.00015190988779067993outcome:
passed -
✅ Test 339
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.0002803727984428406outcome:
passed📌 Call phase
duration:
0.00013947207480669022outcome:
passed📌 Teardown phase
duration:
0.00015230383723974228outcome:
passed -
✅ Test 340
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.00028182612732052803outcome:
passed📌 Call phase
duration:
0.0001493869349360466outcome:
passed📌 Teardown phase
duration:
0.00014579575508832932outcome:
passed -
✅ Test 341
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.000261595007032156outcome:
passed📌 Call phase
duration:
0.0001439349725842476outcome:
passed📌 Teardown phase
duration:
0.0001722811721265316outcome:
passed
↳ Function: test_fmt_label_sep
-
✅ Test 342
params: widths=[3, 4], line="-", expected="--- ----"📌 Runtime Parameters
params: widths: - 3 - 4 line: - expected: --- ---- id: widths0------ ----📌 Setup phase
duration:
0.0002636159770190716outcome:
passed📌 Call phase
duration:
0.00014155404642224312outcome:
passed📌 Teardown phase
duration:
0.00016043102368712425outcome:
passed -
✅ Test 343
params: widths=[2, 3], line="=", expected="== ==="📌 Runtime Parameters
params: widths: - 2 - 3 line: = expected: == === id: widths1-=-== ===📌 Setup phase
duration:
0.00026381202042102814outcome:
passed📌 Call phase
duration:
0.00015642866492271423outcome:
passed📌 Teardown phase
duration:
0.00014838622882962227outcome:
passed -
✅ Test 344
params: widths=[5, 2], line="*", expected="***** **"📌 Runtime Parameters
params: widths: - 5 - 2 line: * expected: ***** ** id: widths2-*-***** **📌 Setup phase
duration:
0.0002698390744626522outcome:
passed📌 Call phase
duration:
0.00014356384053826332outcome:
passed📌 Teardown phase
duration:
0.00015139300376176834outcome:
passed
↳ Function: test_printable_dict_with_header
-
✅ Test 345
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.000667062122374773outcome:
passed📌 Call phase
duration:
0.00023282133042812347outcome:
passed📌 Teardown phase
duration:
0.00016545504331588745outcome:
passed
↳ Function: test_printable_dict_of_dicts
-
✅ Test 346
📌 Setup phase
duration:
0.00011734617874026299outcome:
passed📌 Call phase
duration:
0.00025463011115789413outcome:
passed📌 Teardown phase
duration:
0.00010564923286437988outcome:
passed
↳ Function: test_printable_table
-
✅ Test 347
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.00030595529824495316outcome:
passed📌 Call phase
duration:
0.0003197020851075649outcome:
passed📌 Teardown phase
duration:
0.00016312208026647568outcome:
passed
-
-
📄 test_utils_rangebar.py
↳ Function: test_full_progress_bar
-
✅ Test 356
📌 Setup phase
duration:
0.0003827689215540886outcome:
passed📌 Call phase
duration:
0.00024807779118418694outcome:
passed📌 Teardown phase
duration:
0.00018573226407170296outcome:
passed
↳ Function: test_half_progress_bar
-
✅ Test 357
📌 Setup phase
duration:
0.0002826913259923458outcome:
passed📌 Call phase
duration:
0.00022565806284546852outcome:
passed📌 Teardown phase
duration:
0.00016561802476644516outcome:
passed
↳ Function: test_zero_progress_bar
-
✅ Test 358
📌 Setup phase
duration:
0.0002661999315023422outcome:
passed📌 Call phase
duration:
0.00024067191407084465outcome:
passed📌 Teardown phase
duration:
0.000175397377461195outcome:
passed
↳ Function: test_overflow_bar
-
✅ Test 359
📌 Setup phase
duration:
0.0002735094167292118outcome:
passed📌 Call phase
duration:
0.0002123657613992691outcome:
passed📌 Teardown phase
duration:
0.00018983101472258568outcome:
passed
↳ Function: test_underflow_bar
-
✅ Test 360
📌 Setup phase
duration:
0.00029460713267326355outcome:
passed📌 Call phase
duration:
0.00021514901891350746outcome:
passed📌 Teardown phase
duration:
0.00017480598762631416outcome:
passed
↳ Function: test_repr
-
✅ Test 361
📌 Setup phase
duration:
0.00011435803025960922outcome:
passed📌 Call phase
duration:
0.00015771528705954552outcome:
passed📌 Teardown phase
duration:
0.00012391991913318634outcome:
passed
↳ Function: test_each_value_separately
-
✅ Test 362
params: value=0, expected_bar_part=" "📌 Runtime Parameters
params: value: 0 expected_bar_part: id: 0-📌 Setup phase
duration:
0.00043146591633558273outcome:
passed📌 Call phase
duration:
0.00020541483536362648outcome:
passed📌 Teardown phase
duration:
0.0002524987794458866outcome:
passed -
✅ Test 363
params: value=10, expected_bar_part="█ "📌 Runtime Parameters
params: value: 10 expected_bar_part: █ id: 10-\u2588📌 Setup phase
duration:
0.00038828374817967415outcome:
passed📌 Call phase
duration:
0.0002368488349020481outcome:
passed📌 Teardown phase
duration:
0.00019337423145771027outcome:
passed -
✅ Test 364
params: value=25, expected_bar_part="██▌ "📌 Runtime Parameters
params: value: 25 expected_bar_part: ██▌ id: 25-\u2588\u2588\u258c📌 Setup phase
duration:
0.000367503147572279outcome:
passed📌 Call phase
duration:
0.00019595399498939514outcome:
passed📌 Teardown phase
duration:
0.00019221706315875053outcome:
passed -
✅ Test 365
params: value=27, expected_bar_part="██▊ "📌 Runtime Parameters
params: value: 27 expected_bar_part: ██▊ id: 27-\u2588\u2588\u258a📌 Setup phase
duration:
0.00036353711038827896outcome:
passed📌 Call phase
duration:
0.00018931878730654716outcome:
passed📌 Teardown phase
duration:
0.00018524331972002983outcome:
passed -
✅ Test 366
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.0003567649982869625outcome:
passed📌 Call phase
duration:
0.0001923050731420517outcome:
passed📌 Teardown phase
duration:
0.00018593017011880875outcome:
passed -
✅ Test 367
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.00036688707768917084outcome:
passed📌 Call phase
duration:
0.00020329607650637627outcome:
passed📌 Teardown phase
duration:
0.00020566489547491074outcome:
passed -
✅ Test 368
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.00036982586607337outcome:
passed📌 Call phase
duration:
0.00020848633721470833outcome:
passed📌 Teardown phase
duration:
0.0001860302872955799outcome:
passed -
✅ Test 369
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.0003725830465555191outcome:
passed📌 Call phase
duration:
0.0001921551302075386outcome:
passed📌 Teardown phase
duration:
0.0002011498436331749outcome:
passed -
✅ Test 370
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.0003605121746659279outcome:
passed📌 Call phase
duration:
0.0001855902373790741outcome:
passed📌 Teardown phase
duration:
0.00019451696425676346outcome:
passed -
✅ Test 371
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.00036333315074443817outcome:
passed📌 Call phase
duration:
0.00020916108042001724outcome:
passed📌 Teardown phase
duration:
0.00019506504759192467outcome:
passed -
✅ Test 372
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.000367908738553524outcome:
passed📌 Call phase
duration:
0.00018707197159528732outcome:
passed📌 Teardown phase
duration:
0.00019476981833577156outcome:
passed
-
-
📄 test_utils_readable.py
↳ Function: test_readable_seconds
-
✅ Test 373
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.00022567622363567352outcome:
passed📌 Call phase
duration:
0.0001684296876192093outcome:
passed📌 Teardown phase
duration:
0.00014321086928248405outcome:
passed -
✅ Test 374
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.00022894609719514847outcome:
passed📌 Call phase
duration:
0.00013641733676195145outcome:
passed📌 Teardown phase
duration:
0.00013350835070014outcome:
passed -
✅ Test 375
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.00022284500300884247outcome:
passed📌 Call phase
duration:
0.00014916108921170235outcome:
passed📌 Teardown phase
duration:
0.00013810163363814354outcome:
passed -
✅ Test 376
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.00020892499014735222outcome:
passed📌 Call phase
duration:
0.0001395680010318756outcome:
passed📌 Teardown phase
duration:
0.00013604667037725449outcome:
passed -
✅ Test 377
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.00022477097809314728outcome:
passed📌 Call phase
duration:
0.00013640709221363068outcome:
passed📌 Teardown phase
duration:
0.00013157492503523827outcome:
passed -
✅ Test 378
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.0002202298492193222outcome:
passed📌 Call phase
duration:
0.0001423656940460205outcome:
passed📌 Teardown phase
duration:
0.0001367758959531784outcome:
passed -
✅ Test 379
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.00021855207160115242outcome:
passed📌 Call phase
duration:
0.00013450905680656433outcome:
passed📌 Teardown phase
duration:
0.00013850722461938858outcome:
passed -
✅ Test 380
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.0002249409444630146outcome:
passed📌 Call phase
duration:
0.0001516193151473999outcome:
passed📌 Teardown phase
duration:
0.00017339596524834633outcome:
passed -
✅ Test 381
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.00022637657821178436outcome:
passed📌 Call phase
duration:
0.0001394590362906456outcome:
passed📌 Teardown phase
duration:
0.0001375991851091385outcome:
passed -
✅ Test 382
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.00022006873041391373outcome:
passed📌 Call phase
duration:
0.00016162032261490822outcome:
passed📌 Teardown phase
duration:
0.00014105718582868576outcome:
passed -
✅ Test 383
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.00021956069394946098outcome:
passed📌 Call phase
duration:
0.00014253705739974976outcome:
passed📌 Teardown phase
duration:
0.0002528699114918709outcome:
passed -
✅ Test 384
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.00024129962548613548outcome:
passed📌 Call phase
duration:
0.00014457199722528458outcome:
passed📌 Teardown phase
duration:
0.00013751303777098656outcome:
passed -
✅ Test 385
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.00022964086383581161outcome:
passed📌 Call phase
duration:
0.00014361413195729256outcome:
passed📌 Teardown phase
duration:
0.0001366427168250084outcome:
passed -
✅ Test 386
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.00021761609241366386outcome:
passed📌 Call phase
duration:
0.0001375940628349781outcome:
passed📌 Teardown phase
duration:
0.0001342357136309147outcome:
passed -
✅ Test 387
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.0002214629203081131outcome:
passed📌 Call phase
duration:
0.00015272479504346848outcome:
passed📌 Teardown phase
duration:
0.00014684861525893211outcome:
passed -
✅ Test 388
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.00022567808628082275outcome:
passed📌 Call phase
duration:
0.00014423299580812454outcome:
passed📌 Teardown phase
duration:
0.0001478581689298153outcome:
passed -
✅ Test 389
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.00020943814888596535outcome:
passed📌 Call phase
duration:
0.00013921409845352173outcome:
passed📌 Teardown phase
duration:
0.00014984887093305588outcome:
passed -
✅ Test 390
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.00022445200011134148outcome:
passed📌 Call phase
duration:
0.00013891281560063362outcome:
passed📌 Teardown phase
duration:
0.0001375330612063408outcome:
passed -
✅ Test 391
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.0002521867863833904outcome:
passed📌 Call phase
duration:
0.00015261629596352577outcome:
passed📌 Teardown phase
duration:
0.00013998616486787796outcome:
passed -
✅ Test 392
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.000219705980271101outcome:
passed📌 Call phase
duration:
0.00014205696061253548outcome:
passed📌 Teardown phase
duration:
0.00013577193021774292outcome:
passed -
✅ Test 393
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.00020816829055547714outcome:
passed📌 Call phase
duration:
0.00013828696683049202outcome:
passed📌 Teardown phase
duration:
0.0001355716958642006outcome:
passed -
✅ Test 394
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.0002283817157149315outcome:
passed📌 Call phase
duration:
0.00013684900477528572outcome:
passed📌 Teardown phase
duration:
0.00013564201071858406outcome:
passed -
✅ Test 395
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.00022248271852731705outcome:
passed📌 Call phase
duration:
0.00013845227658748627outcome:
passed📌 Teardown phase
duration:
0.00013029109686613083outcome:
passed -
✅ Test 396
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.00021638907492160797outcome:
passed📌 Call phase
duration:
0.0001411670818924904outcome:
passed📌 Teardown phase
duration:
0.00013991491869091988outcome:
passed
-
-
📄 test_utils_registry.py
↳ Function: test_metaclass_creates_weakset
-
✅ Test 397
📌 Setup phase
duration:
0.00013534491881728172outcome:
passed📌 Call phase
duration:
0.0006590909324586391outcome:
passed📌 Teardown phase
duration:
0.00011948402971029282outcome:
passed
↳ Function: test_metaclass_tracks_instances
-
✅ Test 398
📌 Setup phase
duration:
0.0001164688728749752outcome:
passed📌 Call phase
duration:
0.00023482367396354675outcome:
passed📌 Teardown phase
duration:
0.00010344572365283966outcome:
passed
↳ Function: test_registry_inheritance
-
✅ Test 399
📌 Setup phase
duration:
0.00018442515283823013outcome:
passed📌 Call phase
duration:
0.00051103625446558outcome:
passed📌 Teardown phase
duration:
0.00013296818360686302outcome:
passed
↳ Function: test_instance_tracking
-
✅ Test 400
📌 Setup phase
duration:
0.00017215684056282043outcome:
passed📌 Call phase
duration:
0.00020361319184303284outcome:
passed📌 Teardown phase
duration:
0.0001374129205942154outcome:
passed
↳ Function: test_collect_instances_recursive
-
✅ Test 401
📌 Setup phase
duration:
0.00017163995653390884outcome:
passed📌 Call phase
duration:
0.0012233518064022064outcome:
passed📌 Teardown phase
duration:
0.00014438433572649956outcome:
passed
↳ Function: test_instances_function
-
✅ Test 402
📌 Setup phase
duration:
0.00017839623615145683outcome:
passed📌 Call phase
duration:
0.0008326047100126743outcome:
passed📌 Teardown phase
duration:
0.00014629680663347244outcome:
passed
↳ Function: test_non_registry_class_error
-
✅ Test 403
📌 Setup phase
duration:
0.00011645490303635597outcome:
passed📌 Call phase
duration:
0.0002135811373591423outcome:
passed📌 Teardown phase
duration:
0.00010506995022296906outcome:
passed
↳ Function: test_signature_preservation
-
✅ Test 404
📌 Setup phase
duration:
0.00010568415746092796outcome:
passed📌 Call phase
duration:
0.00023070676252245903outcome:
passed📌 Teardown phase
duration:
0.00011051679030060768outcome:
passed
-
-
📄 test_utils_richcfg.py
↳ Function: test_rich_inspector_outputs_more_than_builtin
-
✅ Test 405
📌 Setup phase
duration:
0.00019750604405999184outcome:
passed📌 Call phase
duration:
0.09378733905032277outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.555960558 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: 1754516808.5611384 msecs: 561.138391494751 relativeCreated: 10872.9887008667 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826📌 Teardown phase
duration:
0.00022830814123153687outcome:
passed
-
-
📄 test_utils_run_later.py
↳ Function: test_init_and_repr
-
✅ Test 406
📌 Setup phase
duration:
0.00013919919729232788outcome:
passed📌 Call phase
duration:
0.00020926212891936302outcome:
passed📌 Teardown phase
duration:
0.00010914681479334831outcome:
passed
↳ Function: test_call
-
✅ Test 407
📌 Setup phase
duration:
0.00011308304965496063outcome:
passed📌 Call phase
duration:
0.00015570223331451416outcome:
passed📌 Teardown phase
duration:
9.979074820876122e-05outcome:
passed
↳ Function: test_matmul_with_string
-
✅ Test 408
📌 Setup phase
duration:
0.00010531861335039139outcome:
passed📌 Call phase
duration:
0.00015435833483934402outcome:
passed📌 Teardown phase
duration:
9.706011041998863e-05outcome:
passed
↳ Function: test_matmul_with_list
-
✅ Test 409
📌 Setup phase
duration:
0.00010652095079421997outcome:
passed📌 Call phase
duration:
0.00016270997002720833outcome:
passed📌 Teardown phase
duration:
0.00010885810479521751outcome:
passed
↳ Function: test_matmul_with_single_int
-
✅ Test 410
📌 Setup phase
duration:
0.00010335724800825119outcome:
passed📌 Call phase
duration:
0.00014514382928609848outcome:
passed📌 Teardown phase
duration:
9.412923827767372e-05outcome:
passed
↳ Function: test_run_at_future_triggered_and_logs
-
✅ Test 411
📌 Setup phase
duration:
0.0003070239908993244outcome:
passed📌 Call phase
duration:
0.20505690900608897outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.661599549 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.0808864 msecs: 80.8863639831543 relativeCreated: -18783997607.26333 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.762157887 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.1814709 msecs: 181.4708709716797 relativeCreated: -18783997506.678818 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826📌 Teardown phase
duration:
0.0002942020073533058outcome:
passed
↳ Function: test_run_at_already_past
-
✅ Test 412
📌 Setup phase
duration:
0.0003195996396243572outcome:
passed📌 Call phase
duration:
0.0003233649767935276outcome:
passed📌 Teardown phase
duration:
0.00018442515283823013outcome:
passed
↳ Function: test_run_in_future_triggered_and_logs
-
✅ Test 413
📌 Setup phase
duration:
0.00024555204436182976outcome:
passed📌 Call phase
duration:
0.20164521597325802outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.862765241 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.0741267 msecs: 74.1267204284668 relativeCreated: -18783997614.022972 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.963257234 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.1746106 msecs: 174.61061477661133 relativeCreated: -18783997513.539078 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826📌 Teardown phase
duration:
0.00030052708461880684outcome:
passed
↳ Function: test_run_in_past
-
✅ Test 414
📌 Setup phase
duration:
0.0003371359780430794outcome:
passed📌 Call phase
duration:
0.00035566510632634163outcome:
passed📌 Teardown phase
duration:
0.0001782611943781376outcome:
passed
↳ Function: test_run_later_with_seconds
-
✅ Test 415
📌 Setup phase
duration:
0.0002536657266318798outcome:
passed📌 Call phase
duration:
0.20182786788791418outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364809.63790912 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.0702648 msecs: 70.26481628417969 relativeCreated: -18776797617.884872 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364809.164333054 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.1707888 msecs: 170.78876495361328 relativeCreated: -18776797517.360924 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826📌 Teardown phase
duration:
0.00027759838849306107outcome:
passed
↳ Function: test_run_later_with_past_datetime
-
✅ Test 416
📌 Setup phase
duration:
0.0003189118579030037outcome:
passed📌 Call phase
duration:
0.00032761506736278534outcome:
passed📌 Teardown phase
duration:
0.00017952173948287964outcome:
passed
↳ Function: test_run_at_tqdm_multiple_updates
-
✅ Test 417
📌 Setup phase
duration:
0.0003046160563826561outcome:
passed📌 Call phase
duration:
0.2016293639317155outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364809.264799131 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: 1754516809.2648962 msecs: 264.8961544036865 relativeCreated: 11576.746463775635 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364809.365338303 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: 1754516809.3654394 msecs: 365.43941497802734 relativeCreated: 11677.289724349976 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826📌 Teardown phase
duration:
0.00031288107857108116outcome:
passed
↳ Function: test_today_basic
-
✅ Test 418
📌 Setup phase
duration:
0.0001446218229830265outcome:
passed📌 Call phase
duration:
0.0006948141381144524outcome:
passed📌 Teardown phase
duration:
0.00012587523087859154outcome:
passed
↳ Function: test_tomorrow_basic
-
✅ Test 419
📌 Setup phase
duration:
0.00011813919991254807outcome:
passed📌 Call phase
duration:
0.00035892194136977196outcome:
passed📌 Teardown phase
duration:
0.00011572800576686859outcome:
passed
↳ Function: test_yesterday_basic
-
✅ Test 420
📌 Setup phase
duration:
0.00011332705616950989outcome:
passed📌 Call phase
duration:
0.0005397810600697994outcome:
passed📌 Teardown phase
duration:
0.0001250668428838253outcome:
passed
↳ Function: test_today_matmul_string
-
✅ Test 421
📌 Setup phase
duration:
0.00011538108810782433outcome:
passed📌 Call phase
duration:
0.0003342060372233391outcome:
passed📌 Teardown phase
duration:
0.00011685909703373909outcome:
passed
↳ Function: test_tomorrow_matmul_list
-
✅ Test 422
📌 Setup phase
duration:
0.00010922364890575409outcome:
passed📌 Call phase
duration:
0.00033585168421268463outcome:
passed📌 Teardown phase
duration:
0.00010673608630895615outcome:
passed
↳ Function: test_yesterday_matmul_single
-
✅ Test 423
📌 Setup phase
duration:
0.00011431891471147537outcome:
passed📌 Call phase
duration:
0.0003371918573975563outcome:
passed📌 Teardown phase
duration:
0.00011183181777596474outcome:
passed
-
-
📄 test_utils_sendmail.py
↳ Function: test_sendmail_real_local_verbose
-
✅ Test 424
📌 Setup phase
duration:
0.00017331307753920555outcome:
passed📌 Call phase
duration:
1.593555788975209outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364809.465897568 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: 1754516809.466092 msecs: 466.0921096801758 relativeCreated: 11777.942419052124 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364809.566576996 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: 1754516809.566683 msecs: 566.6830539703369 relativeCreated: 11878.533363342285 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364809.667090468 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: 1754516809.6671977 msecs: 667.1977043151855 relativeCreated: 11979.048013687134 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364809.767613465 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: 1754516809.7677276 msecs: 767.7276134490967 relativeCreated: 12079.577922821045 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364809.868213856 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: 1754516809.8684275 msecs: 868.4275150299072 relativeCreated: 12180.277824401855 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364809.969014464 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: 1754516809.969235 msecs: 969.2349433898926 relativeCreated: 12281.08525276184 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364810.69762557 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: 1754516810.0698612 msecs: 69.86117362976074 relativeCreated: 12381.711483001709 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364810.170289878 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: 1754516810.170398 msecs: 170.39799690246582 relativeCreated: 12482.248306274414 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364810.270826681 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: 1754516810.2709308 msecs: 270.9307670593262 relativeCreated: 12582.781076431274 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364810.371360051 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: 1754516810.3714626 msecs: 371.4625835418701 relativeCreated: 12683.312892913818 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364810.471885646 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: 1754516810.4719853 msecs: 471.9853401184082 relativeCreated: 12783.835649490356 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364810.572389175 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: 1754516810.5724995 msecs: 572.4995136260986 relativeCreated: 12884.349822998047 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364810.672829187 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: 1754516810.6729395 msecs: 672.9395389556885 relativeCreated: 12984.789848327637 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364810.773370309 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: 1754516810.7734778 msecs: 773.4777927398682 relativeCreated: 13085.328102111816 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364810.873907277 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: 1754516810.8740134 msecs: 874.0134239196777 relativeCreated: 13185.863733291626 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364810.974468006 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: 1754516810.9745827 msecs: 974.5826721191406 relativeCreated: 13286.432981491089 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826📌 Teardown phase
duration:
0.0002682507038116455outcome:
passed
-
-
📄 test_utils_shortcut.py
↳ Function: TestShortcutInitialization
-
✅ Test 425
📌 Setup phase
duration:
0.0004020337946712971outcome:
passed📌 Call phase
duration:
0.00021790480241179466outcome:
passed📌 Teardown phase
duration:
0.0001472090370953083outcome:
passed -
✅ Test 426
📌 Setup phase
duration:
0.00019676191732287407outcome:
passed📌 Call phase
duration:
0.0001528039574623108outcome:
passed📌 Teardown phase
duration:
0.00016329437494277954outcome:
passed
↳ Function: test_run_method
-
✅ Test 427
📌 Setup phase
duration:
0.00037351762875914574outcome:
passed📌 Call phase
duration:
0.0006182319484651089outcome:
passed📌 Teardown phase
duration:
0.00022196723148226738outcome:
passed
↳ Function: test_repr_output
-
✅ Test 428
📌 Setup phase
duration:
0.00018076039850711823outcome:
passed📌 Call phase
duration:
0.00016852514818310738outcome:
passed📌 Teardown phase
duration:
0.00012767594307661057outcome:
passed
↳ Function: test_source_with_regular_function
-
✅ Test 429
📌 Setup phase
duration:
0.00018550874665379524outcome:
passed📌 Call phase
duration:
0.001206445973366499outcome:
passed📌 Teardown phase
duration:
0.0001642056740820408outcome:
passed
↳ Function: test_source_error_handling
-
✅ Test 430
📌 Setup phase
duration:
0.0001850668340921402outcome:
passed📌 Call phase
duration:
0.0008468548767268658outcome:
passed📌 Teardown phase
duration:
0.00014914479106664658outcome:
passed
↳ Function: test_as_shortcut_basic
-
✅ Test 431
📌 Setup phase
duration:
0.0002061566337943077outcome:
passed📌 Call phase
duration:
0.00015593087300658226outcome:
passed📌 Teardown phase
duration:
0.0001341043971478939outcome:
passed
↳ Function: test_as_shortcut_with_name
-
✅ Test 432
📌 Setup phase
duration:
0.00017626024782657623outcome:
passed📌 Call phase
duration:
0.00014940137043595314outcome:
passed📌 Teardown phase
duration:
0.000151726882904768outcome:
passed
↳ Function: test_as_shortcut_factory_pattern
-
✅ Test 433
📌 Setup phase
duration:
0.00016594212502241135outcome:
passed📌 Call phase
duration:
0.0001727859489619732outcome:
passed📌 Teardown phase
duration:
0.00013334490358829498outcome:
passed
↳ Function: TestShortcutsSingleton
-
✅ Test 434
📌 Setup phase
duration:
0.0004107840359210968outcome:
passed📌 Call phase
duration:
0.00015570968389511108outcome:
passed📌 Teardown phase
duration:
0.00014855340123176575outcome:
passed -
✅ Test 435
📌 Setup phase
duration:
0.00024423422291874886outcome:
passed📌 Call phase
duration:
0.00023220200091600418outcome:
passed📌 Teardown phase
duration:
0.0001653009094297886outcome:
passed -
✅ Test 436
📌 Setup phase
duration:
0.0002587302587926388outcome:
passed📌 Call phase
duration:
0.00017810100689530373outcome:
passed📌 Teardown phase
duration:
0.0001482679508626461outcome:
passed -
✅ Test 437
📌 Setup phase
duration:
0.0002431478351354599outcome:
passed📌 Call phase
duration:
0.00018147006630897522outcome:
passed📌 Teardown phase
duration:
0.00014128396287560463outcome:
passed -
✅ Test 438
📌 Setup phase
duration:
0.00025378912687301636outcome:
passed📌 Call phase
duration:
0.00023619504645466805outcome:
passed📌 Teardown phase
duration:
0.00014666607603430748outcome:
passed
↳ Function: TestFullIntegration
-
✅ Test 439
📌 Setup phase
duration:
0.0003505968488752842outcome:
passed📌 Call phase
duration:
0.0006398889236152172outcome:
passed📌 Teardown phase
duration:
0.00022348901256918907outcome:
passed -
✅ Test 440
📌 Setup phase
duration:
0.0002479380927979946outcome:
passed📌 Call phase
duration:
0.00020422367379069328outcome:
passed📌 Teardown phase
duration:
0.0001568840816617012outcome:
passed
↳ Function: test_registry_inheritance
-
✅ Test 441
📌 Setup phase
duration:
0.00017274590209126472outcome:
passed📌 Call phase
duration:
0.00014542602002620697outcome:
passed📌 Teardown phase
duration:
0.00012647686526179314outcome:
passed
-
-
📄 test_utils_snapshot.py
↳ Function: test_snapshot
-
✅ Test 442
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.00033584004268050194outcome:
passed📌 Call phase
duration:
0.0005951276980340481outcome:
passed📌 Teardown phase
duration:
0.00017256475985050201outcome:
passed -
✅ Test 443
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.00028782058507204056outcome:
passed📌 Call phase
duration:
0.00045546330511569977outcome:
passed📌 Teardown phase
duration:
0.00017741182819008827outcome:
passed -
✅ Test 444
params: test_input=[], expected=[], kwargs={}📌 Runtime Parameters
params: test_input: [] expected: [] kwargs: {} id: empty_case📌 Setup phase
duration:
0.0003132070414721966outcome:
passed📌 Call phase
duration:
0.00015343818813562393outcome:
passed📌 Teardown phase
duration:
0.00015382980927824974outcome:
passed -
✅ Test 445
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.0002738148905336857outcome:
passed📌 Call phase
duration:
0.0005560889840126038outcome:
passed📌 Teardown phase
duration:
0.0001720287837088108outcome:
passed -
✅ Test 446
params: test_input="z3", "C"], ["a1", "A"], ["m2", "B", expected=["A", "B", "C"], kwargs="{'sort_key': at 0x7f218523f5e0>}"📌 Runtime Parameters
params: test_input: - - z3 - C - - a1 - A - - m2 - B expected: - A - B - C kwargs: {'sort_key': <function <lambda> at 0x7f218523f5e0>} id: sort_id📌 Setup phase
duration:
0.00027190521359443665outcome:
passed📌 Call phase
duration:
0.0005692481063306332outcome:
passed📌 Teardown phase
duration:
0.00016902107745409012outcome:
passed -
✅ Test 447
params: test_input="3", "Charlie"], ["1", "alpha"], ["2", "Beta", expected=["alpha", "Beta", "Charlie"], kwargs="{'sort_key': at 0x7f218523f670>}"📌 Runtime Parameters
params: test_input: - - 3 - Charlie - - 1 - alpha - - 2 - Beta expected: - alpha - Beta - Charlie kwargs: {'sort_key': <function <lambda> at 0x7f218523f670>} id: sort_case_insensitive📌 Setup phase
duration:
0.000270182266831398outcome:
passed📌 Call phase
duration:
0.0005601118318736553outcome:
passed📌 Teardown phase
duration:
0.0001691337674856186outcome:
passed -
✅ Test 448
params: test_input="1", "A"], ["2", "BB"], ["3", "CCC", expected=["A", "BB", "CCC"], kwargs="{'sort_key': at 0x7f218523f700>}"📌 Runtime Parameters
params: test_input: - - 1 - A - - 2 - BB - - 3 - CCC expected: - A - BB - CCC kwargs: {'sort_key': <function <lambda> at 0x7f218523f700>} id: sort_length📌 Setup phase
duration:
0.0002830149605870247outcome:
passed📌 Call phase
duration:
0.0006628939881920815outcome:
passed📌 Teardown phase
duration:
0.00017268862575292587outcome:
passed -
✅ Test 449
params: test_input="1", "A"], ["2", "B"], ["3", "C", expected=["C", "B", "A"], kwargs="{'sort_key': at 0x7f218523f790>}"📌 Runtime Parameters
params: test_input: - - 1 - A - - 2 - B - - 3 - C expected: - C - B - A kwargs: {'sort_key': <function <lambda> at 0x7f218523f790>} id: sort_reverse📌 Setup phase
duration:
0.0002763299271464348outcome:
passed📌 Call phase
duration:
0.0005551809445023537outcome:
passed📌 Teardown phase
duration:
0.0001721121370792389outcome:
passed
-
-
📄 test_utils_termtitle.py
↳ Function: test_terminal_title_with_tmux
-
✅ Test 450
📌 Setup phase
duration:
0.00014486396685242653outcome:
passed📌 Call phase
duration:
0.014821221120655537outcome:
passed📌 Teardown phase
duration:
0.0001944778487086296outcome:
passed
-
-
📄 test_utils_tqdm_mod.py
↳ Function: test_complete_progress_bar
-
✅ Test 451
📌 Setup phase
duration:
0.00014640018343925476outcome:
passed📌 Call phase
duration:
0.004054727964103222outcome:
passed📌 Teardown phase
duration:
0.00012422073632478714outcome:
passed
↳ Function: test_set_progress_multiple_points
-
✅ Test 452
📌 Setup phase
duration:
0.000119043979793787outcome:
passed📌 Call phase
duration:
0.0016720360144972801outcome:
passed📌 Teardown phase
duration:
0.00013903481885790825outcome:
passed
↳ Function: test_format_sizeof_alignment
-
✅ Test 453
📌 Setup phase
duration:
0.0001214449293911457outcome:
passed📌 Call phase
duration:
0.00015755416825413704outcome:
passed📌 Teardown phase
duration:
0.00010518170893192291outcome:
passed
↳ Function: test_custom_unit
-
✅ Test 455
📌 Setup phase
duration:
0.00012606196105480194outcome:
passed📌 Call phase
duration:
0.004851351026445627outcome:
passed📌 Teardown phase
duration:
0.00011957110837101936outcome:
passed
↳ Function: test_clamp_above_total
-
✅ Test 456
📌 Setup phase
duration:
0.00011940626427531242outcome:
passed📌 Call phase
duration:
0.0005051959306001663outcome:
passed📌 Teardown phase
duration:
0.00011105602607131004outcome:
passed
↳ Function: test_clamp_below_zero
-
✅ Test 457
📌 Setup phase
duration:
0.0001160111278295517outcome:
passed📌 Call phase
duration:
0.0006313812918961048outcome:
passed📌 Teardown phase
duration:
0.00011679297313094139outcome:
passed
-
-
📄 test_utils_trinary.py
↳ Function: test_check_trinary_valid_values
-
✅ Test 458
📌 Setup phase
duration:
0.00012889504432678223outcome:
passed📌 Call phase
duration:
0.0001697773113846779outcome:
passed📌 Teardown phase
duration:
0.00010584015399217606outcome:
passed
↳ Function: test_check_trinary_invalid_value
-
✅ Test 459
📌 Setup phase
duration:
0.0001055723987519741outcome:
passed📌 Call phase
duration:
0.00037955259904265404outcome:
passed📌 Teardown phase
duration:
0.00011247582733631134outcome:
passed
↳ Function: test_check_trinary_with_custom_allowed_values
-
✅ Test 460
📌 Setup phase
duration:
0.00011185416951775551outcome:
passed📌 Call phase
duration:
0.00016805902123451233outcome:
passed📌 Teardown phase
duration:
0.00010813772678375244outcome:
passed
-
-
📄 test_utils_typecast.py
↳ Function: test_downcast_success
-
✅ Test 461
📌 Setup phase
duration:
0.00012378161773085594outcome:
passed📌 Call phase
duration:
0.00017536990344524384outcome:
passed📌 Teardown phase
duration:
0.0001038331538438797outcome:
passed
↳ Function: test_upcast_success
-
✅ Test 462
📌 Setup phase
duration:
0.00010930700227618217outcome:
passed📌 Call phase
duration:
0.00015473226085305214outcome:
passed📌 Teardown phase
duration:
9.961286559700966e-05outcome:
passed
↳ Function: test_downcast_invalid
-
✅ Test 463
📌 Setup phase
duration:
0.00010709092020988464outcome:
passed📌 Call phase
duration:
0.00031607411801815033outcome:
passed📌 Teardown phase
duration:
0.00010931771248579025outcome:
passed
↳ Function: test_upcast_invalid
-
✅ Test 464
📌 Setup phase
duration:
0.00011052889749407768outcome:
passed📌 Call phase
duration:
0.00016983924433588982outcome:
passed📌 Teardown phase
duration:
0.00010824482887983322outcome:
passed
↳ Function: test_object_identity_preserved
-
✅ Test 465
📌 Setup phase
duration:
0.00010361522436141968outcome:
passed📌 Call phase
duration:
0.00015346193686127663outcome:
passed📌 Teardown phase
duration:
0.00011249072849750519outcome:
passed
↳ Function: test_ensure_subclass_valid
-
✅ Test 466
📌 Setup phase
duration:
0.00010493211448192596outcome:
passed📌 Call phase
duration:
0.00013241032138466835outcome:
passed📌 Teardown phase
duration:
0.00010548485442996025outcome:
passed
↳ Function: test_ensure_subclass_invalid
-
✅ Test 467
📌 Setup phase
duration:
0.00010192766785621643outcome:
passed📌 Call phase
duration:
0.00016517005860805511outcome:
passed📌 Teardown phase
duration:
0.0001268591731786728outcome:
passed
↳ Function: test_cast_changes_class
-
✅ Test 468
📌 Setup phase
duration:
0.00010671606287360191outcome:
passed📌 Call phase
duration:
0.0001407158561050892outcome:
passed📌 Teardown phase
duration:
9.856326505541801e-05outcome:
passed
↳ Function: test_cast_preserves_identity
-
✅ Test 469
📌 Setup phase
duration:
0.00010286318138241768outcome:
passed📌 Call phase
duration:
0.0001280689612030983outcome:
passed📌 Teardown phase
duration:
0.00010091299191117287outcome:
passed
-
-
📄 test_utils_utils.py
↳ Function: test_singleton_instance
-
✅ Test 470
📌 Setup phase
duration:
0.00011542486026883125outcome:
passed📌 Call phase
duration:
0.00014764023944735527outcome:
passed📌 Teardown phase
duration:
9.824521839618683e-05outcome:
passed
↳ Function: test_singleton_identity
-
✅ Test 471
📌 Setup phase
duration:
0.00010650092735886574outcome:
passed📌 Call phase
duration:
0.00013615796342492104outcome:
passed📌 Teardown phase
duration:
9.839190170168877e-05outcome:
passed
↳ Function: test_typename
-
✅ Test 472
params: obj=null, expected="NoneType"📌 Runtime Parameters
params: obj: None expected: NoneType id: None-NoneType📌 Setup phase
duration:
0.0003123059868812561outcome:
passed📌 Call phase
duration:
0.0001529976725578308outcome:
passed📌 Teardown phase
duration:
0.00014731287956237793outcome:
passed -
✅ Test 473
params: obj=true, expected="bool"📌 Runtime Parameters
params: obj: True expected: bool id: True-bool📌 Setup phase
duration:
0.00023625511676073074outcome:
passed📌 Call phase
duration:
0.00013744831085205078outcome:
passed📌 Teardown phase
duration:
0.00014048069715499878outcome:
passed -
✅ Test 474
params: obj=42, expected="int"📌 Runtime Parameters
params: obj: 42 expected: int id: 42-int📌 Setup phase
duration:
0.00022206688299775124outcome:
passed📌 Call phase
duration:
0.00013392465189099312outcome:
passed📌 Teardown phase
duration:
0.00013544969260692596outcome:
passed -
✅ Test 475
params: obj=3.14, expected="float"📌 Runtime Parameters
params: obj: 3.14 expected: float id: 3.14-float📌 Setup phase
duration:
0.00022051669657230377outcome:
passed📌 Call phase
duration:
0.00013703526929020882outcome:
passed📌 Teardown phase
duration:
0.00013782503083348274outcome:
passed -
✅ Test 476
params: obj="text", expected="str"📌 Runtime Parameters
params: obj: text expected: str id: text-str📌 Setup phase
duration:
0.00021757883951067924outcome:
passed📌 Call phase
duration:
0.00014724908396601677outcome:
passed📌 Teardown phase
duration:
0.0001377509906888008outcome:
passed -
✅ Test 477
params: obj="{1, 2, 3}", expected="set"📌 Runtime Parameters
params: obj: {1, 2, 3} expected: set id: obj5-set📌 Setup phase
duration:
0.0002100490964949131outcome:
passed📌 Call phase
duration:
0.00014090724289417267outcome:
passed📌 Teardown phase
duration:
0.00013844016939401627outcome:
passed -
✅ Test 478
params: obj=1], [2, 3, expected="list"📌 Runtime Parameters
params: obj: - - 1 - - 2 - 3 expected: list id: obj6-list📌 Setup phase
duration:
0.00022553326562047005outcome:
passed📌 Call phase
duration:
0.0001362641341984272outcome:
passed📌 Teardown phase
duration:
0.0001402050256729126outcome:
passed -
✅ Test 479
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.00022034905850887299outcome:
passed📌 Call phase
duration:
0.00013376399874687195outcome:
passed📌 Teardown phase
duration:
0.0001354580745100975outcome:
passed -
✅ Test 480
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.00021842308342456818outcome:
passed📌 Call phase
duration:
0.00013705529272556305outcome:
passed📌 Teardown phase
duration:
0.0001383339986205101outcome:
passed -
✅ Test 481
params: obj=" at 0x7f2185225ee0>", expected="function"📌 Runtime Parameters
params: obj: <function <lambda> at 0x7f2185225ee0> expected: function id: <lambda>-function📌 Setup phase
duration:
0.0002936362288892269outcome:
passed📌 Call phase
duration:
0.0001620519906282425outcome:
passed📌 Teardown phase
duration:
0.0001438399776816368outcome:
passed -
✅ Test 482
params: obj="", expected="function"📌 Runtime Parameters
params: obj: <function sample_function at 0x7f2185225e50> expected: function id: sample_function-function📌 Setup phase
duration:
0.00022626807913184166outcome:
passed📌 Call phase
duration:
0.00013546692207455635outcome:
passed📌 Teardown phase
duration:
0.00013964809477329254outcome:
passed -
✅ Test 483
params: obj=".nested at 0x7f2185225f70>", expected="function"📌 Runtime Parameters
params: obj: <function sample_function.<locals>.nested at 0x7f2185225f70> expected: function id: nested-function📌 Setup phase
duration:
0.00022629788145422935outcome:
passed📌 Call phase
duration:
0.00013720476999878883outcome:
passed📌 Teardown phase
duration:
0.0001671849749982357outcome:
passed -
✅ Test 484
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.00026173004880547523outcome:
passed📌 Call phase
duration:
0.00015360210090875626outcome:
passed📌 Teardown phase
duration:
0.00014717504382133484outcome:
passed -
✅ Test 485
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.0002129250206053257outcome:
passed📌 Call phase
duration:
0.00014587398618459702outcome:
passed📌 Teardown phase
duration:
0.00014596059918403625outcome:
passed -
✅ Test 486
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.00023910915479063988outcome:
passed📌 Call phase
duration:
0.0001382729969918728outcome:
passed📌 Teardown phase
duration:
0.0001412699930369854outcome:
passed -
✅ Test 487
params: obj="", expected="module"📌 Runtime Parameters
params: obj: <module 'sys' (built-in)> expected: module id: sys-module📌 Setup phase
duration:
0.00022298982366919518outcome:
passed📌 Call phase
duration:
0.000138069037348032outcome:
passed📌 Teardown phase
duration:
0.0001532859168946743outcome:
passed -
✅ Test 488
params: obj="", expected="type"📌 Runtime Parameters
params: obj: <class 'function'> expected: type id: function-type📌 Setup phase
duration:
0.00022360030561685562outcome:
passed📌 Call phase
duration:
0.00013892818242311478outcome:
passed📌 Teardown phase
duration:
0.00013994984328746796outcome:
passed -
✅ Test 489
params: obj=" at 0x7f2185031cf0>", expected="generator"📌 Runtime Parameters
params: obj: <generator object <genexpr> at 0x7f2185031cf0> expected: generator id: <genexpr>-generator📌 Setup phase
duration:
0.0002105478197336197outcome:
passed📌 Call phase
duration:
0.0001489478163421154outcome:
passed📌 Teardown phase
duration:
0.0001386171206831932outcome:
passed -
✅ Test 490
params: obj="", expected="list_iterator"📌 Runtime Parameters
params: obj: <list_iterator object at 0x7f2185051640> expected: list_iterator id: obj18-list_iterator📌 Setup phase
duration:
0.00022196676582098007outcome:
passed📌 Call phase
duration:
0.00013368483632802963outcome:
passed📌 Teardown phase
duration:
0.0001361318863928318outcome:
passed
↳ Function: test_next_int
-
✅ Test 491
params: nums=[1, 2, 3], expected=4📌 Runtime Parameters
params: nums: - 1 - 2 - 3 expected: 4 id: nums0-4📌 Setup phase
duration:
0.00023519480600953102outcome:
passed📌 Call phase
duration:
0.00014253705739974976outcome:
passed📌 Teardown phase
duration:
0.00013770628720521927outcome:
passed -
✅ Test 492
params: nums=[10, 20], expected=21📌 Runtime Parameters
params: nums: - 10 - 20 expected: 21 id: nums1-21📌 Setup phase
duration:
0.00020812498405575752outcome:
passed📌 Call phase
duration:
0.0001388760283589363outcome:
passed📌 Teardown phase
duration:
0.00014981534332036972outcome:
passed -
✅ Test 493
params: nums=[], expected=0📌 Runtime Parameters
params: nums: [] expected: 0 id: nums2-0📌 Setup phase
duration:
0.00022251298651099205outcome:
passed📌 Call phase
duration:
0.00013252627104520798outcome:
passed📌 Teardown phase
duration:
0.00014246301725506783outcome:
passed
↳ Function: test_zero_pad
-
✅ Test 494
params: i=7, n=3, expected="007"📌 Runtime Parameters
params: i: 7 n: 3 expected: 007 id: 7-3-007📌 Setup phase
duration:
0.00026813894510269165outcome:
passed📌 Call phase
duration:
0.0001387372612953186outcome:
passed📌 Teardown phase
duration:
0.000151932705193758outcome:
passed -
✅ Test 495
params: i=123, n=5, expected="00123"📌 Runtime Parameters
params: i: 123 n: 5 expected: 00123 id: 123-5-00123📌 Setup phase
duration:
0.00028176093474030495outcome:
passed📌 Call phase
duration:
0.00014088675379753113outcome:
passed📌 Teardown phase
duration:
0.0001510349102318287outcome:
passed -
✅ Test 496
params: i=0, n=2, expected="00"📌 Runtime Parameters
params: i: 0 n: 2 expected: 00 id: 0-2-00📌 Setup phase
duration:
0.0002668006345629692outcome:
passed📌 Call phase
duration:
0.00013918336480855942outcome:
passed📌 Teardown phase
duration:
0.00016260892152786255outcome:
passed
↳ Function: test_iround
-
✅ Test 497
params: val=3.6, expected=4📌 Runtime Parameters
params: val: 3.6 expected: 4 id: 3.6-4📌 Setup phase
duration:
0.0002132500521838665outcome:
passed📌 Call phase
duration:
0.00015132734552025795outcome:
passed📌 Teardown phase
duration:
0.00014328816905617714outcome:
passed -
✅ Test 498
params: val=2.1, expected=2📌 Runtime Parameters
params: val: 2.1 expected: 2 id: 2.1-2📌 Setup phase
duration:
0.00022435327991843224outcome:
passed📌 Call phase
duration:
0.00014994945377111435outcome:
passed📌 Teardown phase
duration:
0.0001377267763018608outcome:
passed -
✅ Test 499
params: val=-1.5, expected=-2📌 Runtime Parameters
params: val: -1.5 expected: -2 id: -1.5--2📌 Setup phase
duration:
0.00022012321278452873outcome:
passed📌 Call phase
duration:
0.00013349531218409538outcome:
passed📌 Teardown phase
duration:
0.00013880198821425438outcome:
passed -
✅ Test 500
params: val=-1.4, expected=-1📌 Runtime Parameters
params: val: -1.4 expected: -1 id: -1.4--1📌 Setup phase
duration:
0.00022867275401949883outcome:
passed📌 Call phase
duration:
0.00013872189447283745outcome:
passed📌 Teardown phase
duration:
0.00013648159801959991outcome:
passed
↳ Function: test_sorted_naturally
-
✅ Test 501
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.00023018661886453629outcome:
passed📌 Call phase
duration:
0.0001794961281120777outcome:
passed📌 Teardown phase
duration:
0.00014176778495311737outcome:
passed -
✅ Test 502
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.00022802408784627914outcome:
passed📌 Call phase
duration:
0.0001795073039829731outcome:
passed📌 Teardown phase
duration:
0.0001390739344060421outcome:
passed
↳ Function: test_sorted_naturally_reverse
-
✅ Test 503
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.0002214028500020504outcome:
passed📌 Call phase
duration:
0.00015396904200315475outcome:
passed📌 Teardown phase
duration:
0.00014724116772413254outcome:
passed
-
-
📄 test_utils_xrange.py
↳ Function: test_xrange_finite
-
✅ Test 504
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.00028269505128264427outcome:
passed📌 Call phase
duration:
0.0001591891050338745outcome:
passed📌 Teardown phase
duration:
0.00019044196233153343outcome:
passed -
✅ Test 505
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.0003127441741526127outcome:
passed📌 Call phase
duration:
0.0002211560495197773outcome:
passed📌 Teardown phase
duration:
0.0001592007465660572outcome:
passed -
✅ Test 506
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.0002837139181792736outcome:
passed📌 Call phase
duration:
0.00014407793059945107outcome:
passed📌 Teardown phase
duration:
0.000160308089107275outcome:
passed -
✅ Test 507
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.00026033585891127586outcome:
passed📌 Call phase
duration:
0.00014108512550592422outcome:
passed📌 Teardown phase
duration:
0.00017170794308185577outcome:
passed
↳ Function: test_xrange_infinite
-
✅ Test 508
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.00026339292526245117outcome:
passed📌 Call phase
duration:
0.00014802208170294762outcome:
passed📌 Teardown phase
duration:
0.00015650223940610886outcome:
passed -
✅ Test 509
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.00027932319790124893outcome:
passed📌 Call phase
duration:
0.00015204818919301033outcome:
passed📌 Teardown phase
duration:
0.00015030894428491592outcome:
passed
↳ Function: test_xrange_too_many_args
-
✅ Test 510
params: args=[1, 2, 3, 4]📌 Runtime Parameters
params: args: - 1 - 2 - 3 - 4 id: args0📌 Setup phase
duration:
0.0001746630296111107outcome:
passed📌 Call phase
duration:
0.0004495372995734215outcome:
passed📌 Teardown phase
duration:
0.0006470531225204468outcome:
passed
-
❌ Failed (36)
-
📄 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.00048350030556321144outcome:
passed📌 Call phase
duration:
0.0009655430912971497outcome:
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.00047011999413371086outcome:
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.0004733898676931858outcome:
passed📌 Call phase
duration:
0.0009483783505856991outcome:
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.0003270539455115795outcome:
passed
-
-
📄 test_utils_elog.py
↳ Function: test_check_required_attributes
-
❌ Test 159
📌 Setup phase
duration:
0.0001218658871948719outcome:
passed📌 Call phase
duration:
0.002931224647909403outcome:
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?cmd=Config (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2184eae4f0>: Failed to establish a new connection: [Errno 111] Connection refused'))traceback:
- path: tests/test_utils_elog.py lineno: 31 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 0x7f2184eae4f0> 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 0x7f2184f11b20> method = 'GET', url = '/demo?cmd=Config', 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='cmd=Config', 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 0x7f2184eae4f0> 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 0x7f2184eae4f0>: 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 0x7f2184f117c0> 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?cmd=Config', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2184eae4f0>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f2184f11b20> _stacktrace = <traceback object at 0x7f2131fd55c0> 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=Config (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2184eae4f0>: 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_check_required_attributes(): url = "http://localhost:8080/demo?cmd=Config" > response = requests.get(url, auth=("robot", "testpassword")) tests/test_utils_elog.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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 0x7f2184f117c0> 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?cmd=Config (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2184eae4f0>: 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.0002253078855574131outcome:
passed
↳ Function: test_post
-
❌ Test 160
📌 Setup phase
duration:
0.00013729091733694077outcome:
passed📌 Call phase
duration:
0.009499642997980118outcome:
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/None (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f213128a340>: Failed to establish a new connection: [Errno 111] Connection refused'))traceback:
- path: tests/test_utils_elog.py lineno: 114 message: None - path: slic/utils/elog.py lineno: 16 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 0x7f21855a9250> 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 0x7f218531ce50> method = 'POST', url = '/demo/' body = b'--3aa20d41ff42e79e36d243b7f1d2863d\r\nContent-Disposition: form-data; name="Author"\r\n\r\nrobot\r\n--3aa20d41ff42e7...-Disposition: form-data; name="Text"; filename=""\r\n\r\nThis is a message\r\n--3aa20d41ff42e79e36d243b7f1d2863d--\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=3aa20d41ff42e79e36d243b7f1d2863d'} 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 0x7f21855a9250> 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 0x7f21855a9250>: 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 0x7f213102b5e0> 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/', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f21855a9250>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f218531ce50> _stacktrace = <traceback object at 0x7f21312584c0> 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 0x7f21855a9250>: 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 0x7f213102b130> message = 'This is a message', msg_id = None, reply = False attributes = {'Author': 'robot', 'When': 1754516803, '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': 1754516803, '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 0x7f213102b5e0> 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/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f21855a9250>: 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 0x7f213128a340> 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 0x7f213128aca0> method = 'GET', url = '/demo/None', 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/None', 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 0x7f213128a340> 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 0x7f213128a340>: 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 0x7f213128aaf0> 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/None', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f213128a340>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f213128aca0> _stacktrace = <traceback object at 0x7f21311b0840> 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/None (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f213128a340>: 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 0x7f213102b130>, 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 0x7f213128aaf0> 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/None (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f213128a340>: 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" > resp = elog.post(text, Author=author) tests/test_utils_elog.py:114: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ slic/utils/elog.py:16: 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 0x7f213102b130>, 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/None (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f213128a340>: 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.0002238992601633072outcome:
passed
↳ Function: test_get_default_elog_instance_with_direct_password_and_real_check
-
❌ Test 161
📌 Setup phase
duration:
0.00013531232252717018outcome:
passed📌 Call phase
duration:
0.005187573377043009outcome:
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 0x7f21311154f0>: Failed to establish a new connection: [Errno 111] Connection refused'))traceback:
- path: tests/test_utils_elog.py lineno: 54 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 0x7f21311154f0> 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 0x7f2131115dc0> 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 0x7f21311154f0> 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 0x7f21311154f0>: 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 0x7f2130f50280> 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 0x7f21311154f0>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f2131115dc0> _stacktrace = <traceback object at 0x7f2130f65640> 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 0x7f21311154f0>: 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:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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 0x7f2130f50280> 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 0x7f21311154f0>: 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.0002231840044260025outcome:
passed
↳ Function: test_get_default_elog_instance_asks_password_and_opens
-
❌ Test 162
📌 Setup phase
duration:
0.00014508329331874847outcome:
passed📌 Call phase
duration:
0.005951678846031427outcome:
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 0x7f2131ab3610>: Failed to establish a new connection: [Errno 111] Connection refused'))traceback:
- path: tests/test_utils_elog.py lineno: 72 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 0x7f2131ab3610> 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 0x7f2131ab32e0> 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 0x7f2131ab3610> 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 0x7f2131ab3610>: 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 0x7f2131ab3d30> 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 0x7f2131ab3610>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f2131ab32e0> _stacktrace = <traceback object at 0x7f2131103ec0> 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 0x7f2131ab3610>: 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='139780533044992'> mock_getpass = <MagicMock name='getpass' id='139780535305168'> @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:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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 0x7f2131ab3d30> 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 0x7f2131ab3610>: 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.00022700801491737366outcome:
passed
↳ Function: test_get_default_elog_with_path_home
-
❌ Test 163
📌 Setup phase
duration:
0.00013934075832366943outcome:
passed📌 Call phase
duration:
0.0066883377730846405outcome:
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 0x7f2184f11a00>: Failed to establish a new connection: [Errno 111] Connection refused'))traceback:
- path: tests/test_utils_elog.py lineno: 99 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 0x7f2184f11a00> 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 0x7f2184f11af0> 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 0x7f2184f11a00> 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 0x7f2184f11a00>: 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 0x7f2184f11730> 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 0x7f2184f11a00>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f2184f11af0> _stacktrace = <traceback object at 0x7f2131b01e80> 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 0x7f2184f11a00>: 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='139780544317856'> mock_getuser = <MagicMock name='getuser' id='139780533650288'> mock_getpass = <MagicMock name='getpass' id='139780533963936'> @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:99: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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 0x7f2184f11730> 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 0x7f2184f11a00>: 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.00028896285220980644outcome:
passed
↳ Function: test_screenshot
-
❌ Test 164
📌 Setup phase
duration:
0.00014475081115961075outcome:
passed📌 Call phase
duration:
0.00896908389404416outcome:
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/None (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2131262040>: Failed to establish a new connection: [Errno 111] Connection refused'))traceback:
- path: tests/test_utils_elog.py lineno: 137 message: None - path: slic/utils/elog.py lineno: 21 message: in screenshot - path: slic/utils/elog.py lineno: 16 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 0x7f212d62dd90> 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 0x7f2185ead190> method = 'POST', url = '/demo/' body = b'--3e92fd86062f2bbec6e9d95c9983b87b\r\nContent-Disposition: form-data; name="Author"\r\n\r\nrobot\r\n--3e92fd86062f2b...-data; name="Text"; filename=""\r\n\r\nSCREENSHOT_INTEGRATION_TEST_MSG_456\r\n--3e92fd86062f2bbec6e9d95c9983b87b--\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=3e92fd86062f2bbec6e9d95c9983b87b'} 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 0x7f212d62dd90> 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 0x7f212d62dd90>: 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 0x7f2185ead100> 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/', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f212d62dd90>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f2185ead190> _stacktrace = <traceback object at 0x7f213100e7c0> 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 0x7f212d62dd90>: 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 0x7f21310e8700> message = 'SCREENSHOT_INTEGRATION_TEST_MSG_456', msg_id = None, reply = False attributes = {'Author': 'robot', 'When': 1754516804, 'cmd': 'Submit', 'exp': 'demo', ...} attachments = ['/tmp/tmpk6vtl3yz.png'], suppress_email_notification = False encoding = None, timeout = None, kwargs = {'Author': 'robot'} new_attachment_list = [('attfile0', ('tmpk6vtl3yz.png', <_io.BufferedReader name='/tmp/tmpk6vtl3yz.png'>)), ('Text', ('', b'SCREENSHOT_INTEGRATION_TEST_MSG_456'))] objects_to_close = [<_io.BufferedReader name='/tmp/tmpk6vtl3yz.png'>] attributes_to_edit = {'Author': b'robot', 'When': 1754516804, '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 0x7f2185ead100> 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/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f212d62dd90>: 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 0x7f2131262040> 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 0x7f2131262e80> method = 'GET', url = '/demo/None', 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/None', 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 0x7f2131262040> 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 0x7f2131262040>: 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 0x7f21852e5d60> 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/None', response = None error = NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2131262040>: Failed to establish a new connection: [Errno 111] Connection refused') _pool = <urllib3.connectionpool.HTTPConnectionPool object at 0x7f2131262e80> _stacktrace = <traceback object at 0x7f2131037080> 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/None (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2131262040>: 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 0x7f21310e8700>, 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 0x7f21852e5d60> 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/None (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2131262040>: 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='139780533287088'> @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:137: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ slic/utils/elog.py:21: in screenshot self.post(message, **kwargs) slic/utils/elog.py:16: 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 0x7f21310e8700>, 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/None (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2131262040>: 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.00027840491384267807outcome:
passed
-
-
📄 test_utils_hastyepics.py
↳ Function: test_motor_instantiation_fast_vs_epics
-
❌ Test 217
📌 Setup phase
duration:
0.00012470688670873642outcome:
passed📌 Call phase
duration:
0.1062618913128972outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_hastyepics.py lineno: 37 message: AssertionError: Fast version (0.010116s) should be faster than EPICS (0.000272s) assert 0.010115887876600027 < 0.00027177417650818824traceback:
- 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.010116s) should be faster than EPICS (0.000272s) E assert 0.010115887876600027 < 0.00027177417650818824 tests/test_utils_hastyepics.py:37: AssertionError📌 Teardown phase
duration:
0.0004394170828163624outcome:
passed
↳ Function: test_motor_without_suffix_and_dot
-
❌ Test 218
📌 Setup phase
duration:
0.0002237199805676937outcome:
passed📌 Call phase
duration:
0.0018404540605843067outcome:
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.00015371711924672127outcome:
passed
↳ Function: test_motor_initializes_device_attrs
-
❌ Test 221
📌 Setup phase
duration:
0.00010786391794681549outcome:
passed📌 Call phase
duration:
0.0014342493377625942outcome:
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.00015926873311400414outcome:
passed
-
-
📄 test_utils_logcfg.py
↳ Function: test_import_logging_once_per_module
-
❌ Test 237
📌 Setup phase
duration:
0.00013641314581036568outcome:
passed📌 Call phase
duration:
1.8449157853610814outcome:
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.00042102299630641937outcome:
passed
-
-
📄 test_utils_npy.py
↳ Function: test_nice_arange
-
❌ Test 247
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.000395940151065588outcome:
passed📌 Call phase
duration:
0.0010857367888092995outcome:
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 0x7f2131b5f790>, 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.0003344770520925522outcome:
passed -
❌ Test 249
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.00035826629027724266outcome:
passed📌 Call phase
duration:
0.0005484670400619507outcome:
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 0x7f21312d1b80>, 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.00023221410810947418outcome:
passed -
❌ Test 250
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.00036154361441731453outcome:
passed📌 Call phase
duration:
0.0009019849821925163outcome:
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 0x7f21312eb040>, 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.00021352805197238922outcome:
passed
↳ Function: test_nice_steps_left_aligned
-
❌ Test 262
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.0003750990144908428outcome:
passed📌 Call phase
duration:
0.0004952624440193176outcome:
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 0x7f2130f6d8b0>, 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.00022142380475997925outcome:
passed -
❌ Test 263
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.0003897910937666893outcome:
passed📌 Call phase
duration:
0.00047474494203925133outcome:
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 0x7f2131b5fa60>, 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.0002502109855413437outcome:
passed -
❌ Test 266
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.0003896839916706085outcome:
passed📌 Call phase
duration:
0.000505735632032156outcome:
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 0x7f21312a2f70>, 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.0002403082326054573outcome:
passed -
❌ Test 267
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.0003728293813765049outcome:
passed📌 Call phase
duration:
0.000489342026412487outcome:
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 0x7f2130f6e5e0>, 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.00022129295393824577outcome:
passed -
❌ Test 268
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.0005784220993518829outcome:
passed📌 Call phase
duration:
0.0006889719516038895outcome:
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 0x7f2130f6e8b0>, 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.00023582205176353455outcome:
passed
↳ Function: test_nice_steps_right_aligned
-
❌ Test 269
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.0003817160613834858outcome:
passed📌 Call phase
duration:
0.0005059503018856049outcome:
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 0x7f2130f6e700>, 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.00023230770602822304outcome:
passed -
❌ Test 270
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.00039294827729463577outcome:
passed📌 Call phase
duration:
0.000499409157782793outcome:
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 0x7f2130f9b280>, 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.00023976294323801994outcome:
passed -
❌ Test 271
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.0003690570592880249outcome:
passed📌 Call phase
duration:
0.000852684024721384outcome:
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 0x7f2130f9b040>, 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.00023537501692771912outcome:
passed -
❌ Test 272
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.0004066308028995991outcome:
passed📌 Call phase
duration:
0.0008445563726127148outcome:
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 0x7f2130f6e700>, 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.00024184538051486015outcome:
passed -
❌ Test 273
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.0003933301195502281outcome:
passed📌 Call phase
duration:
0.000516924075782299outcome:
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 0x7f2130f85dc0>, 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.00022963527590036392outcome:
passed -
❌ Test 274
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.0003782622516155243outcome:
passed📌 Call phase
duration:
0.0004812418483197689outcome:
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 0x7f2130f9bdc0>, 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.00023665791377425194outcome:
passed -
❌ Test 275
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.00039197783917188644outcome:
passed📌 Call phase
duration:
0.0004842258058488369outcome:
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 0x7f2130f855e0>, 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.0002215951681137085outcome:
passed
-
-
📄 test_utils_pv.py
↳ Function: test_put_with_progress_and_repr
-
❌ Test 348
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.0022585010156035outcome:
passedlog:
- name: pcaspy.Driver.setParam msg: START_TIME: value=2025-08-06 21:46:47.342478 alarm=NO_ALARM severity=NO_ALARM flag=True mask=7 time=1123364807.342510702 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: 1754516807.342598 msecs: 342.59796142578125 relativeCreated: 9654.44827079773 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=4 time=1123364807.343185843 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: 1754516807.3432114 msecs: 343.21141242980957 relativeCreated: 9655.061721801758 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364807.443636956 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: 1754516807.443769 msecs: 443.7689781188965 relativeCreated: 9755.619287490845 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364807.544358115 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: 1754516807.5444381 msecs: 544.4381237030029 relativeCreated: 9856.288433074951 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364807.645054364 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: 1754516807.6451297 msecs: 645.1296806335449 relativeCreated: 9956.979990005493 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364807.745674210 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: 1754516807.7457693 msecs: 745.7692623138428 relativeCreated: 10057.619571685791 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364807.846328768 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: 1754516807.846406 msecs: 846.4059829711914 relativeCreated: 10158.25629234314 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364807.946986529 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: 1754516807.947062 msecs: 947.0620155334473 relativeCreated: 10258.912324905396 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.47582776 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: 1754516808.0476596 msecs: 47.65963554382324 relativeCreated: 10359.509944915771 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.148224874 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: 1754516808.148299 msecs: 148.298978805542 relativeCreated: 10460.14928817749 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.248840580 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: 1754516808.248928 msecs: 248.92807006835938 relativeCreated: 10560.778379440308 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826📌 Call phase
duration:
0.014305517077445984outcome:
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=1123364808.349538158 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: 1754516808.349608 msecs: 349.6079444885254 relativeCreated: 10661.458253860474 thread: 139780499052224 threadName: Thread-3 processName: MainProcess process: 1826 - 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: 1754516808.3520367 msecs: 352.036714553833 relativeCreated: 10663.887023925781 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.3523185 msecs: 352.31852531433105 relativeCreated: 10664.16883468628 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.352429834 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: 1754516808.3524523 msecs: 352.45227813720703 relativeCreated: 10664.302587509155 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - 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: 1754516808.3537626 msecs: 353.7626266479492 relativeCreated: 10665.612936019897 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.354185 msecs: 354.1851043701172 relativeCreated: 10666.035413742065 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.354251454 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: 1754516808.354266 msecs: 354.2659282684326 relativeCreated: 10666.11623764038 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826longrepr:
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.00032445602118968964outcome:
passed -
❌ Test 349
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.0003750207833945751outcome:
passed📌 Call phase
duration:
0.0031601078808307648outcome:
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: 1754516808.3629026 msecs: 362.9026412963867 relativeCreated: 10674.752950668335 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.3631902 msecs: 363.1901741027832 relativeCreated: 10675.040483474731 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.363307473 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: 1754516808.3633318 msecs: 363.33179473876953 relativeCreated: 10675.182104110718 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - 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: 1754516808.364033 msecs: 364.0329837799072 relativeCreated: 10675.883293151855 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.3644278 msecs: 364.4278049468994 relativeCreated: 10676.278114318848 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=25.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123364808.364506632 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: 1754516808.3645234 msecs: 364.52341079711914 relativeCreated: 10676.373720169067 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826longrepr:
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.00027357274666428566outcome:
passed -
❌ Test 350
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.000428623054176569outcome:
passed📌 Call phase
duration:
0.002974436618387699outcome:
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 [DEBUG] Callback called with value = 50.0 [ 0 |[32m██████████████████████████████[39m| 50 ] [1m50[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: 1754516808.3721132 msecs: 372.1132278442383 relativeCreated: 10683.963537216187 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.3723557 msecs: 372.35569953918457 relativeCreated: 10684.206008911133 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123364808.372434952 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: 1754516808.3724535 msecs: 372.4534511566162 relativeCreated: 10684.303760528564 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - 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: 1754516808.3732572 msecs: 373.2571601867676 relativeCreated: 10685.107469558716 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.3736322 msecs: 373.63219261169434 relativeCreated: 10685.482501983643 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=50.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123364808.373704191 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: 1754516808.3737173 msecs: 373.7173080444336 relativeCreated: 10685.567617416382 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826longrepr:
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 [DEBUG] Callback called with value = 50.0 E [ 0 |[32m██████████████████████████████[39m| 50 ] [1m50[0m E E assert [] tests/test_utils_pv.py:81: AssertionError📌 Teardown phase
duration:
0.00025858404114842415outcome:
passed -
❌ Test 351
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.0003446652553975582outcome:
passed📌 Call phase
duration:
0.002823077142238617outcome:
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 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: 1754516808.3809073 msecs: 380.9072971343994 relativeCreated: 10692.757606506348 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.3813477 msecs: 381.34765625 relativeCreated: 10693.197965621948 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123364808.381416061 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: 1754516808.3814309 msecs: 381.43086433410645 relativeCreated: 10693.281173706055 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - 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: 1754516808.3821776 msecs: 382.17759132385254 relativeCreated: 10694.0279006958 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.3825066 msecs: 382.5066089630127 relativeCreated: 10694.356918334961 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=75.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123364808.382563214 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: 1754516808.3825755 msecs: 382.57551193237305 relativeCreated: 10694.425821304321 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826longrepr:
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 E assert [] tests/test_utils_pv.py:81: AssertionError📌 Teardown phase
duration:
0.00024192873388528824outcome:
passed -
❌ Test 352
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.00035333679988980293outcome:
passed📌 Call phase
duration:
0.002393469214439392outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_pv.py lineno: 62 message: assert 75.0 == 0.0 ± 1.0e-12 comparison failed Obtained: 75.0 Expected: 0.0 ± 1.0e-12traceback:
- path: tests/test_utils_pv.py lineno: 62 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: 1754516808.3894343 msecs: 389.4343376159668 relativeCreated: 10701.284646987915 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.3898256 msecs: 389.82558250427246 relativeCreated: 10701.67589187622 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123364808.389885706 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: 1754516808.3898988 msecs: 389.89877700805664 relativeCreated: 10701.749086380005 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - 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: 1754516808.3908794 msecs: 390.87939262390137 relativeCreated: 10702.72970199585 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826longrepr:
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) E assert 75.0 == 0.0 ± 1.0e-12 E E comparison failed E Obtained: 75.0 E Expected: 0.0 ± 1.0e-12 tests/test_utils_pv.py:62: AssertionError📌 Teardown phase
duration:
0.00025468599051237106outcome:
passed -
❌ Test 353
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.00034371018409729004outcome:
passed📌 Call phase
duration:
0.0026590581983327866outcome:
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 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: 1754516808.3972573 msecs: 397.25732803344727 relativeCreated: 10709.107637405396 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.3974595 msecs: 397.4595069885254 relativeCreated: 10709.309816360474 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.397534237 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: 1754516808.39755 msecs: 397.550106048584 relativeCreated: 10709.400415420532 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - 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: 1754516808.398164 msecs: 398.1640338897705 relativeCreated: 10710.014343261719 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.3984737 msecs: 398.47373962402344 relativeCreated: 10710.324048995972 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=150.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123364808.398529242 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: 1754516808.398541 msecs: 398.5409736633301 relativeCreated: 10710.391283035278 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826longrepr:
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 E assert [] tests/test_utils_pv.py:81: AssertionError📌 Teardown phase
duration:
0.00023632217198610306outcome:
passed -
❌ Test 354
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.00033549731597304344outcome:
passed📌 Call phase
duration:
0.002608687151223421outcome:
failedcrash:
path: /workspace/tligui_y/slic/tests/test_utils_pv.py lineno: 62 message: assert 150.0 == 0.0 ± 1.0e-12 comparison failed Obtained: 150.0 Expected: 0.0 ± 1.0e-12traceback:
- path: tests/test_utils_pv.py lineno: 62 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: 1754516808.405789 msecs: 405.7888984680176 relativeCreated: 10717.639207839966 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.4060795 msecs: 406.0795307159424 relativeCreated: 10717.92984008789 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=True mask=3 time=1123364808.406172992 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: 1754516808.4061882 msecs: 406.1882495880127 relativeCreated: 10718.038558959961 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - 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: 1754516808.4074514 msecs: 407.4513912200928 relativeCreated: 10719.301700592041 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826longrepr:
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) E assert 150.0 == 0.0 ± 1.0e-12 E E comparison failed E Obtained: 150.0 E Expected: 0.0 ± 1.0e-12 tests/test_utils_pv.py:62: AssertionError📌 Teardown phase
duration:
0.00024017225950956345outcome:
passed
↳ Function: test_use_callback_context_manager
-
❌ Test 355
📌 Setup phase
duration:
0.00016389461234211922outcome:
passed📌 Call phase
duration:
0.0013062572106719017outcome:
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 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: 1754516808.4135563 msecs: 413.5563373565674 relativeCreated: 10725.406646728516 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.SimplePV.writeValue msg: VAL: 374aff4e40fa 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: 1754516808.413875 msecs: 413.8751029968262 relativeCreated: 10725.725412368774 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826 - name: pcaspy.Driver.setParam msg: VAL: value=0.0 alarm=NO_ALARM severity=NO_ALARM flag=False mask=0 time=1123364808.413947715 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: 1754516808.4139628 msecs: 413.96284103393555 relativeCreated: 10725.813150405884 thread: 139780507444928 threadName: Thread-4 processName: MainProcess process: 1826longrepr:
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.00022573303431272507outcome:
passed
-
-
📄 test_utils_tqdm_mod.py
↳ Function: test_float_alignment_in_bar
-
❌ Test 454
📌 Setup phase
duration:
0.00010755937546491623outcome:
passed📌 Call phase
duration:
0.0014876043424010277outcome:
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.00015022559091448784outcome:
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_check_required_attributes type: Function lineno: 28 - nodeid: tests/test_utils_elog.py::test_post type: Function lineno: 106 - nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_with_direct_password_and_real_check type: Function lineno: 43 - nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_asks_password_and_opens type: Function lineno: 57 - nodeid: tests/test_utils_elog.py::test_get_default_elog_with_path_home type: Function lineno: 75 - nodeid: tests/test_utils_elog.py::test_screenshot type: Function lineno: 124 - 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