DMSC Integration Testing

Last updated: September 15, 2025 23:36:07

Test: ingestor|tbl|file_found_is_not_old|scicat

None

None

None

None

None

None

None

None

None

None

None

None

None

None

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)
> assert date > datetime.now(date.tzinfo) - timedelta(hours=24)
E AssertionError: assert datetime.datetime(2025, 8, 30, 10, 31, 42, 132357, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200), 'CEST')) > (datetime.datetime(2025, 9, 1, 0, 25, 41, 45049, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200), 'CEST')) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 9, 1, 0, 25, 41, 45049, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200), 'CEST')) = (datetime.timezone(datetime.timedelta(seconds=7200), 'CEST'))
E + where = datetime.now
E + and datetime.timezone(datetime.timedelta(seconds=7200), 'CEST') = datetime.datetime(2025, 8, 30, 10, 31, 42, 132357, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200), 'CEST')).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:46: AssertionError

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError

instrument = 'tbl', coda_proposal_id = '977695'
datefinder =

def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)

tests/ingestor/ingestor_test.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:92: in get_latest_coda_nexus_date
path = get_latest_coda_nexus_path(instrument=instrument, proposal_id=proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:75: in get_latest_coda_nexus_path
ds = get_latest_coda_dataset(instrument, proposal_id)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:66: in get_latest_coda_dataset
ds_model = _get_latest_dataset_model(client, instrument, proposal_id)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = , instrument = 'tbl'
proposal_id = '977695'

def _get_latest_dataset_model(
client: Client, instrument: str, proposal_id: str
) -> model.DownloadDataset:
dataset_name = instrument
datasets = client.scicat.query_datasets(
{
"ownerGroup": [proposal_id],
"text": dataset_name,
"type": ["raw"],
},
limit=1,
order="creationTime:desc",
)
if len(datasets) == 0:
> raise RuntimeError(f"Received no datasets for {instrument=} and {proposal_id=}")
E RuntimeError: Received no datasets for instrument='tbl' and proposal_id='977695'

.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:32: RuntimeError