-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-tests-python.txt
207 lines (156 loc) · 6.01 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
Running automated test file(s):
===============================================================================
Running: pylint ./src
************* Module little_sisters_vocab.strings
src/little_sisters_vocab/strings.py:16:0: C0301: Line too long (128/100) (line-too-long)
------------------------------------------------------------------
Your code has been rated at 9.55/10 (previous run: 8.89/10, +0.66)
real 0m0.777s
user 0m0.671s
sys 0m0.109s
===============================================================================
Running: ruff check --ignore E501 ./src
real 0m0.092s
user 0m0.037s
sys 0m0.059s
===============================================================================
Running: pyright --stats ./src
Found 2 source files
pyright 1.1.347
0 errors, 0 warnings, 0 informations
Completed in 0.556sec
Analysis stats
Total files parsed and bound: 20
Total files checked: 2
Timing stats
Find Source Files: 0sec
Read Source Files: 0.01sec
Tokenize: 0.03sec
Parse: 0.04sec
Resolve Imports: 0.05sec
Bind: 0.05sec
Check: 0.06sec
Detect Cycles: 0sec
real 0m1.264s
user 0m1.121s
sys 0m0.191s
===============================================================================
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-01-17 16:14:22.020440
Files in scope (2):
./src/little_sisters_vocab/__init__.py (score: {SEVERITY: 0, CONFIDENCE: 0})
./src/little_sisters_vocab/strings.py (score: {SEVERITY: 0, CONFIDENCE: 0})
Files excluded (0):
Test results:
No issues identified.
Code scanned:
Total lines of code: 49
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.288s
user 0m0.227s
sys 0m0.064s
===============================================================================
Running: refurb ./src
real 0m1.128s
user 0m1.046s
sys 0m0.083s
===============================================================================
python -m doctest -v ./src/little_sisters_vocab/__init__.py ./src/little_sisters_vocab/strings.py
1 items had no tests:
__init__
0 tests in 1 items.
0 passed and 0 failed.
Test passed.
5 items had no tests:
strings
strings.add_prefix_un
strings.adjective_to_verb
strings.make_word_groups
strings.remove_suffix_ness
0 tests in 5 items.
0 passed and 0 failed.
Test passed.
real 0m0.153s
user 0m0.086s
sys 0m0.070s
===============================================================================
==> .coveragerc <==
[run]
omit = __init__.py, *_test.py
Running: PYTHONPATH=./src 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
rootdir: /home/vpayno/git_vpayno/exercism-workspace/python/little-sisters-vocab
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
collecting ... collected 7 items
test/strings_test.py::LittleSistersVocabTest::test_add_prefix_un PASSED [ 14%]
test/strings_test.py::LittleSistersVocabTest::test_adjective_to_verb PASSED [ 28%]
test/strings_test.py::LittleSistersVocabTest::test_make_word_groups_auto PASSED [ 42%]
test/strings_test.py::LittleSistersVocabTest::test_make_word_groups_en PASSED [ 57%]
test/strings_test.py::LittleSistersVocabTest::test_make_word_groups_pre PASSED [ 71%]
test/strings_test.py::LittleSistersVocabTest::test_make_words_groups_inter PASSED [ 85%]
test/strings_test.py::LittleSistersVocabTest::test_remove_suffix_ness PASSED [100%]
---------- coverage: platform linux, python 3.12.1-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing
--------------------------------------------------------
strings.py 22 0 6 0 100%
--------------------------------------------------------
TOTAL 22 0 6 0 100%
Coverage XML written to file .coverage.xml
============================== 7 passed in 0.06s ===============================
real 0m0.881s
user 0m0.766s
sys 0m0.116s
===============================================================================
Running: coverage report --show-missing
Name Stmts Miss Branch BrPart Cover Missing
--------------------------------------------------------
strings.py 22 0 6 0 100%
--------------------------------------------------------
TOTAL 22 0 6 0 100%
real 0m0.153s
user 0m0.100s
sys 0m0.054s
===============================================================================
coverage annotate
real 0m0.155s
user 0m0.102s
sys 0m0.055s
tail -n 10000 ./*,cover | grep -E -C 3 '^> def |^! '
> def add_prefix_un(word: str) -> str:
> """Take the given word and add the 'un' prefix.
--
> def make_word_groups(vocab_words: List[str]) -> str:
> """Transform a list containing a prefix and words into a string with the prefix followed by the words with prefix prepended.
--
> def remove_suffix_ness(word: str) -> str:
> """Remove the suffix from the word while keeping spelling in mind.
--
> def adjective_to_verb(sentence: str, index: int) -> str:
> """Change the adjective within the sentence to a verb.
===============================================================================
Running: misspell ./src/little_sisters_vocab/__init__.py ./src/little_sisters_vocab/strings.py
real 0m0.021s
user 0m0.020s
sys 0m0.013s
===============================================================================