DMSC Integration Testing

Last updated: February 03, 2026 08:25:49

Test: ingestor|nmx|dataset_found_is_not_old|

None

None

None

None

None

None

None

None

None

None

None

None

None

instrument = 'nmx', coda_proposal_id = '999999'

def test_dataset_found_is_not_old(
instrument: str,
coda_proposal_id: str,
) -> None:
ds = scicat.get_latest_coda_dataset(
instrument=instrument, proposal_id=coda_proposal_id
)
creation_time = cast(datetime, ds.creation_time)
> assert creation_time > datetime.now(creation_time.tzinfo) - timedelta(hours=24)
E assert datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()) > (datetime.datetime(2026, 1, 20, 23, 15, 8, 190038, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 1, 20, 23, 15, 8, 190038, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'nmx', coda_proposal_id = '999999'

def test_dataset_found_is_not_old(
instrument: str,
coda_proposal_id: str,
) -> None:
ds = scicat.get_latest_coda_dataset(
instrument=instrument, proposal_id=coda_proposal_id
)
creation_time = cast(datetime, ds.creation_time)
> assert creation_time > datetime.now(creation_time.tzinfo) - timedelta(hours=24)
E assert datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()) > (datetime.datetime(2026, 1, 20, 19, 44, 8, 811817, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 1, 20, 19, 44, 8, 811817, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'nmx', coda_proposal_id = '999999'

def test_dataset_found_is_not_old(
instrument: str,
coda_proposal_id: str,
) -> None:
ds = scicat.get_latest_coda_dataset(
instrument=instrument, proposal_id=coda_proposal_id
)
creation_time = cast(datetime, ds.creation_time)
> assert creation_time > datetime.now(creation_time.tzinfo) - timedelta(hours=24)
E assert datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()) > (datetime.datetime(2026, 1, 20, 12, 55, 17, 128801, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 1, 20, 12, 55, 17, 128801, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'nmx', coda_proposal_id = '999999'

def test_dataset_found_is_not_old(
instrument: str,
coda_proposal_id: str,
) -> None:
ds = scicat.get_latest_coda_dataset(
instrument=instrument, proposal_id=coda_proposal_id
)
creation_time = cast(datetime, ds.creation_time)
> assert creation_time > datetime.now(creation_time.tzinfo) - timedelta(hours=24)
E assert datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()) > (datetime.datetime(2026, 1, 19, 23, 15, 0, 252409, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 1, 19, 23, 15, 0, 252409, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'nmx', coda_proposal_id = '999999'

def test_dataset_found_is_not_old(
instrument: str,
coda_proposal_id: str,
) -> None:
ds = scicat.get_latest_coda_dataset(
instrument=instrument, proposal_id=coda_proposal_id
)
creation_time = cast(datetime, ds.creation_time)
> assert creation_time > datetime.now(creation_time.tzinfo) - timedelta(hours=24)
E assert datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()) > (datetime.datetime(2026, 1, 19, 20, 56, 54, 769102, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 1, 19, 20, 56, 54, 769102, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'nmx', coda_proposal_id = '999999'

def test_dataset_found_is_not_old(
instrument: str,
coda_proposal_id: str,
) -> None:
ds = scicat.get_latest_coda_dataset(
instrument=instrument, proposal_id=coda_proposal_id
)
creation_time = cast(datetime, ds.creation_time)
> assert creation_time > datetime.now(creation_time.tzinfo) - timedelta(hours=24)
E assert datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()) > (datetime.datetime(2026, 1, 19, 11, 24, 15, 602212, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 1, 19, 11, 24, 15, 602212, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'nmx', coda_proposal_id = '999999'

def test_dataset_found_is_not_old(
instrument: str,
coda_proposal_id: str,
) -> None:
ds = scicat.get_latest_coda_dataset(
instrument=instrument, proposal_id=coda_proposal_id
)
creation_time = cast(datetime, ds.creation_time)
> assert creation_time > datetime.now(creation_time.tzinfo) - timedelta(hours=24)
E assert datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()) > (datetime.datetime(2026, 1, 19, 11, 21, 43, 991831, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 1, 19, 11, 21, 43, 991831, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'nmx', coda_proposal_id = '999999'

def test_dataset_found_is_not_old(
instrument: str,
coda_proposal_id: str,
) -> None:
ds = scicat.get_latest_coda_dataset(
instrument=instrument, proposal_id=coda_proposal_id
)
creation_time = cast(datetime, ds.creation_time)
> assert creation_time > datetime.now(creation_time.tzinfo) - timedelta(hours=24)
E assert datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()) > (datetime.datetime(2026, 1, 18, 23, 15, 40, 835311, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 1, 18, 23, 15, 40, 835311, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'nmx', coda_proposal_id = '999999'

def test_dataset_found_is_not_old(
instrument: str,
coda_proposal_id: str,
) -> None:
ds = scicat.get_latest_coda_dataset(
instrument=instrument, proposal_id=coda_proposal_id
)
creation_time = cast(datetime, ds.creation_time)
> assert creation_time > datetime.now(creation_time.tzinfo) - timedelta(hours=24)
E assert datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()) > (datetime.datetime(2026, 1, 18, 0, 42, 44, 108861, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 1, 18, 0, 42, 44, 108861, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2026, 1, 16, 7, 11, 14, 645000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None