kytos-ng / telemetry_int

Kytos Telemetry Napp
MIT License
0 stars 2 forks source link

chore: supported py 3.11 unit tests, increased overall test cov to 90% #82

Closed viniarck closed 3 months ago

viniarck commented 3 months ago

Closes #77

Summary

Local Tests

---------- coverage: platform linux, python 3.11.8-final-0 -----------
Name                                        Stmts   Miss  Cover
---------------------------------------------------------------
__init__.py                                     0      0   100%
exceptions.py                                  31      4    87%
kytos_api_helper.py                            76     15    80%
main.py                                       212     87    59%
managers/__init__.py                            0      0   100%
managers/flow_builder.py                      128      3    98%
managers/int.py                               279     52    81%
proxy_port.py                                  24      3    88%
settings.py                                    12      0   100%
tests/conftest.py                              18      0   100%
tests/unit/test_flow_builder_inter_evc.py      60      0   100%
tests/unit/test_flow_builder_intra_evc.py     105      0   100%
tests/unit/test_int_manager.py                332      0   100%
tests/unit/test_kytos_api_helper.py            63      0   100%
tests/unit/test_main.py                       176      0   100%
tests/unit/test_utils.py                       76      0   100%
utils.py                                       62      0   100%
---------------------------------------------------------------
TOTAL                                        1654    164    90%

coverage: OK ✔ in 30.65 seconds
lint: install_deps> python -I -m pip install -r requirements/dev.in
lint: commands[0]> python3 setup.py lint
running lint
Yala is running. It may take several seconds...
INFO: Finished isort
INFO: Finished black
INFO: Finished pycodestyle
INFO: Finished pylint
[isort] Skipped 3 files
:) No issues found.
  coverage: OK (30.65=setup[26.86]+cmd[3.79] seconds)
  lint: OK (31.96=setup[27.03]+cmd[4.93] seconds)
  congratulations :) (62.64 seconds)

End-to-End Tests

N/A

viniarck commented 3 months ago

I'll go ahead and merge this.