DMSC Integration Testing

Last updated: November 01, 2025 10:37:04

Test: ingestor|estia|dataset_found_is_not_old|

None

None

None

None

None

None

None

None

None

None

None

None

None

None

None

instrument = 'estia', 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(2025, 10, 9, 10, 26, 44, 210000, tzinfo=tzutc()) > (datetime.datetime(2025, 10, 16, 22, 15, 33, 697856, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 10, 16, 22, 15, 33, 697856, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 10, 9, 10, 26, 44, 210000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'estia', 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(2025, 10, 9, 10, 26, 44, 210000, tzinfo=tzutc()) > (datetime.datetime(2025, 10, 15, 22, 15, 28, 360395, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 10, 15, 22, 15, 28, 360395, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 10, 9, 10, 26, 44, 210000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'estia', 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(2025, 10, 9, 10, 26, 44, 210000, tzinfo=tzutc()) > (datetime.datetime(2025, 10, 14, 22, 15, 25, 200112, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 10, 14, 22, 15, 25, 200112, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 10, 9, 10, 26, 44, 210000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'estia', 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(2025, 10, 9, 10, 26, 44, 210000, tzinfo=tzutc()) > (datetime.datetime(2025, 10, 13, 22, 15, 13, 718081, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 10, 13, 22, 15, 13, 718081, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 10, 9, 10, 26, 44, 210000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:59: AssertionError

instrument = 'estia', 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(2025, 10, 9, 10, 26, 44, 210000, tzinfo=tzutc()) > (datetime.datetime(2025, 10, 13, 7, 58, 1, 414361, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 10, 13, 7, 58, 1, 414361, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 10, 9, 10, 26, 44, 210000, 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

instrument = 'estia', 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(2025, 9, 25, 13, 21, 22, 167000, tzinfo=tzutc()) > (datetime.datetime(2025, 9, 28, 22, 15, 47, 659045, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 9, 28, 22, 15, 47, 659045, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 9, 25, 13, 21, 22, 167000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

instrument = 'estia', 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(2025, 9, 25, 13, 21, 22, 167000, tzinfo=tzutc()) > (datetime.datetime(2025, 9, 27, 22, 15, 40, 250344, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 9, 27, 22, 15, 40, 250344, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 9, 25, 13, 21, 22, 167000, tzinfo=tzutc()).tzinfo
E + and datetime.timedelta(days=1) = timedelta(hours=24)

tests/ingestor/ingestor_test.py:57: AssertionError

instrument = 'estia', 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(2025, 9, 25, 13, 21, 22, 167000, tzinfo=tzutc()) > (datetime.datetime(2025, 9, 26, 22, 15, 29, 95589, tzinfo=tzutc()) - datetime.timedelta(days=1))
E + where datetime.datetime(2025, 9, 26, 22, 15, 29, 95589, tzinfo=tzutc()) = (tzutc())
E + where = datetime.now
E + and tzutc() = datetime.datetime(2025, 9, 25, 13, 21, 22, 167000, 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

None

None

None