Closed jk-randers closed 2 months ago
Coverage Report
File Stmts Miss Cover Missing src base_api_client.py 40 24 40% 16, 19–37, 40, 43, 46, 49, 52 delta.py 191 191 0% 1–241 job_endpoints.py 37 27 27% 14–20, 26–70 src/endpoints kp_endpoints.py 20 9 55% 15, 20–27 nexus_endpoints.py 39 26 33% 17–23, 27–41, 46–55 sbsys_endpoints.py 24 12 50% 19–24, 30–39 src/jobs nexus_flow_brugerauth.py 101 101 0% 1–192 nexus_flow_lukning.py 112 100 11% 11–24, 28–63, 67–130, 134–187, 191–205, 209–239 src/kp kp_client.py 72 40 44% 27, 33–124, 127–129, 132–135, 139–152, 160–165, 168–174 src/nexus nexus_client.py 169 119 30% 34–54, 57–78, 81–86, 89, 92–93, 102–103, 106–107, 110–111, 114–136, 140–158, 161, 164, 167, 170, 181–186, 189, 192–233, 237–242, 245, 250–255 src/sbsys sbsys_client.py 66 27 59% 36–58, 61–64, 67, 70–71, 80–81, 84, 87, 90, 93 src/utils logging.py 17 2 88% 25–26 TOTAL 940 678 28%
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
15 | 0 :zzz: | 0 :x: | 13 :fire: | 0.767s :stopwatch: |
Der er lavet en base API client med 3 nedarvinger: til nexusAPIclient, sbsysAPIclient og kpAPIclient.
Det er base, nexus og sbsys API clienter der er dækket af unit tests indtil videre. Men jeg gad alligevel godt at deploy, således jeg kan begynde at deploy kørsel projektet.
Der kan f.eks. testes clienters forbindelse til eksterne API'er med kald til interne API kald i mappen endpoints. Kør python main.py for at starte servicen. Eksempler på endpoints kan testes i postman er: