Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

G3 132: Fixing oauth2 proxy nginx auth annotation #14

Conversation

bergsalex
Copy link
Collaborator

SSIA.

Copy link

Test Coverage Report

============================= test session starts ==============================
platform linux -- Python 3.11.7, pytest-7.4.4, pluggy-1.3.0
rootdir: /home/runner/work/geneweaver-api/geneweaver-api
plugins: asyncio-0.21.1, anyio-4.2.0, cov-4.1.0
asyncio: mode=Mode.STRICT
collected 28 items

tests/controllers/test_genesets.py .......                               [ 25%]
tests/services/test_genset.py ......                                     [ 46%]
tests/services/io/test_read_file_contents.py ...............             [100%]

=============================== warnings summary ===============================
tests/data/__init__.py:8
  /home/runner/work/geneweaver-api/geneweaver-api/tests/data/__init__.py:8: DeprecationWarning: read_text is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
    geneset_response_json = importlib.resources.read_text(

../../../../../opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/resources/_legacy.py:80
../../../../../opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/resources/_legacy.py:80
  /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/resources/_legacy.py:80: DeprecationWarning: open_text is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
    with open_text(package, resource, encoding, errors) as fp:

tests/data/__init__.py:11
  /home/runner/work/geneweaver-api/geneweaver-api/tests/data/__init__.py:11: DeprecationWarning: read_text is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
    geneset_w_gene_id_type_json = importlib.resources.read_text(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

---------- coverage: platform linux, python 3.11.7-final-0 -----------
Name                                            Stmts   Miss  Cover
-------------------------------------------------------------------
src/geneweaver/api/__init__.py                      0      0   100%
src/geneweaver/api/controller/__init__.py           0      0   100%
src/geneweaver/api/controller/api.py                9      0   100%
src/geneweaver/api/controller/batch.py             12      3    75%
src/geneweaver/api/controller/genesets.py          61      8    87%
src/geneweaver/api/controller/message.py            3      0   100%
src/geneweaver/api/controller/search.py             0      0   100%
src/geneweaver/api/core/__init__.py                 0      0   100%
src/geneweaver/api/core/config.py                   2      0   100%
src/geneweaver/api/core/config_class.py            27      1    96%
src/geneweaver/api/core/db.py                       0      0   100%
src/geneweaver/api/core/deps.py                     3      0   100%
src/geneweaver/api/core/exceptions.py              10      3    70%
src/geneweaver/api/core/security.py               118     76    36%
src/geneweaver/api/dependencies.py                 30     12    60%
src/geneweaver/api/main.py                          1      0   100%
src/geneweaver/api/schemas/__init__.py              0      0   100%
src/geneweaver/api/schemas/auth.py                 19      0   100%
src/geneweaver/api/schemas/batch.py                 6      0   100%
src/geneweaver/api/schemas/messages.py             18      0   100%
src/geneweaver/api/schemas/score.py                13     13     0%
src/geneweaver/api/services/__init__.py             0      0   100%
src/geneweaver/api/services/batch.py               13     13     0%
src/geneweaver/api/services/geneset.py             36      3    92%
src/geneweaver/api/services/io.py                   4      0   100%
src/geneweaver/api/services/parse/__init__.py       0      0   100%
src/geneweaver/api/services/parse/batch.py         11      5    55%
src/geneweaver/api/services/pubmeds.py              0      0   100%
-------------------------------------------------------------------
TOTAL                                             396    137    65%
Coverage HTML written to dir htmlcov

Required test coverage of 60% reached. Total coverage: 65.40%
======================== 28 passed, 4 warnings in 1.95s ========================

@bergsalex bergsalex temporarily deployed to jax-cluster-dev-10--dev January 19, 2024 17:01 — with GitHub Actions Inactive
@bergsalex bergsalex merged commit cc4af40 into main Jan 19, 2024
7 checks passed
@bergsalex bergsalex deleted the G3-132-fix-the-auth-url-ingress-annotation-to-use-cluster-level-service branch February 6, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants