Skip to content

Commit

Permalink
Refactor tests that depend on API calls (#419)
Browse files Browse the repository at this point in the history
* add bestpdb endpoint test

* add compare_responses

* update pytest configuration

* update ci.yml

* linting

* add more tests to the endpoints

* add api golden data

* add `test_call_uniprot`

* mock `make_request`

* refactor test_pdb - wip

* add golden data

* add `pytest-mock`

* add types to `make_request`

* add types to pdb module

* improve pdb tests

* use old typing syntax for Union

* mark integration tests

* rename TODO to FIXME

* add missing fixme
  • Loading branch information
rvhonorato authored May 16, 2024
1 parent a77e422 commit 8a9a2c7
Show file tree
Hide file tree
Showing 28 changed files with 68,129 additions and 127 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ jobs:

- run: poetry install --no-interaction --no-root

- name: Test
run: |
poetry run pytest --cov=./ --cov-report=xml -v
- name: Run sanity check on the API endpoints
run: poetry run pytest -m sanity -vvv

- name: Run unit tests
run: poetry run pytest -m "not (sanity or integration)" --cov=./ --cov-report=xml -v

- name: Run integration tests
run: poetry run pytest -m integration

- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
Expand Down
Loading

0 comments on commit 8a9a2c7

Please sign in to comment.