fuse_mntdir = PosixPath('/tmp/tmp_m0tov06.swh-fuse-test')
def test_list_history(fuse_mntdir):
dir_path = fuse_mntdir / "archive" / REV_SMALL_HISTORY / "history"
history_meta = get_data_from_graph_archive(
REV_SMALL_HISTORY, GRAPH_API_REQUEST.HISTORY
)
expected = history_meta.split("\n")
actual = os.listdir(dir_path)
> assert set(actual) == set(expected)
E AssertionError: assert set() == {'swh:1:rev:0...42479ba', ...}
E Extra items in the right set:
E 'swh:1:rev:0016473117e4bc3c8959bf2fd49368844847d74c'
E 'swh:1:rev:241305caab232b04666704dc6853c41312cd283a'
E 'swh:1:rev:1c60be2f32f70f9181a261ae2c2b4efe353d0f85'
E 'swh:1:rev:e8759934711c70c50b5d616be22104e649abff58'
E 'swh:1:rev:25eb1fd3c9d997e460dff3e03d87e398e616c726'
E 'swh:1:rev:d6b7c96c3eb29b9244ece0c046d3f372ff432d04'...
E
E ...Full output truncated (84 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/fuse/tests/test_revision.py:47: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Oct 21 2020, 2:56 PM