Skip to content

Commit

Permalink
Release v1.3.2-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gfrn committed Feb 22, 2024
1 parent 2729e1e commit 3cf15fa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,11 @@ dev = [
"pytest",
"pytest-cov",
"ruff",
# "sphinx-autobuild",
# "sphinx-copybutton",
# "sphinx-design",
"tox-direct",
"types-mock",
"pytest-asyncio",
"httpx",
# "pydata-sphinx-theme < 0.10.1",
# https://github.com/encode/httpx/blob/master/CHANGELOG.md#0270-21st-february-2024
"httpx~=0.26.0",
"setuptools_scm[toml]>=6.2"
]

Expand Down
2 changes: 1 addition & 1 deletion src/pato/crud/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_tomograms(
_job_status_description.label("status"),
)
.select_from(ProcessingJob)
.join(AutoProcProgram)
.outerjoin(AutoProcProgram)
.outerjoin(Tomogram)
.filter(ProcessingJob.dataCollectionId == collectionId)
.order_by(ProcessingJob.processingJobId.desc())
Expand Down
2 changes: 1 addition & 1 deletion src/pato/models/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ class AutoProcProgram(OrmBaseModel):


class ProcessingJobResponse(OrmBaseModel):
AutoProcProgram: AutoProcProgram
AutoProcProgram: Optional[AutoProcProgram]
ProcessingJob: ProcessingJob
status: str

Expand Down
7 changes: 7 additions & 0 deletions tests/collections/test_tomogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ def test_get_no_tomogram(mock_permissions, client):
resp = client.get("/dataCollections/6017413/tomograms")
assert resp.status_code == 200
assert resp.json()["items"][1]["Tomogram"] is None


def test_get_no_autoproc(mock_permissions, client):
"""Get tomograms with no linked autoprocessing programs"""
resp = client.get("/dataCollections/6017406/tomograms")
assert resp.status_code == 200
assert resp.json()["total"] == 29

0 comments on commit 3cf15fa

Please sign in to comment.