None
Test: ingestor|nmx|file_found_is_not_old|scicat
instrument = 'nmx', coda_proposal_id = '999999'
datefinder =
def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)
tests/ingestor/ingestor_test.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:93: in get_latest_coda_nexus_date
return get_ctime(path)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/system.py:10: in get_ctime
return datetime.fromtimestamp(path.stat().st_ctime, tz=local_timezone())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = PosixPath('/ess/raw/coda/999999/raw/coda_nmx_999999_00026442.hdf')
def stat(self, *, follow_symlinks=True):
"""
Return the result of the stat() system call on this path, like
os.stat() does.
"""
> return os.stat(self, follow_symlinks=follow_symlinks)
E FileNotFoundError: [Errno 2] No such file or directory: '/ess/raw/coda/999999/raw/coda_nmx_999999_00026442.hdf'
/opt/miniforge/lib/python3.12/pathlib.py:840: FileNotFoundError
instrument = 'nmx', coda_proposal_id = '999999'
datefinder =
def test_file_found_is_not_old(
instrument: str,
coda_proposal_id: str,
datefinder: Callable[..., datetime],
) -> None:
> date = datefinder(instrument=instrument, proposal_id=coda_proposal_id)
tests/ingestor/ingestor_test.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/scicat.py:93: in get_latest_coda_nexus_date
return get_ctime(path)
.tox/ingestor/lib/python3.12/site-packages/dmsc_nightly/nexusfiles/system.py:10: in get_ctime
return datetime.fromtimestamp(path.stat().st_ctime, tz=local_timezone())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = PosixPath('/ess/raw/coda/999999/raw/coda_nmx_999999_00025688.hdf')
def stat(self, *, follow_symlinks=True):
"""
Return the result of the stat() system call on this path, like
os.stat() does.
"""
> return os.stat(self, follow_symlinks=follow_symlinks)
E FileNotFoundError: [Errno 2] No such file or directory: '/ess/raw/coda/999999/raw/coda_nmx_999999_00025688.hdf'
/opt/miniforge/lib/python3.12/pathlib.py:840: FileNotFoundError