Test passed, nothing to report
Test: ingestor|beer|dataset_found_is_not_old|
assert datetime.datetime(2026, 9, 7, 13, 17, 45, 918000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 9, 8, 22, 15, 0, 125707, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1)) + where datetime.datetime(2026, 9, 8, 22, 15, 0, 125707, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f40c6e44840>(datetime.timezone.utc) + where <built-in method now of type object at 0x7f40c6e44840> = datetime.now + and datetime.timezone.utc = datetime.datetime(2026, 9, 7, 13, 17, 45, 918000, tzinfo=datetime.timezone.utc).tzinfo + and datetime.timedelta(days=1) = timedelta(hours=24) tests/ingestor/ingestor_test.py:59: AssertionError
Full output
instrument = 'beer', 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, 13, 17, 45, 918000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 9, 8, 22, 15, 0, 125707, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 9, 8, 22, 15, 0, 125707, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f40c6e44840>(datetime.timezone.utc)
E + where <built-in method now of type object at 0x7f40c6e44840> = datetime.now
E + and datetime.timezone.utc = datetime.datetime(2026, 9, 7, 13, 17, 45, 918000, 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, 7, 13, 17, 45, 918000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 9, 8, 16, 25, 43, 412106, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1)) + where datetime.datetime(2026, 9, 8, 16, 25, 43, 412106, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f5424d92840>(datetime.timezone.utc) + where <built-in method now of type object at 0x7f5424d92840> = datetime.now + and datetime.timezone.utc = datetime.datetime(2026, 9, 7, 13, 17, 45, 918000, tzinfo=datetime.timezone.utc).tzinfo + and datetime.timedelta(days=1) = timedelta(hours=24) tests/ingestor/ingestor_test.py:59: AssertionError
Full output
instrument = 'beer', 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, 13, 17, 45, 918000, tzinfo=datetime.timezone.utc) > (datetime.datetime(2026, 9, 8, 16, 25, 43, 412106, tzinfo=datetime.timezone.utc) - datetime.timedelta(days=1))
E + where datetime.datetime(2026, 9, 8, 16, 25, 43, 412106, tzinfo=datetime.timezone.utc) = <built-in method now of type object at 0x7f5424d92840>(datetime.timezone.utc)
E + where <built-in method now of type object at 0x7f5424d92840> = datetime.now
E + and datetime.timezone.utc = datetime.datetime(2026, 9, 7, 13, 17, 45, 918000, tzinfo=datetime.timezone.utc).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)
tests/ingestor/ingestor_test.py:59: AssertionError