Skip to content

Commit

Permalink
fix: ci verbose output
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Feb 18, 2024
1 parent 9ac6b8d commit 6874a3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Test with pytest
run: |
# Github action runners now have 4 cores
poetry run pytest -n 4 --cov --cov-report xml:coverage-report/coverage.xml
poetry run pytest -s -v -n 4 --cov --cov-report xml:coverage-report/coverage.xml
- name: Upload coverage report artifact to be used by Codecov
# only upload if matrix.os is ubuntu-latest and matrix.python-version is 3.12
Expand Down
26 changes: 0 additions & 26 deletions tests/test_downloadSeries.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from src.nbiatoolkit import NBIAClient
from tempfile import TemporaryDirectory
import os
import requests


@pytest.fixture
Expand Down Expand Up @@ -33,28 +32,3 @@ def test_downloadSeries(nbia_client):
assert len(modality_dir) == 1
assert modality_dir[0].startswith("CT")
assert os.path.isdir(os.path.join(tempdir, dir[0], modality_dir[0]))

# assert len(dir) == 1
# assert os.path.isdir(os.path.join(tempdir, dir[0]))

# modality_dir = os.listdir(os.path.join(tempdir, dir[0]))
# assert len(modality_dir) == 1
# assert modality_dir[0] == "CT"
# assert os.path.isdir(os.path.join(tempdir, dir[0], modality_dir[0]))

# series_dir = os.listdir(os.path.join(tempdir, dir[0], modality_dir[0]))
# assert len(series_dir) == 1
# # only last 5 digits of SeriesInstanceUID are used
# assert series_dir[0] == "{}-{}".format(
# seriesList[0]["SeriesNumber"], seriesList[0]["SeriesInstanceUID"][-5:]
# )
# assert os.path.isdir(os.path.join(tempdir, dir[0], modality_dir[0], series_dir[0]))

# dicom_dir = os.listdir(
# os.path.join(tempdir, dir[0], modality_dir[0], series_dir[0])
# )

# assert len(dicom_dir) == int(seriesList[0]["ImageCount"])
# for file in dicom_dir:
# assert file.endswith(".dcm")
# assert file[:-4].isdigit()

0 comments on commit 6874a3d

Please sign in to comment.