Test passed, nothing to report
Test: ingestor|magic|dataset_found_is_not_old|
assert datetime.datetime(2026, 9, 7, 12, 14, 19, 960000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 9, 8, 22, 15, 55, 85878, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1)) + where datetime.datetime(2026, 9, 8, 22, 15, 55, 85878, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f430f8c4840>(datetime.timezone.utc) + where <built-in method now of type object at 0x7f430f8c4840> = datetime.now + and datetime.timezone.utc = datetime.datetime(2026, 9, 7, 12, 14, 19, 960000, tzinfo=datetime.timezone.utc).tzinfo + and datetime.timedelta(days=1) = timedelta(hours=24) tests/ingestor/ingestor_test.py:59: AssertionError
Full output
instrument = 'magic', 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, 9, 7, 12, 14, 19, 960000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 9, 8, 22, 15, 55, 85878, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 9, 8, 22, 15, 55, 85878, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f430f8c4840>(datetime.timezone.utc)
E + where <built-in method now of type object at 0x7f430f8c4840> = datetime.now
E + and datetime.timezone.utc = datetime.datetime(2026, 9, 7, 12, 14, 19, 960000, tzinfo=datetime.timezone.utc).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)
tests/ingestor/ingestor_test.py:59: AssertionError
assert datetime.datetime(2026, 9, 2, 9, 48, 53, 964000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 9, 3, 22, 16, 27, 634024, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1)) + where datetime.datetime(2026, 9, 3, 22, 16, 27, 634024, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f8d22a51840>(datetime.timezone.utc) + where <built-in method now of type object at 0x7f8d22a51840> = datetime.now + and datetime.timezone.utc = datetime.datetime(2026, 9, 2, 9, 48, 53, 964000, tzinfo=datetime.timezone.utc).tzinfo + and datetime.timedelta(days=1) = timedelta(hours=24) tests/ingestor/ingestor_test.py:59: AssertionError
Full output
instrument = 'magic', 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, 9, 2, 9, 48, 53, 964000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 9, 3, 22, 16, 27, 634024, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 9, 3, 22, 16, 27, 634024, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f8d22a51840>(datetime.timezone.utc)
E + where <built-in method now of type object at 0x7f8d22a51840> = datetime.now
E + and datetime.timezone.utc = datetime.datetime(2026, 9, 2, 9, 48, 53, 964000, tzinfo=datetime.timezone.utc).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)
tests/ingestor/ingestor_test.py:59: AssertionError
assert datetime.datetime(2026, 8, 24, 10, 43, 14, 828000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 8, 26, 22, 16, 0, 952472, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1)) + where datetime.datetime(2026, 8, 26, 22, 16, 0, 952472, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f80b52df840>(datetime.timezone.utc) + where <built-in method now of type object at 0x7f80b52df840> = datetime.now + and datetime.timezone.utc = datetime.datetime(2026, 8, 24, 10, 43, 14, 828000, tzinfo=datetime.timezone.utc).tzinfo + and datetime.timedelta(days=1) = timedelta(hours=24) tests/ingestor/ingestor_test.py:59: AssertionError
Full output
instrument = 'magic', 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, 8, 24, 10, 43, 14, 828000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 8, 26, 22, 16, 0, 952472, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 8, 26, 22, 16, 0, 952472, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f80b52df840>(datetime.timezone.utc)
E + where <built-in method now of type object at 0x7f80b52df840> = datetime.now
E + and datetime.timezone.utc = datetime.datetime(2026, 8, 24, 10, 43, 14, 828000, tzinfo=datetime.timezone.utc).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)
tests/ingestor/ingestor_test.py:59: AssertionError
assert datetime.datetime(2026, 8, 24, 10, 43, 14, 828000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 8, 25, 22, 17, 15, 540826, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1)) + where datetime.datetime(2026, 8, 25, 22, 17, 15, 540826, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f4f1c719840>(datetime.timezone.utc) + where <built-in method now of type object at 0x7f4f1c719840> = datetime.now + and datetime.timezone.utc = datetime.datetime(2026, 8, 24, 10, 43, 14, 828000, tzinfo=datetime.timezone.utc).tzinfo + and datetime.timedelta(days=1) = timedelta(hours=24) tests/ingestor/ingestor_test.py:59: AssertionError
Full output
instrument = 'magic', 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, 8, 24, 10, 43, 14, 828000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 8, 25, 22, 17, 15, 540826, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 8, 25, 22, 17, 15, 540826, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f4f1c719840>(datetime.timezone.utc)
E + where <built-in method now of type object at 0x7f4f1c719840> = datetime.now
E + and datetime.timezone.utc = datetime.datetime(2026, 8, 24, 10, 43, 14, 828000, tzinfo=datetime.timezone.utc).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)
tests/ingestor/ingestor_test.py:59: AssertionError