-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests-python.txt
508 lines (327 loc) · 11.8 KB
/
run-tests-python.txt
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
Running automated test file(s):
===============================================================================
Running: ../../.github/citools/python/python-lint-pylint
Running Python Lint - PyLint
Python versions:
Python 3.12.1
pyenv 2.3.36-21-g7e550e31
pip 24.0 from /home/vpayno/.pyenv/versions/3.12.1/lib/python3.12/site-packages/pip (python 3.12)
PDM, version 2.13.2
==============================================================================
Running: pylint --version
pylint 3.0.3
astroid 3.0.2
Python 3.12.1 (main, Dec 28 2023, 08:22:05) [GCC 10.2.1 20210110]
real 0m0.237s
user 0m0.174s
sys 0m0.065s
==============================================================================
Running: pylint ./src
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
real 0m0.426s
user 0m0.347s
sys 0m0.081s
==============================================================================
Exit code: 0
real 0m1.626s
user 0m1.172s
sys 0m0.472s
real 0m1.630s
user 0m1.174s
sys 0m0.475s
===============================================================================
Running: ../../.github/citools/python/python-lint-ruff
Running Python Lint - Ruff
Python versions:
Python 3.12.1
pyenv 2.3.36-21-g7e550e31
pip 24.0 from /home/vpayno/.pyenv/versions/3.12.1/lib/python3.12/site-packages/pip (python 3.12)
PDM, version 2.13.2
==============================================================================
Running: ruff --version
ruff 0.3.5
real 0m0.087s
user 0m0.043s
sys 0m0.047s
==============================================================================
Running: ruff check --ignore E501 ./src
All checks passed!
real 0m0.098s
user 0m0.045s
sys 0m0.056s
==============================================================================
Exit code: 0
real 0m1.106s
user 0m0.726s
sys 0m0.401s
real 0m1.108s
user 0m0.727s
sys 0m0.402s
===============================================================================
Running: ../../.github/citools/python/python-lint-pyright
Running Python Lint - PyRight
Python versions:
Python 3.12.1
pyenv 2.3.36-21-g7e550e31
pip 24.0 from /home/vpayno/.pyenv/versions/3.12.1/lib/python3.12/site-packages/pip (python 3.12)
PDM, version 2.13.2
==============================================================================
Running: pyright --version
pyright 1.1.357
real 0m0.666s
user 0m0.510s
sys 0m0.106s
==============================================================================
Running: pyright --stats ./src
Found 2 source files
pyright 1.1.357
0 errors, 0 warnings, 0 informations
Completed in 0.625sec
Analysis stats
Total files parsed and bound: 20
Total files checked: 2
Timing stats
Find Source Files: 0sec
Read Source Files: 0sec
Tokenize: 0.04sec
Parse: 0.05sec
Resolve Imports: 0.05sec
Bind: 0.04sec
Check: 0.11sec
Detect Cycles: 0sec
real 0m1.299s
user 0m1.298s
sys 0m0.183s
==============================================================================
Exit code: 0
real 0m2.916s
user 0m2.464s
sys 0m0.600s
real 0m2.919s
user 0m2.466s
sys 0m0.601s
===============================================================================
Running: ../../.github/citools/python/python-lint-bandit
Running Python Lint - Bandit
Python versions:
Python 3.12.1
pyenv 2.3.36-21-g7e550e31
pip 24.0 from /home/vpayno/.pyenv/versions/3.12.1/lib/python3.12/site-packages/pip (python 3.12)
PDM, version 2.13.2
==============================================================================
Running: bandit --version
bandit 1.7.7
python version = 3.12.1 (main, Dec 28 2023, 08:22:05) [GCC 10.2.1 20210110]
real 0m0.292s
user 0m0.219s
sys 0m0.075s
==============================================================================
Running: bandit --verbose --recursive ./src
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.12.1
Run started:2024-04-05 05:18:55.201072
Files in scope (2):
./src/mecha_munch_management/__init__.py (score: {SEVERITY: 0, CONFIDENCE: 0})
./src/mecha_munch_management/dict_methods.py (score: {SEVERITY: 0, CONFIDENCE: 0})
Files excluded (2):
./src/mecha_munch_management/__pycache__/__init__.cpython-312.pyc
./src/mecha_munch_management/__pycache__/dict_methods.cpython-312.pyc
Test results:
No issues identified.
Code scanned:
Total lines of code: 91
Total lines skipped (#nosec): 0
Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0
Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
real 0m0.227s
user 0m0.168s
sys 0m0.059s
==============================================================================
Exit code: 0
real 0m1.436s
user 0m1.037s
sys 0m0.417s
real 0m1.438s
user 0m1.039s
sys 0m0.417s
===============================================================================
Running: ../../.github/citools/python/python-lint-refurb
Running Python Lint - Refurb
Python versions:
Python 3.12.1
pyenv 2.3.36-21-g7e550e31
pip 24.0 from /home/vpayno/.pyenv/versions/3.12.1/lib/python3.12/site-packages/pip (python 3.12)
PDM, version 2.13.2
==============================================================================
Running: refurb --version
Refurb: v1.26.0
Mypy: v1.9.0
real 0m0.188s
user 0m0.134s
sys 0m0.054s
==============================================================================
Running: refurb ./src
real 0m1.061s
user 0m0.974s
sys 0m0.088s
==============================================================================
Exit code: 0
real 0m2.155s
user 0m1.769s
sys 0m0.402s
real 0m2.157s
user 0m1.770s
sys 0m0.404s
===============================================================================
Running: ../../.github/citools/python/python-test-with-doctests
Running Python DocTests
Python versions:
Python 3.12.1
pyenv 2.3.36-21-g7e550e31
pip 24.0 from /home/vpayno/.pyenv/versions/3.12.1/lib/python3.12/site-packages/pip (python 3.12)
PDM, version 2.13.2
==============================================================================
PYTHONPATH="./src"
==============================================================================
Running: python -m doctest -v ./src/mecha_munch_management/dict_methods.py ./src/mecha_munch_management/__init__.py
7 items had no tests:
dict_methods
dict_methods.add_item
dict_methods.read_notes
dict_methods.send_to_store
dict_methods.sort_entries
dict_methods.update_recipes
dict_methods.update_store_inventory
0 tests in 7 items.
0 passed and 0 failed.
Test passed.
1 items had no tests:
__init__
0 tests in 1 items.
0 passed and 0 failed.
Test passed.
real 0m0.149s
user 0m0.077s
sys 0m0.074s
==============================================================================
Exit code: 0
real 0m1.074s
user 0m0.723s
sys 0m0.365s
real 0m1.076s
user 0m0.723s
sys 0m0.367s
===============================================================================
Running: ../../.github/citools/python/python-test-with-coverage
Running Python Tests With Coverage
Python versions:
Python 3.12.1
pyenv 2.3.36-21-g7e550e31
pip 24.0 from /home/vpayno/.pyenv/versions/3.12.1/lib/python3.12/site-packages/pip (python 3.12)
PDM, version 2.13.2
==============================================================================
Running: rm -rf ./coverage
real 0m0.001s
user 0m0.001s
sys 0m0.000s
==============================================================================
Running: pytest --version
pytest 7.4.3
real 0m0.800s
user 0m0.866s
sys 0m0.825s
==============================================================================
PYTHONPATH="./src"
==============================================================================
Running: pytest --verbose --cov=. --cov-branch --cov-report=term-missing --cov-report=xml:.coverage.xml -p no:randomly ./test
============================= test session starts ==============================
platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0 -- /home/vpayno/.pyenv/versions/3.12.1/bin/python
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/home/vpayno/git_vpayno/exercism-workspace/python/mecha-munch-management/.hypothesis/examples'))
rootdir: /home/vpayno/git_vpayno/exercism-workspace/python/mecha-munch-management
configfile: pytest.ini
plugins: anyio-4.2.0, libtmux-0.25.0, pylama-8.4.1, cov-4.1.0, datafiles-3.0.0, docker-2.0.1, subprocess-1.5.0, typeguard-4.1.5, hypothesis-6.98.17, snapshot-0.9.0
collecting ... collected 6 items
test/dict_methods_test.py::MechaMunchManagementTest::test_add_item PASSED [ 16%]
test/dict_methods_test.py::MechaMunchManagementTest::test_read_notes PASSED [ 33%]
test/dict_methods_test.py::MechaMunchManagementTest::test_send_to_store PASSED [ 50%]
test/dict_methods_test.py::MechaMunchManagementTest::test_sort_entries PASSED [ 66%]
test/dict_methods_test.py::MechaMunchManagementTest::test_update_recipes PASSED [ 83%]
test/dict_methods_test.py::MechaMunchManagementTest::test_update_store_inventory PASSED [100%]
---------- coverage: platform linux, python 3.12.1-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing
-------------------------------------------------------------
dict_methods.py 47 0 8 0 100%
-------------------------------------------------------------
TOTAL 47 0 8 0 100%
Coverage XML written to file .coverage.xml
============================== 6 passed in 0.35s ===============================
real 0m1.161s
user 0m1.016s
sys 0m0.145s
==============================================================================
Running: coverage report --show-missing
Name Stmts Miss Branch BrPart Cover Missing
-------------------------------------------------------------
dict_methods.py 47 0 8 0 100%
-------------------------------------------------------------
TOTAL 47 0 8 0 100%
real 0m0.170s
user 0m0.108s
sys 0m0.064s
==============================================================================
Running: coverage annotate
real 0m0.161s
user 0m0.097s
sys 0m0.065s
==============================================================================
Line Coverage: 100.0%
Branch Coverage: 100.0%
==============================================================================
Exit code: 0
real 0m3.231s
user 0m2.742s
sys 0m1.399s
real 0m3.233s
user 0m2.744s
sys 0m1.399s
===============================================================================
tail -n 10000 ./*,cover | grep -E -C 3 '^> def |^! '
> def add_item(current_cart: CartT, items_to_add: ItemsT) -> CartT:
> """Add items to shopping cart.
--
> def read_notes(notes: ItemsT) -> CartT:
> """Create user cart from an iterable notes entry.
--
> def update_recipes(ideas: RecipesT, recipe_updates: UpdatesT) -> RecipesT:
> """Update the recipe ideas dictionary. Replaces the existing list of items with a new list, don't update/merge.
--
> def sort_entries(cart: CartT) -> CartT:
> """Sort a users shopping cart in alphabetically order.
--
> def send_to_store(cart: CartT, aisle_mapping) -> FufillmentT:
> """Combine users order to aisle and refrigeration information.
--
> def update_store_inventory(
> fulfillment_cart: FufillmentT, store_inventory: FufillmentT
===============================================================================
Running: misspell ./src/mecha_munch_management/dict_methods.py ./src/mecha_munch_management/__init__.py
real 0m0.020s
user 0m0.014s
sys 0m0.014s
===============================================================================