None
Test: ingestor|tbl|file_found_by_scicat_is_consistent_with_manual|
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
instrument = 'tbl', coda_proposal_id = '999999'
def test_file_found_by_scicat_is_consistent_with_manual(
instrument: str,
coda_proposal_id: str,
) -> None:
scicat_path = scicat.get_latest_coda_nexus_path(
proposal_id=coda_proposal_id, instrument=instrument
)
raw_paths = coda.get_latest_nexus_paths(
proposal_id=coda_proposal_id,
instrument=instrument,
n=2,
)
# Resolve symlinks because the raw folder is symlinked to `/ess/data`
# and we don't care whether we access files through links or regular paths.
scicat_path = scicat_path.resolve()
raw_paths = [path.resolve() for path in raw_paths]
> assert scicat_path in raw_paths
E AssertionError: assert PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00001287.hdf') in [PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00002401.hdf'), PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00002394.hdf')]
tests/ingestor/ingestor_test.py:39: AssertionError
instrument = 'tbl', coda_proposal_id = '999999'
def test_file_found_by_scicat_is_consistent_with_manual(
instrument: str,
coda_proposal_id: str,
) -> None:
scicat_path = scicat.get_latest_coda_nexus_path(
proposal_id=coda_proposal_id, instrument=instrument
)
raw_paths = coda.get_latest_nexus_paths(
proposal_id=coda_proposal_id,
instrument=instrument,
n=2,
)
# Resolve symlinks because the raw folder is symlinked to `/ess/data`
# and we don't care whether we access files through links or regular paths.
scicat_path = scicat_path.resolve()
raw_paths = [path.resolve() for path in raw_paths]
> assert scicat_path in raw_paths
E AssertionError: assert PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00001287.hdf') in [PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00002338.hdf'), PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00002331.hdf')]
tests/ingestor/ingestor_test.py:39: AssertionError
instrument = 'tbl', coda_proposal_id = '999999'
def test_file_found_by_scicat_is_consistent_with_manual(
instrument: str,
coda_proposal_id: str,
) -> None:
scicat_path = scicat.get_latest_coda_nexus_path(
proposal_id=coda_proposal_id, instrument=instrument
)
raw_paths = coda.get_latest_nexus_paths(
proposal_id=coda_proposal_id,
instrument=instrument,
n=2,
)
# Resolve symlinks because the raw folder is symlinked to `/ess/data`
# and we don't care whether we access files through links or regular paths.
scicat_path = scicat_path.resolve()
raw_paths = [path.resolve() for path in raw_paths]
> assert scicat_path in raw_paths
E AssertionError: assert PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00001287.hdf') in [PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00002198.hdf'), PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00002191.hdf')]
tests/ingestor/ingestor_test.py:39: AssertionError
instrument = 'tbl', coda_proposal_id = '999999'
def test_file_found_by_scicat_is_consistent_with_manual(
instrument: str,
coda_proposal_id: str,
) -> None:
scicat_path = scicat.get_latest_coda_nexus_path(
proposal_id=coda_proposal_id, instrument=instrument
)
raw_paths = coda.get_latest_nexus_paths(
proposal_id=coda_proposal_id,
instrument=instrument,
n=2,
)
# Resolve symlinks because the raw folder is symlinked to `/ess/data`
# and we don't care whether we access files through links or regular paths.
scicat_path = scicat_path.resolve()
raw_paths = [path.resolve() for path in raw_paths]
> assert scicat_path in raw_paths
E AssertionError: assert PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00001287.hdf') in [PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00002051.hdf'), PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00002044.hdf')]
tests/ingestor/ingestor_test.py:39: AssertionError
instrument = 'tbl', coda_proposal_id = '999999'
def test_file_found_by_scicat_is_consistent_with_manual(
instrument: str,
coda_proposal_id: str,
) -> None:
scicat_path = scicat.get_latest_coda_nexus_path(
proposal_id=coda_proposal_id, instrument=instrument
)
raw_paths = coda.get_latest_nexus_paths(
proposal_id=coda_proposal_id,
instrument=instrument,
n=2,
)
# Resolve symlinks because the raw folder is symlinked to `/ess/data`
# and we don't care whether we access files through links or regular paths.
scicat_path = scicat_path.resolve()
raw_paths = [path.resolve() for path in raw_paths]
> assert scicat_path in raw_paths
E AssertionError: assert PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00001287.hdf') in [PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00001911.hdf'), PosixPath('/ess/raw/coda/2025/999999/raw/tbl_999999_00001904.hdf')]
tests/ingestor/ingestor_test.py:39: AssertionError
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None