DMSC Integration Testing

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

Test: ingestor|loki|dataset_found_is_not_old|

None

None

None

None

None

None

None

None

None

None

None

None

None

None

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 30, 8, 35, 29, 745000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 31, 22, 24, 23, 167589, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 31, 22, 24, 23, 167589, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 30, 8, 35, 29, 745000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

None

None

None

None

None

None

None

None

None

None

None

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 14, 16, 53, 7, 387000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 18, 22, 17, 26, 469672, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 18, 22, 17, 26, 469672, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 14, 16, 53, 7, 387000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 14, 16, 53, 7, 387000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 17, 22, 17, 54, 639462, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 17, 22, 17, 54, 639462, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 14, 16, 53, 7, 387000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 14, 16, 53, 7, 387000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 16, 22, 17, 39, 800805, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 16, 22, 17, 39, 800805, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 14, 16, 53, 7, 387000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 14, 16, 53, 7, 387000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 15, 22, 24, 6, 441175, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 15, 22, 24, 6, 441175, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 14, 16, 53, 7, 387000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

None

None

None

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 7, 3, 45, 16, 48000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 11, 22, 16, 57, 432397, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 11, 22, 16, 57, 432397, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 7, 3, 45, 16, 48000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 7, 3, 45, 16, 48000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 10, 22, 17, 27, 624873, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 10, 22, 17, 27, 624873, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 7, 3, 45, 16, 48000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 7, 3, 45, 16, 48000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 9, 22, 17, 36, 678842, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 9, 22, 17, 36, 678842, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 7, 3, 45, 16, 48000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 7, 3, 45, 16, 48000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 8, 22, 19, 39, 859384, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 8, 22, 19, 39, 859384, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 7, 3, 45, 16, 48000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

None

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 4, 2, 10, 25, 810000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 6, 22, 22, 2, 624593, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 6, 22, 22, 2, 624593, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 4, 2, 10, 25, 810000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 4, 2, 10, 25, 810000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 5, 22, 17, 28, 449842, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 5, 22, 17, 28, 449842, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 4, 2, 10, 25, 810000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

None

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 1, 15, 49, 39, 643000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 3, 22, 37, 27, 860960, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 3, 22, 37, 27, 860960, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 1, 15, 49, 39, 643000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 8, 1, 15, 49, 39, 643000, tzinfo=tzutc()) > (datetime.datetime(2025, 8, 2, 22, 17, 13, 404496, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 8, 2, 22, 17, 13, 404496, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 8, 1, 15, 49, 39, 643000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

None

None

None

None

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 7, 22, 4, 55, 33, 273000, tzinfo=tzutc()) > (datetime.datetime(2025, 7, 28, 22, 17, 3, 132623, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 7, 28, 22, 17, 3, 132623, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 7, 22, 4, 55, 33, 273000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

instrument = 'loki', coda_proposal_id = '977695'

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(2025, 7, 22, 4, 55, 33, 273000, tzinfo=tzutc()) > (datetime.datetime(2025, 7, 27, 22, 16, 56, 585043, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 7, 27, 22, 16, 56, 585043, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 7, 22, 4, 55, 33, 273000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError