-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest_report.html
More file actions
770 lines (676 loc) · 72.1 KB
/
pytest_report.html
File metadata and controls
770 lines (676 loc) · 72.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title id="head-title">pytest_report.html</title>
<link href="assets\style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<h1 id="title">pytest_report.html</h1>
<p>Report generated on 05-Nov-2024 at 09:43:25 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a>
v4.1.1</p>
<div id="environment-header">
<h2>Environment</h2>
</div>
<table id="environment"></table>
<!-- TEMPLATES -->
<template id="template_environment_row">
<tr>
<td></td>
<td></td>
</tr>
</template>
<template id="template_results-table__body--empty">
<tbody class="results-table-row">
<tr id="not-found-message">
<td colspan="4">No results found. Check the filters.</th>
</tr>
</template>
<template id="template_results-table__tbody">
<tbody class="results-table-row">
<tr class="collapsible">
</tr>
<tr class="extras-row">
<td class="extra" colspan="4">
<div class="extraHTML"></div>
<div class="media">
<div class="media-container">
<div class="media-container__nav--left"><</div>
<div class="media-container__viewport">
<img src="" />
<video controls>
<source src="" type="video/mp4">
</video>
</div>
<div class="media-container__nav--right">></div>
</div>
<div class="media__name"></div>
<div class="media__counter"></div>
</div>
<div class="logwrapper">
<div class="logexpander"></div>
<div class="log"></div>
</div>
</td>
</tr>
</tbody>
</template>
<!-- END TEMPLATES -->
<div class="summary">
<div class="summary__data">
<h2>Summary</h2>
<div class="additional-summary prefix">
</div>
<p class="run-count">21 tests took 76 ms.</p>
<p class="filter">(Un)check the boxes to filter the results.</p>
<div class="summary__reload">
<div class="summary__reload__button hidden" onclick="location.reload()">
<div>There are still tests running. <br />Reload this page to get the latest results!</div>
</div>
</div>
<div class="summary__spacer"></div>
<div class="controls">
<div class="filters">
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="failed" />
<span class="failed">13 Failed,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="passed" />
<span class="passed">8 Passed,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="skipped" disabled/>
<span class="skipped">0 Skipped,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="xfailed" disabled/>
<span class="xfailed">0 Expected failures,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="xpassed" disabled/>
<span class="xpassed">0 Unexpected passes,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="error" disabled/>
<span class="error">0 Errors,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="rerun" disabled/>
<span class="rerun">0 Reruns</span>
</div>
<div class="collapse">
<button id="show_all_details">Show all details</button> / <button id="hide_all_details">Hide all details</button>
</div>
</div>
</div>
<div class="additional-summary summary">
</div>
<div class="additional-summary postfix">
</div>
</div>
<table id="results-table">
<thead id="results-table-head">
<tr>
<th class="sortable" data-column-type="result">Result</th>
<th class="sortable" data-column-type="testId">Test</th>
<th class="sortable" data-column-type="duration">Duration</th>
<th>Links</th>
</tr>
</thead>
</table>
</body>
<footer>
<div id="data-container" data-jsonblob="{"environment": {"Python": "3.13.0", "Platform": "Windows-11-10.0.22631-SP0", "Packages": {"pytest": "8.3.3", "pluggy": "1.5.0"}, "Plugins": {"check": "2.4.1", "html": "4.1.1", "metadata": "3.1.1"}}, "tests": {"test_balance.py::TestBalanceXMLStructure::test_balance_node_exist": [{"extras": [], "result": "Failed", "testId": "test_balance.py::TestBalanceXMLStructure::test_balance_node_exist", "duration": "2 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceXMLStructure::test_balance_node_exist</td>", "<td class=\"col-duration\">2 ms</td>", "<td class=\"col-links\"></td>"], "log": "self = &lt;test_balance.TestBalanceXMLStructure object at 0x0000029D5B0DA490&gt;, balance_xml_tree = &lt;utils.xml.BalanceXML object at 0x0000029D5B1882F0&gt;\n\n def test_balance_node_exist(self, balance_xml_tree: BalanceXML):\n search_result = balance_xml_tree.find(&quot;ns:Balance&quot;)\n logger.info(f&quot;Search result for &#x27;Balance&#x27; node: {search_result}&quot;)\n&gt; assert search_result is not None, &quot;Balance XML should contain &#x27;Balance&#x27; as node&quot;\nE AssertionError: Balance XML should contain &#x27;Balance&#x27; as node\nE assert None is not None\n\ntest_balance.py:11: AssertionError\n\n------------------------------ Captured log setup ------------------------------\nINFO utils.logger:logger.py:14 Using config &#x27;config.json&#x27;\n\n------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Search result for &#x27;Balance&#x27; node: None\n\n"}], "test_balance.py::TestBalanceXMLStructure::test_balance_has_operation_children": [{"extras": [], "result": "Failed", "testId": "test_balance.py::TestBalanceXMLStructure::test_balance_has_operation_children", "duration": "5 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceXMLStructure::test_balance_has_operation_children</td>", "<td class=\"col-duration\">5 ms</td>", "<td class=\"col-links\"></td>"], "log": "FAILURE: Balance node should contain children called &#x27;Operation&#x27;\nassert &#x27;Operation&#x27; in {&#x27;Oper&#x27;, &#x27;StartRest&#x27;}\ntest_balance.py:18 in test_balance_has_operation_children() -&gt; with check:\ntest_balance.py:19 in test_balance_has_operation_children -&gt; assert &quot;Operation&quot; in unique_child_nodes, &quot;Balance node should contain children called &#x27;Operation&#x27;&quot;\nAssertionError: Balance node should contain children called &#x27;Operation&#x27;\nassert &#x27;Operation&#x27; in {&#x27;Oper&#x27;, &#x27;StartRest&#x27;}\n\n\nFAILURE: Balance node should contain only 1 type of children which is &#x27;Operation&#x27;\nassert 2 == 1\n + where 2 = len({&#x27;Oper&#x27;, &#x27;StartRest&#x27;})\n------------------------------------------------------------\nFailed Checks: 2\n"}], "test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_attrib_date": [{"extras": [], "result": "Failed", "testId": "test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_attrib_date", "duration": "1 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_attrib_date</td>", "<td class=\"col-duration\">1 ms</td>", "<td class=\"col-links\"></td>"], "log": "self = &lt;test_balance.TestBalanceXMLStructure object at 0x0000029D5AF53820&gt;, balance_xml_tree = &lt;utils.xml.BalanceXML object at 0x0000029D5B1882F0&gt;\n\n def test_operation_node_contains_attrib_date(self, balance_xml_tree: BalanceXML):\n check_result, check_descr = balance_xml_tree.check_all_operation_nodes_contain_date()\n&gt; assert check_result, \\\n f&quot;All nodes should contain attribute &#x27;date&#x27;. Found nodes without it: {check_descr}!&quot;\nE AssertionError: All nodes should contain attribute &#x27;date&#x27;. Found nodes without it: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662]!\nE assert False\n\ntest_balance.py:25: AssertionError\n\n------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that nodes &#x27;Ballance/ns:Oper&#x27; contain attribute &#x27;date&#x27;\nINFO utils.logger:logger.py:14 Ids of nodes, which do not contain specified attribute: &#x27;[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662]&#x27;\n\n"}], "test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_attrib_corAcc": [{"extras": [], "result": "Failed", "testId": "test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_attrib_corAcc", "duration": "1 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_attrib_corAcc</td>", "<td class=\"col-duration\">1 ms</td>", "<td class=\"col-links\"></td>"], "log": "self = &lt;test_balance.TestBalanceXMLStructure object at 0x0000029D5AF53A80&gt;, balance_xml_tree = &lt;utils.xml.BalanceXML object at 0x0000029D5B1882F0&gt;\n\n def test_operation_node_contains_attrib_corAcc(self, balance_xml_tree: BalanceXML):\n check_result, check_descr = balance_xml_tree.check_all_operation_nodes_contain_corr_acc()\n&gt; assert check_result, \\\n f&quot;All nodes should contain attribute &#x27;corAcc&#x27;. Found nodes without it: {check_descr}!&quot;\nE AssertionError: All nodes should contain attribute &#x27;corAcc&#x27;. Found nodes without it: [1, 5, 8, 9, 11, 13, 14, 15, 16, 17, 20, 23, 24, 27, 28, 31, 33, 34, 35, 38, 43, 46, 48, 49, 53, 54, 61, 62, 64, 67, 70, 71, 78, 80, 83, 85, 88, 90, 92, 94, 98, 102, 104, 106, 108, 111, 112, 114, 117, 119, 120, 122, 125, 129, 130, 133, 134, 136, 138, 141, 144, 145, 151, 153, 157, 161, 162, 165, 172, 175, 178, 179, 180, 181, 183, 184, 187, 188, 190, 192, 194, 197, 200, 204, 205, 206, 210, 211, 212, 213, 216, 219, 220, 221, 223, 224, 225, 226, 229, 231, 232, 234, 236, 237, 240, 241, 243, 244, 245, 246, 258, 259, 260, 261, 264, 266, 267, 268, 270, 271, 274, 275, 276, 277, 278, 282, 283, 285, 286, 288, 290, 291, 292, 295, 297, 298, 300, 301, 302, 303, 304, 305, 306, 307, 309, 311, 315, 316, 318, 319, 320, 322, 325, 328, 329, 330, 332, 335, 337, 338, 340, 344, 347, 350, 352, 354, 357, 358, 361, 363, 365, 369, 371, 372, 373, 375, 376, 377, 379, 380, 382, 383, 387, 389, 390, 391, 392, 394, 395, 396, 398, 401, 402, 403, 404, 405, 406, 408, 411, 412, 416, 418, 419, 421, 422, 423, 424, 425, 426, 427, 428, 432, 435, 436, 437, 438, 440, 441, 444, 448, 449, 451, 453, 455, 457, 460, 463, 467, 471, 472, 475, 476, 478, 479, 482, 483, 484, 485, 486, 487, 489, 490, 491, 492, 493, 494, 497, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511, 512, 513, 517, 520, 521, 522, 523, 525, 526, 529, 531, 535, 537, 539, 541, 546, 547, 548, 549, 554, 557, 558, 559, 562, 563, 564, 565, 566, 571, 572, 573, 575, 576, 577, 579, 581, 583, 584, 588, 589, 593, 595, 597, 598, 600, 601, 603, 604, 605, 606, 608, 609, 611, 612, 613, 616, 617, 619, 620, 621, 622, 625, 628, 632, 634, 635, 636, 638, 639, 640, 643, 646, 647, 649, 651, 652, 655, 656, 660, 661, 662]!\nE assert False\n\ntest_balance.py:30: AssertionError\n\n------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that nodes &#x27;Ballance/ns:Oper&#x27; contain attribute &#x27;corAcc&#x27;\nINFO utils.logger:logger.py:14 Ids of nodes, which do not contain specified attribute: &#x27;[1, 5, 8, 9, 11, 13, 14, 15, 16, 17, 20, 23, 24, 27, 28, 31, 33, 34, 35, 38, 43, 46, 48, 49, 53, 54, 61, 62, 64, 67, 70, 71, 78, 80, 83, 85, 88, 90, 92, 94, 98, 102, 104, 106, 108, 111, 112, 114, 117, 119, 120, 122, 125, 129, 130, 133, 134, 136, 138, 141, 144, 145, 151, 153, 157, 161, 162, 165, 172, 175, 178, 179, 180, 181, 183, 184, 187, 188, 190, 192, 194, 197, 200, 204, 205, 206, 210, 211, 212, 213, 216, 219, 220, 221, 223, 224, 225, 226, 229, 231, 232, 234, 236, 237, 240, 241, 243, 244, 245, 246, 258, 259, 260, 261, 264, 266, 267, 268, 270, 271, 274, 275, 276, 277, 278, 282, 283, 285, 286, 288, 290, 291, 292, 295, 297, 298, 300, 301, 302, 303, 304, 305, 306, 307, 309, 311, 315, 316, 318, 319, 320, 322, 325, 328, 329, 330, 332, 335, 337, 338, 340, 344, 347, 350, 352, 354, 357, 358, 361, 363, 365, 369, 371, 372, 373, 375, 376, 377, 379, 380, 382, 383, 387, 389, 390, 391, 392, 394, 395, 396, 398, 401, 402, 403, 404, 405, 406, 408, 411, 412, 416, 418, 419, 421, 422, 423, 424, 425, 426, 427, 428, 432, 435, 436, 437, 438, 440, 441, 444, 448, 449, 451, 453, 455, 457, 460, 463, 467, 471, 472, 475, 476, 478, 479, 482, 483, 484, 485, 486, 487, 489, 490, 491, 492, 493, 494, 497, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511, 512, 513, 517, 520, 521, 522, 523, 525, 526, 529, 531, 535, 537, 539, 541, 546, 547, 548, 549, 554, 557, 558, 559, 562, 563, 564, 565, 566, 571, 572, 573, 575, 576, 577, 579, 581, 583, 584, 588, 589, 593, 595, 597, 598, 600, 601, 603, 604, 605, 606, 608, 609, 611, 612, 613, 616, 617, 619, 620, 621, 622, 625, 628, 632, 634, 635, 636, 638, 639, 640, 643, 646, 647, 649, 651, 652, 655, 656, 660, 661, 662]&#x27;\n\n"}], "test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_attrib_one_of_dbt_cdt": [{"extras": [], "result": "Failed", "testId": "test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_attrib_one_of_dbt_cdt", "duration": "1 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_attrib_one_of_dbt_cdt</td>", "<td class=\"col-duration\">1 ms</td>", "<td class=\"col-links\"></td>"], "log": "self = &lt;test_balance.TestBalanceXMLStructure object at 0x0000029D5B180EF0&gt;, balance_xml_tree = &lt;utils.xml.BalanceXML object at 0x0000029D5B1882F0&gt;\n\n def test_operation_node_contains_attrib_one_of_dbt_cdt(self, balance_xml_tree: BalanceXML):\n check_result, check_descr = balance_xml_tree.check_all_operation_nodes_contain_dbt_or_cdt()\n&gt; assert check_result, \\\n f&quot;All nodes should contain only one of attributes &#x27;dbt&#x27; or &#x27;cdt&#x27;. Found bad nodes: {check_descr}!&quot;\nE AssertionError: All nodes should contain only one of attributes &#x27;dbt&#x27; or &#x27;cdt&#x27;. Found bad nodes: [2, 3, 4, 6, 7, 10, 12, 18, 19, 21, 22, 25, 26, 29, 30, 32, 36, 37, 39, 40, 41, 42, 44, 45, 47, 50, 51, 52, 55, 56, 57, 58, 59, 60, 63, 65, 66, 68, 69, 72, 73, 74, 75, 76, 77, 79, 81, 82, 84, 86, 87, 89, 91, 93, 95, 96, 97, 99, 100, 101, 103, 105, 107, 109, 110, 113, 115, 116, 118, 121, 123, 124, 126, 127, 128, 131, 132, 135, 137, 139, 140, 142, 143, 146, 147, 148, 149, 150, 152, 154, 155, 156, 158, 159, 160, 163, 164, 166, 167, 168, 169, 170, 171, 173, 174, 176, 177, 182, 185, 186, 189, 191, 193, 195, 196, 198, 199, 201, 202, 203, 207, 208, 209, 214, 215, 217, 218, 222, 227, 228, 230, 233, 235, 238, 239, 242, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 262, 263, 265, 269, 272, 273, 279, 280, 281, 284, 287, 289, 293, 294, 296, 299, 308, 310, 312, 313, 314, 317, 321, 323, 324, 326, 327, 331, 333, 334, 336, 339, 341, 342, 343, 345, 346, 348, 349, 351, 353, 355, 356, 359, 360, 362, 364, 366, 367, 368, 370, 374, 378, 381, 384, 385, 386, 388, 393, 397, 399, 400, 407, 409, 410, 413, 414, 415, 417, 420, 429, 430, 431, 433, 434, 439, 442, 443, 445, 446, 447, 450, 452, 454, 456, 458, 459, 461, 462, 464, 465, 466, 468, 469, 470, 473, 474, 477, 480, 481, 488, 495, 496, 498, 509, 514, 515, 516, 518, 519, 524, 527, 528, 530, 532, 533, 534, 536, 538, 540, 542, 543, 544, 545, 550, 551, 552, 553, 555, 556, 560, 561, 567, 568, 569, 570, 574, 578, 580, 582, 585, 586, 587, 590, 591, 592, 594, 596, 599, 602, 607, 610, 614, 615, 618, 623, 624, 626, 627, 629, 630, 631, 633, 637, 641, 642, 644, 645, 648, 650, 653, 654, 657, 658, 659]!\nE assert False\n\ntest_balance.py:35: AssertionError\n\n------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that nodes &#x27;Ballance/ns:Oper&#x27; contain only one attribute of &#x27;(&#x27;dbt&#x27;, &#x27;cdt&#x27;)&#x27;\nINFO utils.logger:logger.py:14 Ids of nodes, which contain not one attribute: &#x27;[2, 3, 4, 6, 7, 10, 12, 18, 19, 21, 22, 25, 26, 29, 30, 32, 36, 37, 39, 40, 41, 42, 44, 45, 47, 50, 51, 52, 55, 56, 57, 58, 59, 60, 63, 65, 66, 68, 69, 72, 73, 74, 75, 76, 77, 79, 81, 82, 84, 86, 87, 89, 91, 93, 95, 96, 97, 99, 100, 101, 103, 105, 107, 109, 110, 113, 115, 116, 118, 121, 123, 124, 126, 127, 128, 131, 132, 135, 137, 139, 140, 142, 143, 146, 147, 148, 149, 150, 152, 154, 155, 156, 158, 159, 160, 163, 164, 166, 167, 168, 169, 170, 171, 173, 174, 176, 177, 182, 185, 186, 189, 191, 193, 195, 196, 198, 199, 201, 202, 203, 207, 208, 209, 214, 215, 217, 218, 222, 227, 228, 230, 233, 235, 238, 239, 242, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 262, 263, 265, 269, 272, 273, 279, 280, 281, 284, 287, 289, 293, 294, 296, 299, 308, 310, 312, 313, 314, 317, 321, 323, 324, 326, 327, 331, 333, 334, 336, 339, 341, 342, 343, 345, 346, 348, 349, 351, 353, 355, 356, 359, 360, 362, 364, 366, 367, 368, 370, 374, 378, 381, 384, 385, 386, 388, 393, 397, 399, 400, 407, 409, 410, 413, 414, 415, 417, 420, 429, 430, 431, 433, 434, 439, 442, 443, 445, 446, 447, 450, 452, 454, 456, 458, 459, 461, 462, 464, 465, 466, 468, 469, 470, 473, 474, 477, 480, 481, 488, 495, 496, 498, 509, 514, 515, 516, 518, 519, 524, 527, 528, 530, 532, 533, 534, 536, 538, 540, 542, 543, 544, 545, 550, 551, 552, 553, 555, 556, 560, 561, 567, 568, 569, 570, 574, 578, 580, 582, 585, 586, 587, 590, 591, 592, 594, 596, 599, 602, 607, 610, 614, 615, 618, 623, 624, 626, 627, 629, 630, 631, 633, 637, 641, 642, 644, 645, 648, 650, 653, 654, 657, 658, 659]&#x27;\n\n"}], "test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_subNode_with_status": [{"extras": [], "result": "Passed", "testId": "test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_subNode_with_status", "duration": "1 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceXMLStructure::test_operation_node_contains_subNode_with_status</td>", "<td class=\"col-duration\">1 ms</td>", "<td class=\"col-links\"></td>"], "log": "------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that nodes &#x27;Ballance/ns:Oper&#x27; contain child node &#x27;Status&#x27;\nINFO utils.logger:logger.py:14 All nodes contain specified child&#x27;\n\n"}], "test_balance.py::TestBalanceBusinessLogic::test_all_operations_happened_one_date": [{"extras": [], "result": "Failed", "testId": "test_balance.py::TestBalanceBusinessLogic::test_all_operations_happened_one_date", "duration": "13 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceBusinessLogic::test_all_operations_happened_one_date</td>", "<td class=\"col-duration\">13 ms</td>", "<td class=\"col-links\"></td>"], "log": "self = &lt;test_balance.TestBalanceBusinessLogic object at 0x0000029D5B0DAE90&gt;, balance = Balance()\n\n def test_all_operations_happened_one_date(self, balance: Balance):\n unique_dates = balance.get_unique_dates()\n&gt; assert len(unique_dates) == 1, \\\n f&quot;Expected all operations to happen on one date, but found multiple: {unique_dates}!&quot;\nE AssertionError: Expected all operations to happen on one date, but found multiple: {&#x27;05-03-2021&#x27;, &#x27;03-03-2021&#x27;, &#x27;05-05-2021&#x27;, &#x27;03-05-2021&#x27;}!\nE assert 4 == 1\nE + where 4 = len({&#x27;03-03-2021&#x27;, &#x27;03-05-2021&#x27;, &#x27;05-03-2021&#x27;, &#x27;05-05-2021&#x27;})\n\ntest_balance.py:48: AssertionError\n\n------------------------------ Captured log setup ------------------------------\nINFO utils.logger:logger.py:14 Successfully parsed XML to Balance object with Operation entities\nINFO utils.logger:logger.py:14 Checking that each operation is either debit or credit\nINFO utils.logger:logger.py:14 All operations are either debit or credit!\nINFO utils.logger:logger.py:14 Checking that each operation is valid ( &gt; 0)\nINFO utils.logger:logger.py:14 All operations have valid amount!\nINFO utils.logger:logger.py:14 Total debit amount is &#x27;0&#x27;\nINFO utils.logger:logger.py:14 Checking that each operation is either debit or credit\nINFO utils.logger:logger.py:14 All operations are either debit or credit!\nINFO utils.logger:logger.py:14 Checking that each operation is valid ( &gt; 0)\nINFO utils.logger:logger.py:14 All operations have valid amount!\nINFO utils.logger:logger.py:14 Total credit amount is &#x27;0&#x27;\n"}], "test_balance.py::TestBalanceBusinessLogic::test_corr_accounts_are_different_from_our": [{"extras": [], "result": "Failed", "testId": "test_balance.py::TestBalanceBusinessLogic::test_corr_accounts_are_different_from_our", "duration": "1 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceBusinessLogic::test_corr_accounts_are_different_from_our</td>", "<td class=\"col-duration\">1 ms</td>", "<td class=\"col-links\"></td>"], "log": "self = &lt;test_balance.TestBalanceBusinessLogic object at 0x0000029D5B0DB110&gt;, balance = Balance()\n\n def test_corr_accounts_are_different_from_our(self, balance: Balance):\n check_result, check_descr = balance.cor_accounts_are_different_from_our()\n&gt; assert check_result, \\\n f&quot;All operations should have different corr account from our! These operations have same corr account: {check_descr}!&quot;\nE AssertionError: All operations should have different corr account from our! These operations have same corr account: [353]!\nE assert False\n\ntest_balance.py:53: AssertionError\n\n------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that operation&#x27;s cor accounts are different from our &#x27;40817_K1&#x27;\nINFO utils.logger:logger.py:14 Ids of operations, which have same cor account as our &#x27;[353]&#x27;\n\n"}], "test_balance.py::TestBalanceBusinessLogic::test_operation_amounts_are_correct": [{"extras": [], "result": "Passed", "testId": "test_balance.py::TestBalanceBusinessLogic::test_operation_amounts_are_correct", "duration": "0 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceBusinessLogic::test_operation_amounts_are_correct</td>", "<td class=\"col-duration\">0 ms</td>", "<td class=\"col-links\"></td>"], "log": "------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that each operation is either debit or credit\nINFO utils.logger:logger.py:14 All operations are either debit or credit!\n\n"}], "test_balance.py::TestBalanceBusinessLogic::test_operation_amounts_are_valid": [{"extras": [], "result": "Passed", "testId": "test_balance.py::TestBalanceBusinessLogic::test_operation_amounts_are_valid", "duration": "1 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceBusinessLogic::test_operation_amounts_are_valid</td>", "<td class=\"col-duration\">1 ms</td>", "<td class=\"col-links\"></td>"], "log": "------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that each operation is valid ( &gt; 0)\nINFO utils.logger:logger.py:14 All operations have valid amount!\n\n"}], "test_balance.py::TestBalanceBusinessLogic::test_application_difference_is_correct": [{"extras": [], "result": "Failed", "testId": "test_balance.py::TestBalanceBusinessLogic::test_application_difference_is_correct", "duration": "0 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceBusinessLogic::test_application_difference_is_correct</td>", "<td class=\"col-duration\">0 ms</td>", "<td class=\"col-links\"></td>"], "log": "self = &lt;test_balance.TestBalanceBusinessLogic object at 0x0000029D5B181EB0&gt;, application_balances = {&#x27;credit_total&#x27;: 165528, &#x27;debit_total&#x27;: 90713, &#x27;difference&#x27;: 4356}\n\n def test_application_difference_is_correct(self, application_balances: dict):\n&gt; assert application_balances[&quot;difference&quot;] == application_balances[&quot;debit_total&quot;] - application_balances[&quot;credit_total&quot;], \\\n f&quot;Difference between debit and credit amount in application expected to be {application_balances[&quot;debit_total&quot;] - application_balances[&quot;credit_total&quot;]}, but got &#x27;{application_balances[&quot;difference&quot;]}&#x27;!&quot;\nE AssertionError: Difference between debit and credit amount in application expected to be -74815, but got &#x27;4356&#x27;!\nE assert 4356 == (90713 - 165528)\n\ntest_balance.py:67: AssertionError\n"}], "test_balance.py::TestBalanceBusinessLogic::test_application_and_balance_total_debit_are_equal": [{"extras": [], "result": "Failed", "testId": "test_balance.py::TestBalanceBusinessLogic::test_application_and_balance_total_debit_are_equal", "duration": "0 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceBusinessLogic::test_application_and_balance_total_debit_are_equal</td>", "<td class=\"col-duration\">0 ms</td>", "<td class=\"col-links\"></td>"], "log": "self = &lt;test_balance.TestBalanceBusinessLogic object at 0x0000029D5B164AF0&gt;, application_balances = {&#x27;credit_total&#x27;: 165528, &#x27;debit_total&#x27;: 90713, &#x27;difference&#x27;: 4356}, balance = Balance()\n\n def test_application_and_balance_total_debit_are_equal(self, application_balances: dict, balance: Balance):\n application_total_debit = application_balances[&quot;debit_total&quot;]\n&gt; assert application_total_debit == balance.total_processed_debit, \\\n f&quot;Total debit amounts from application and all XML operations should be equal!&quot;\nE AssertionError: Total debit amounts from application and all XML operations should be equal!\nE assert 90713 == 0\nE + where 0 = Balance().total_processed_debit\n\ntest_balance.py:72: AssertionError\n"}], "test_balance.py::TestBalanceBusinessLogic::test_application_and_balance_total_credit_are_equal": [{"extras": [], "result": "Failed", "testId": "test_balance.py::TestBalanceBusinessLogic::test_application_and_balance_total_credit_are_equal", "duration": "0 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_balance.py::TestBalanceBusinessLogic::test_application_and_balance_total_credit_are_equal</td>", "<td class=\"col-duration\">0 ms</td>", "<td class=\"col-links\"></td>"], "log": "self = &lt;test_balance.TestBalanceBusinessLogic object at 0x0000029D5B164C00&gt;, application_balances = {&#x27;credit_total&#x27;: 165528, &#x27;debit_total&#x27;: 90713, &#x27;difference&#x27;: 4356}, balance = Balance()\n\n def test_application_and_balance_total_credit_are_equal(self, application_balances: dict, balance: Balance):\n application_total_debit = application_balances[&quot;credit_total&quot;]\n&gt; assert application_total_debit == balance.total_processed_credit, \\\n f&quot;Total credit amounts from application and all XML operations should be equal!&quot;\nE AssertionError: Total credit amounts from application and all XML operations should be equal!\nE assert 165528 == 0\nE + where 0 = Balance().total_processed_credit\n\ntest_balance.py:77: AssertionError\n"}], "test_epd.py::TestPacketEPD::test_root_headers_mandatory_values_equal_ed807": [{"extras": [], "result": "Passed", "testId": "test_epd.py::TestPacketEPD::test_root_headers_mandatory_values_equal_ed807", "duration": "20 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">test_epd.py::TestPacketEPD::test_root_headers_mandatory_values_equal_ed807</td>", "<td class=\"col-duration\">20 ms</td>", "<td class=\"col-links\"></td>"], "log": "------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;EDNo&#x27; is in ED807 XML document header\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;EDNo&#x27; is in PacketEPD XML document header\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;EDNo&#x27; is same in both ED807 XML and PacketEPD XML headers\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;EDDate&#x27; is in ED807 XML document header\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;EDDate&#x27; is in PacketEPD XML document header\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;EDDate&#x27; is same in both ED807 XML and PacketEPD XML headers\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;EDAuthor&#x27; is in ED807 XML document header\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;EDAuthor&#x27; is in PacketEPD XML document header\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;EDAuthor&#x27; is same in both ED807 XML and PacketEPD XML headers\n\n"}], "test_epd.py::TestPacketEPD::test_root_headers_EDQuantity_equals_ed101_amount": [{"extras": [], "result": "Passed", "testId": "test_epd.py::TestPacketEPD::test_root_headers_EDQuantity_equals_ed101_amount", "duration": "0 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">test_epd.py::TestPacketEPD::test_root_headers_EDQuantity_equals_ed101_amount</td>", "<td class=\"col-duration\">0 ms</td>", "<td class=\"col-links\"></td>"], "log": "------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;EDQuantity&#x27; is equal to amount of ED101 documents\n\n"}], "test_epd.py::TestPacketEPD::test_root_headers_Sum_equals_ed101_sum": [{"extras": [], "result": "Failed", "testId": "test_epd.py::TestPacketEPD::test_root_headers_Sum_equals_ed101_sum", "duration": "1 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_epd.py::TestPacketEPD::test_root_headers_Sum_equals_ed101_sum</td>", "<td class=\"col-duration\">1 ms</td>", "<td class=\"col-links\"></td>"], "log": "self = &lt;test_epd.TestPacketEPD object at 0x0000029D5AF536F0&gt;, epd_xml_tree = &lt;utils.xml.XMLObject object at 0x0000029D5B24D950&gt;\n\n def test_root_headers_Sum_equals_ed101_sum(self, epd_xml_tree: XMLObject):\n logger.info(f&quot;Checking that attribute &#x27;{SUM}&#x27; is equal to sum of all {ED101} document {SUM} attributes&quot;)\n epd_header_all_attribs = epd_xml_tree.get_root_attributes()\n ed101_elements = epd_xml_tree.find_all(ED101)\n \n assert EDQUANTITY in epd_header_all_attribs, \\\n f&quot;PacketEPD XML header should contain &#x27;{SUM}&#x27; attribute!&quot;\n \n check_result, check_descr = epd_xml_tree.all_given_nodes_contain_attrib(ED101, SUM)\n assert check_result, \\\n f&quot;Each {ED101} doc should contain attribute &#x27;{SUM}&#x27;. But found bad docs: {check_descr}&quot;\n \n ed101_sums = [int(elem.get(SUM)) for elem in ed101_elements]\n&gt; assert int(epd_header_all_attribs[SUM]) == sum(ed101_sums), \\\n f&quot;PacketEPD XML header &#x27;{SUM}&#x27; attribute should be equal to sum of all &#x27;{ED101}&#x27; elements&#x27; &#x27;{SUM}&#x27; attribute!&quot;\nE AssertionError: PacketEPD XML header &#x27;Sum&#x27; attribute should be equal to sum of all &#x27;ED101&#x27; elements&#x27; &#x27;Sum&#x27; attribute!\nE assert 29221 == 58624\nE + where 29221 = int(&#x27;29221&#x27;)\nE + and 58624 = sum([50, 45, 58, 45, 45, 45, ...])\n\ntest_epd.py:80: AssertionError\n\n------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;Sum&#x27; is equal to sum of all ED101 document Sum attributes\nINFO utils.logger:logger.py:14 Checking that nodes &#x27;ED101&#x27; contain attribute &#x27;Sum&#x27;\nINFO utils.logger:logger.py:14 All nodes contain specified attribute&#x27;\n\n"}], "test_epd.py::TestPacketEPD::test_SystemCode_is_correct_everywhere": [{"extras": [], "result": "Failed", "testId": "test_epd.py::TestPacketEPD::test_SystemCode_is_correct_everywhere", "duration": "3 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_epd.py::TestPacketEPD::test_SystemCode_is_correct_everywhere</td>", "<td class=\"col-duration\">3 ms</td>", "<td class=\"col-links\"></td>"], "log": "FAILURE: Attribute &#x27;SystemCode&#x27; of tree root element should be equal to &#x27;01&#x27;!\nassert &#x27;02&#x27; == &#x27;01&#x27;\n \n - 01\n + 02\ntest_epd.py:85 in test_SystemCode_is_correct_everywhere() -&gt; with check:\ntest_epd.py:89 in test_SystemCode_is_correct_everywhere -&gt; assert epd_xml_tree.get_root_attributes().get(SYSTEMCODE) == EXPECTED_SYSTEMCODE_VAL, \\\nAssertionError: Attribute &#x27;SystemCode&#x27; of tree root element should be equal to &#x27;01&#x27;!\nassert &#x27;02&#x27; == &#x27;01&#x27;\n \n - 01\n + 02\n\n\n------------------------------------------------------------\nFailed Checks: 1\n\n------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that &#x27;SystemCode&#x27; is equal &#x27;01&#x27; in all elements\n\n"}], "test_epd.py::TestPacketEPD::test_ED101_date_author_are_equal_to_header": [{"extras": [], "result": "Passed", "testId": "test_epd.py::TestPacketEPD::test_ED101_date_author_are_equal_to_header", "duration": "1 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">test_epd.py::TestPacketEPD::test_ED101_date_author_are_equal_to_header</td>", "<td class=\"col-duration\">1 ms</td>", "<td class=\"col-links\"></td>"], "log": "------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that all ED101 documents have attribute EDDate equal to one in header\nINFO utils.logger:logger.py:14 Checking that all ED101 documents have attribute EDAuthor equal to one in header\n\n"}], "test_epd.py::TestPacketEPD::test_ED101_EDNo_increments_by_one": [{"extras": [], "result": "Passed", "testId": "test_epd.py::TestPacketEPD::test_ED101_EDNo_increments_by_one", "duration": "1 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">test_epd.py::TestPacketEPD::test_ED101_EDNo_increments_by_one</td>", "<td class=\"col-duration\">1 ms</td>", "<td class=\"col-links\"></td>"], "log": "------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that attribute &#x27;EDNo&#x27; increases by 1 with each ED101 document\n\n"}], "test_epd.py::TestPacketEPD::test_ED101_has_required_requisites": [{"extras": [], "result": "Passed", "testId": "test_epd.py::TestPacketEPD::test_ED101_has_required_requisites", "duration": "6 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">test_epd.py::TestPacketEPD::test_ED101_has_required_requisites</td>", "<td class=\"col-duration\">6 ms</td>", "<td class=\"col-links\"></td>"], "log": "------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that all ED101 documents have required requisites: BIC and CorrespAcc\n\n"}], "test_epd.py::TestPacketEPD::test_ED101_payer_and_payee_filled_from_BICDirectoryEntry": [{"extras": [], "result": "Failed", "testId": "test_epd.py::TestPacketEPD::test_ED101_payer_and_payee_filled_from_BICDirectoryEntry", "duration": "16 ms", "resultsTableRow": ["<td class=\"col-result\">Failed</td>", "<td class=\"col-testId\">test_epd.py::TestPacketEPD::test_ED101_payer_and_payee_filled_from_BICDirectoryEntry</td>", "<td class=\"col-duration\">16 ms</td>", "<td class=\"col-links\"></td>"], "log": "self = &lt;test_epd.TestPacketEPD object at 0x0000029D5B08F750&gt;, ed807_xml_tree = &lt;utils.xml.XMLObject object at 0x0000029D5B189FD0&gt;, epd_xml_tree = &lt;utils.xml.XMLObject object at 0x0000029D5B24D950&gt;\n\n def test_ED101_payer_and_payee_filled_from_BICDirectoryEntry(self, ed807_xml_tree: XMLObject, epd_xml_tree: XMLObject):\n logger.info(f&quot;Checking that all {ED101} elements are filled correctly from {BICDIRECTORYENTRY} elements&quot;)\n ed101_elements = epd_xml_tree.find_all(ED101)\n ed101_AccDoc_elements = [elem.find(ACCDOC) for elem in ed101_elements]\n ed101_payer_elements = [elem.find(PAYER) for elem in ed101_elements]\n ed101_payee_elements = [elem.find(PAYEE) for elem in ed101_elements]\n \n ed807_entries = ed807_xml_tree.find_all(BICDIRECTORYENTRY)\n if len(ed807_entries) % 2 == 1:\n ed807_entries.pop() # \u0415\u0441\u043b\u0438 \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e ED101 \u043d\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f (ed:Payee), \u0442\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u043c \u2013 \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u043b\u0443\u0444\u0430\u0431\u0440\u0438\u043a\u0430\u0442 ED101 \u0432 \u043f\u0430\u043a\u0435\u0442 PacketEPD\n ed807_ParticipantInfo_elements = [ed807_xml_tree.find(PARTICIPANTINFO, elem=elem) for elem in ed807_entries]\n ed807_accounts_elements = [ed807_xml_tree.find(ACCOUNTS, elem=elem) for elem in ed807_entries]\n \n payer_payee_pair_counter = 0\n errors_list = []\n for i in range(0, len(ed807_entries), 2):\n i_numeration = i + 1\n payer_payee_pair_counter_numeration = payer_payee_pair_counter + 1\n \n ed807_bic_entry_for_payer = ed807_entries[i]\n ed807_partinfo_entry_for_payer = ed807_ParticipantInfo_elements[i]\n ed807_accounts_entry_for_payer = ed807_accounts_elements[i]\n \n&gt; check_error(True, ed807_accounts_entry_for_payer is not None, errors_list,\n f&quot;ED807 {BICDIRECTORYENTRY} at position {i_numeration} should contain {ACCOUNTS} element!&quot;,\n dont_continue=True\n )\n\ntest_epd.py:173: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\nutils\\check.py:7: in check_error\n assert_error_list(result_list)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nerrors_list = [&#x27;ED807 BICDirectoryEntry at position 17 should contain Accounts element!&#x27;]\n\n def assert_error_list(errors_list: list):\n&gt; assert len(errors_list) == 0, &quot;\\n&quot;.join(errors_list)\nE AssertionError: ED807 BICDirectoryEntry at position 17 should contain Accounts element!\n\nutils\\check.py:10: AssertionError\n\n------------------------------ Captured log call -------------------------------\nINFO utils.logger:logger.py:14 Checking that all ED101 elements are filled correctly from BICDirectoryEntry elements\n\n"}]}, "renderCollapsed": ["passed"], "initialSort": "result", "title": "pytest_report.html"}"></div>
<script>
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
const { getCollapsedCategory, setCollapsedIds } = require('./storage.js')
class DataManager {
setManager(data) {
const collapsedCategories = [...getCollapsedCategory(data.renderCollapsed)]
const collapsedIds = []
const tests = Object.values(data.tests).flat().map((test, index) => {
const collapsed = collapsedCategories.includes(test.result.toLowerCase())
const id = `test_${index}`
if (collapsed) {
collapsedIds.push(id)
}
return {
...test,
id,
collapsed,
}
})
const dataBlob = { ...data, tests }
this.data = { ...dataBlob }
this.renderData = { ...dataBlob }
setCollapsedIds(collapsedIds)
}
get allData() {
return { ...this.data }
}
resetRender() {
this.renderData = { ...this.data }
}
setRender(data) {
this.renderData.tests = [...data]
}
toggleCollapsedItem(id) {
this.renderData.tests = this.renderData.tests.map((test) =>
test.id === id ? { ...test, collapsed: !test.collapsed } : test,
)
}
set allCollapsed(collapsed) {
this.renderData = { ...this.renderData, tests: [...this.renderData.tests.map((test) => (
{ ...test, collapsed }
))] }
}
get testSubset() {
return [...this.renderData.tests]
}
get environment() {
return this.renderData.environment
}
get initialSort() {
return this.data.initialSort
}
}
module.exports = {
manager: new DataManager(),
}
},{"./storage.js":8}],2:[function(require,module,exports){
const mediaViewer = require('./mediaviewer.js')
const templateEnvRow = document.getElementById('template_environment_row')
const templateResult = document.getElementById('template_results-table__tbody')
function htmlToElements(html) {
const temp = document.createElement('template')
temp.innerHTML = html
return temp.content.childNodes
}
const find = (selector, elem) => {
if (!elem) {
elem = document
}
return elem.querySelector(selector)
}
const findAll = (selector, elem) => {
if (!elem) {
elem = document
}
return [...elem.querySelectorAll(selector)]
}
const dom = {
getStaticRow: (key, value) => {
const envRow = templateEnvRow.content.cloneNode(true)
const isObj = typeof value === 'object' && value !== null
const values = isObj ? Object.keys(value).map((k) => `${k}: ${value[k]}`) : null
const valuesElement = htmlToElements(
values ? `<ul>${values.map((val) => `<li>${val}</li>`).join('')}<ul>` : `<div>${value}</div>`)[0]
const td = findAll('td', envRow)
td[0].textContent = key
td[1].appendChild(valuesElement)
return envRow
},
getResultTBody: ({ testId, id, log, extras, resultsTableRow, tableHtml, result, collapsed }) => {
const resultBody = templateResult.content.cloneNode(true)
resultBody.querySelector('tbody').classList.add(result.toLowerCase())
resultBody.querySelector('tbody').id = testId
resultBody.querySelector('.collapsible').dataset.id = id
resultsTableRow.forEach((html) => {
const t = document.createElement('template')
t.innerHTML = html
resultBody.querySelector('.collapsible').appendChild(t.content)
})
if (log) {
// Wrap lines starting with "E" with span.error to color those lines red
const wrappedLog = log.replace(/^E.*$/gm, (match) => `<span class="error">${match}</span>`)
resultBody.querySelector('.log').innerHTML = wrappedLog
} else {
resultBody.querySelector('.log').remove()
}
if (collapsed) {
resultBody.querySelector('.collapsible > td')?.classList.add('collapsed')
resultBody.querySelector('.extras-row').classList.add('hidden')
} else {
resultBody.querySelector('.collapsible > td')?.classList.remove('collapsed')
}
const media = []
extras?.forEach(({ name, format_type, content }) => {
if (['image', 'video'].includes(format_type)) {
media.push({ path: content, name, format_type })
}
if (format_type === 'html') {
resultBody.querySelector('.extraHTML').insertAdjacentHTML('beforeend', `<div>${content}</div>`)
}
})
mediaViewer.setup(resultBody, media)
// Add custom html from the pytest_html_results_table_html hook
tableHtml?.forEach((item) => {
resultBody.querySelector('td[class="extra"]').insertAdjacentHTML('beforeend', item)
})
return resultBody
},
}
module.exports = {
dom,
htmlToElements,
find,
findAll,
}
},{"./mediaviewer.js":6}],3:[function(require,module,exports){
const { manager } = require('./datamanager.js')
const { doSort } = require('./sort.js')
const storageModule = require('./storage.js')
const getFilteredSubSet = (filter) =>
manager.allData.tests.filter(({ result }) => filter.includes(result.toLowerCase()))
const doInitFilter = () => {
const currentFilter = storageModule.getVisible()
const filteredSubset = getFilteredSubSet(currentFilter)
manager.setRender(filteredSubset)
}
const doFilter = (type, show) => {
if (show) {
storageModule.showCategory(type)
} else {
storageModule.hideCategory(type)
}
const currentFilter = storageModule.getVisible()
const filteredSubset = getFilteredSubSet(currentFilter)
manager.setRender(filteredSubset)
const sortColumn = storageModule.getSort()
doSort(sortColumn, true)
}
module.exports = {
doFilter,
doInitFilter,
}
},{"./datamanager.js":1,"./sort.js":7,"./storage.js":8}],4:[function(require,module,exports){
const { redraw, bindEvents, renderStatic } = require('./main.js')
const { doInitFilter } = require('./filter.js')
const { doInitSort } = require('./sort.js')
const { manager } = require('./datamanager.js')
const data = JSON.parse(document.getElementById('data-container').dataset.jsonblob)
function init() {
manager.setManager(data)
doInitFilter()
doInitSort()
renderStatic()
redraw()
bindEvents()
}
init()
},{"./datamanager.js":1,"./filter.js":3,"./main.js":5,"./sort.js":7}],5:[function(require,module,exports){
const { dom, find, findAll } = require('./dom.js')
const { manager } = require('./datamanager.js')
const { doSort } = require('./sort.js')
const { doFilter } = require('./filter.js')
const {
getVisible,
getCollapsedIds,
setCollapsedIds,
getSort,
getSortDirection,
possibleFilters,
} = require('./storage.js')
const removeChildren = (node) => {
while (node.firstChild) {
node.removeChild(node.firstChild)
}
}
const renderStatic = () => {
const renderEnvironmentTable = () => {
const environment = manager.environment
const rows = Object.keys(environment).map((key) => dom.getStaticRow(key, environment[key]))
const table = document.getElementById('environment')
removeChildren(table)
rows.forEach((row) => table.appendChild(row))
}
renderEnvironmentTable()
}
const addItemToggleListener = (elem) => {
elem.addEventListener('click', ({ target }) => {
const id = target.parentElement.dataset.id
manager.toggleCollapsedItem(id)
const collapsedIds = getCollapsedIds()
if (collapsedIds.includes(id)) {
const updated = collapsedIds.filter((item) => item !== id)
setCollapsedIds(updated)
} else {
collapsedIds.push(id)
setCollapsedIds(collapsedIds)
}
redraw()
})
}
const renderContent = (tests) => {
const sortAttr = getSort(manager.initialSort)
const sortAsc = JSON.parse(getSortDirection())
const rows = tests.map(dom.getResultTBody)
const table = document.getElementById('results-table')
const tableHeader = document.getElementById('results-table-head')
const newTable = document.createElement('table')
newTable.id = 'results-table'
// remove all sorting classes and set the relevant
findAll('.sortable', tableHeader).forEach((elem) => elem.classList.remove('asc', 'desc'))
tableHeader.querySelector(`.sortable[data-column-type="${sortAttr}"]`)?.classList.add(sortAsc ? 'desc' : 'asc')
newTable.appendChild(tableHeader)
if (!rows.length) {
const emptyTable = document.getElementById('template_results-table__body--empty').content.cloneNode(true)
newTable.appendChild(emptyTable)
} else {
rows.forEach((row) => {
if (!!row) {
findAll('.collapsible td:not(.col-links', row).forEach(addItemToggleListener)
find('.logexpander', row).addEventListener('click',
(evt) => evt.target.parentNode.classList.toggle('expanded'),
)
newTable.appendChild(row)
}
})
}
table.replaceWith(newTable)
}
const renderDerived = () => {
const currentFilter = getVisible()
possibleFilters.forEach((result) => {
const input = document.querySelector(`input[data-test-result="${result}"]`)
input.checked = currentFilter.includes(result)
})
}
const bindEvents = () => {
const filterColumn = (evt) => {
const { target: element } = evt
const { testResult } = element.dataset
doFilter(testResult, element.checked)
const collapsedIds = getCollapsedIds()
const updated = manager.renderData.tests.map((test) => {
return {
...test,
collapsed: collapsedIds.includes(test.id),
}
})
manager.setRender(updated)
redraw()
}
const header = document.getElementById('environment-header')
header.addEventListener('click', () => {
const table = document.getElementById('environment')
table.classList.toggle('hidden')
header.classList.toggle('collapsed')
})
findAll('input[name="filter_checkbox"]').forEach((elem) => {
elem.addEventListener('click', filterColumn)
})
findAll('.sortable').forEach((elem) => {
elem.addEventListener('click', (evt) => {
const { target: element } = evt
const { columnType } = element.dataset
doSort(columnType)
redraw()
})
})
document.getElementById('show_all_details').addEventListener('click', () => {
manager.allCollapsed = false
setCollapsedIds([])
redraw()
})
document.getElementById('hide_all_details').addEventListener('click', () => {
manager.allCollapsed = true
const allIds = manager.renderData.tests.map((test) => test.id)
setCollapsedIds(allIds)
redraw()
})
}
const redraw = () => {
const { testSubset } = manager
renderContent(testSubset)
renderDerived()
}
module.exports = {
redraw,
bindEvents,
renderStatic,
}
},{"./datamanager.js":1,"./dom.js":2,"./filter.js":3,"./sort.js":7,"./storage.js":8}],6:[function(require,module,exports){
class MediaViewer {
constructor(assets) {
this.assets = assets
this.index = 0
}
nextActive() {
this.index = this.index === this.assets.length - 1 ? 0 : this.index + 1
return [this.activeFile, this.index]
}
prevActive() {
this.index = this.index === 0 ? this.assets.length - 1 : this.index -1
return [this.activeFile, this.index]
}
get currentIndex() {
return this.index
}
get activeFile() {
return this.assets[this.index]
}
}
const setup = (resultBody, assets) => {
if (!assets.length) {
resultBody.querySelector('.media').classList.add('hidden')
return
}
const mediaViewer = new MediaViewer(assets)
const container = resultBody.querySelector('.media-container')
const leftArrow = resultBody.querySelector('.media-container__nav--left')
const rightArrow = resultBody.querySelector('.media-container__nav--right')
const mediaName = resultBody.querySelector('.media__name')
const counter = resultBody.querySelector('.media__counter')
const imageEl = resultBody.querySelector('img')
const sourceEl = resultBody.querySelector('source')
const videoEl = resultBody.querySelector('video')
const setImg = (media, index) => {
if (media?.format_type === 'image') {
imageEl.src = media.path
imageEl.classList.remove('hidden')
videoEl.classList.add('hidden')
} else if (media?.format_type === 'video') {
sourceEl.src = media.path
videoEl.classList.remove('hidden')
imageEl.classList.add('hidden')
}
mediaName.innerText = media?.name
counter.innerText = `${index + 1} / ${assets.length}`
}
setImg(mediaViewer.activeFile, mediaViewer.currentIndex)
const moveLeft = () => {
const [media, index] = mediaViewer.prevActive()
setImg(media, index)
}
const doRight = () => {
const [media, index] = mediaViewer.nextActive()
setImg(media, index)
}
const openImg = () => {
window.open(mediaViewer.activeFile.path, '_blank')
}
if (assets.length === 1) {
container.classList.add('media-container--fullscreen')
} else {
leftArrow.addEventListener('click', moveLeft)
rightArrow.addEventListener('click', doRight)
}
imageEl.addEventListener('click', openImg)
}
module.exports = {
setup,
}
},{}],7:[function(require,module,exports){
const { manager } = require('./datamanager.js')
const storageModule = require('./storage.js')
const genericSort = (list, key, ascending, customOrder) => {
let sorted
if (customOrder) {
sorted = list.sort((a, b) => {
const aValue = a.result.toLowerCase()
const bValue = b.result.toLowerCase()
const aIndex = customOrder.findIndex((item) => item.toLowerCase() === aValue)
const bIndex = customOrder.findIndex((item) => item.toLowerCase() === bValue)
// Compare the indices to determine the sort order
return aIndex - bIndex
})
} else {
sorted = list.sort((a, b) => a[key] === b[key] ? 0 : a[key] > b[key] ? 1 : -1)
}
if (ascending) {
sorted.reverse()
}
return sorted
}
const durationSort = (list, ascending) => {
const parseDuration = (duration) => {
if (duration.includes(':')) {
// If it's in the format "HH:mm:ss"
const [hours, minutes, seconds] = duration.split(':').map(Number)
return (hours * 3600 + minutes * 60 + seconds) * 1000
} else {
// If it's in the format "nnn ms"
return parseInt(duration)
}
}
const sorted = list.sort((a, b) => parseDuration(a['duration']) - parseDuration(b['duration']))
if (ascending) {
sorted.reverse()
}
return sorted
}
const doInitSort = () => {
const type = storageModule.getSort(manager.initialSort)
const ascending = storageModule.getSortDirection()
const list = manager.testSubset
const initialOrder = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed', 'Skipped', 'Passed']
storageModule.setSort(type)
storageModule.setSortDirection(ascending)
if (type?.toLowerCase() === 'original') {
manager.setRender(list)
} else {
let sortedList
switch (type) {
case 'duration':
sortedList = durationSort(list, ascending)
break
case 'result':
sortedList = genericSort(list, type, ascending, initialOrder)
break
default:
sortedList = genericSort(list, type, ascending)
break
}
manager.setRender(sortedList)
}
}
const doSort = (type, skipDirection) => {
const newSortType = storageModule.getSort(manager.initialSort) !== type
const currentAsc = storageModule.getSortDirection()
let ascending
if (skipDirection) {
ascending = currentAsc
} else {
ascending = newSortType ? false : !currentAsc
}
storageModule.setSort(type)
storageModule.setSortDirection(ascending)
const list = manager.testSubset
const sortedList = type === 'duration' ? durationSort(list, ascending) : genericSort(list, type, ascending)
manager.setRender(sortedList)
}
module.exports = {
doInitSort,
doSort,
}
},{"./datamanager.js":1,"./storage.js":8}],8:[function(require,module,exports){
const possibleFilters = [
'passed',
'skipped',
'failed',
'error',
'xfailed',
'xpassed',
'rerun',
]
const getVisible = () => {
const url = new URL(window.location.href)
const settings = new URLSearchParams(url.search).get('visible')
const lower = (item) => {
const lowerItem = item.toLowerCase()
if (possibleFilters.includes(lowerItem)) {
return lowerItem
}
return null
}
return settings === null ?
possibleFilters :
[...new Set(settings?.split(',').map(lower).filter((item) => item))]
}
const hideCategory = (categoryToHide) => {
const url = new URL(window.location.href)
const visibleParams = new URLSearchParams(url.search).get('visible')
const currentVisible = visibleParams ? visibleParams.split(',') : [...possibleFilters]
const settings = [...new Set(currentVisible)].filter((f) => f !== categoryToHide).join(',')
url.searchParams.set('visible', settings)
window.history.pushState({}, null, unescape(url.href))
}
const showCategory = (categoryToShow) => {
if (typeof window === 'undefined') {
return
}
const url = new URL(window.location.href)
const currentVisible = new URLSearchParams(url.search).get('visible')?.split(',').filter(Boolean) ||
[...possibleFilters]
const settings = [...new Set([categoryToShow, ...currentVisible])]
const noFilter = possibleFilters.length === settings.length || !settings.length
noFilter ? url.searchParams.delete('visible') : url.searchParams.set('visible', settings.join(','))
window.history.pushState({}, null, unescape(url.href))
}
const getSort = (initialSort) => {
const url = new URL(window.location.href)
let sort = new URLSearchParams(url.search).get('sort')
if (!sort) {
sort = initialSort || 'result'
}
return sort
}
const setSort = (type) => {
const url = new URL(window.location.href)
url.searchParams.set('sort', type)
window.history.pushState({}, null, unescape(url.href))
}
const getCollapsedCategory = (renderCollapsed) => {
let categories
if (typeof window !== 'undefined') {
const url = new URL(window.location.href)
const collapsedItems = new URLSearchParams(url.search).get('collapsed')
switch (true) {
case !renderCollapsed && collapsedItems === null:
categories = ['passed']
break
case collapsedItems?.length === 0 || /^["']{2}$/.test(collapsedItems):
categories = []
break
case /^all$/.test(collapsedItems) || collapsedItems === null && /^all$/.test(renderCollapsed):
categories = [...possibleFilters]
break
default:
categories = collapsedItems?.split(',').map((item) => item.toLowerCase()) || renderCollapsed
break
}
} else {
categories = []
}
return categories
}
const getSortDirection = () => JSON.parse(sessionStorage.getItem('sortAsc')) || false
const setSortDirection = (ascending) => sessionStorage.setItem('sortAsc', ascending)
const getCollapsedIds = () => JSON.parse(sessionStorage.getItem('collapsedIds')) || []
const setCollapsedIds = (list) => sessionStorage.setItem('collapsedIds', JSON.stringify(list))
module.exports = {
getVisible,
hideCategory,
showCategory,
getCollapsedIds,
setCollapsedIds,
getSort,
setSort,
getSortDirection,
setSortDirection,
getCollapsedCategory,
possibleFilters,
}
},{}]},{},[4]);
</script>
</footer>
</html>