Commit ceb42ad
committed
Refactoring to increase coverage
```
abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/python-firefly (main●)
$ uv run pytest --cov=firefly --cov-report=term-missing --pdb
============================================================= test session starts =============================================================
platform darwin -- Python 3.10.16, pytest-8.3.5, pluggy-1.5.0
rootdir: /Users/abramowi/Code/OpenSource/python-firefly
configfile: pyproject.toml
plugins: cov-6.1.1
collected 26 items
tests/test_cli.py ........ [ 30%]
tests/test_firefly_client.py ...... [ 53%]
tests/test_ims_auth.py ...... [ 76%]
tests/test_models.py ...... [100%]
=============================================================== tests coverage ================================================================
______________________________________________ coverage: platform darwin, python 3.10.16-final-0 ______________________________________________
Name Stmts Miss Cover Missing
-----------------------------------------------------
firefly/__init__.py 2 0 100%
firefly/cli.py 92 1 99% 176
firefly/client.py 41 0 100%
firefly/exceptions.py 4 0 100%
firefly/ims_auth.py 25 0 100%
firefly/models.py 22 0 100%
-----------------------------------------------------
TOTAL 186 1 99%
============================================================= 26 passed in 0.31s ==============================================================
```1 parent 14c853b commit ceb42ad
2 files changed
+24
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 137 | + | |
141 | 138 | | |
142 | 139 | | |
143 | 140 | | |
| |||
148 | 145 | | |
149 | 146 | | |
150 | 147 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
162 | 152 | | |
163 | 153 | | |
164 | 154 | | |
| |||
171 | 161 | | |
172 | 162 | | |
173 | 163 | | |
| 164 | + | |
174 | 165 | | |
175 | | - | |
176 | | - | |
177 | | - | |
| 166 | + | |
| 167 | + | |
178 | 168 | | |
179 | 169 | | |
180 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
71 | 87 | | |
72 | 88 | | |
73 | 89 | | |
| |||
0 commit comments