swh.dataset.test.test_edges module#

class swh.dataset.test.test_edges.FakeDiskSet[source]#

Bases: set

A set with an add() method that returns whether the item has been added or was already there. Used to replace disk sets in unittests.

add(v)[source]#

Add an element to a set.

This has no effect if the element is already present.

swh.dataset.test.test_edges.exporter()[source]#
swh.dataset.test.test_edges.binhash(s)[source]#
swh.dataset.test.test_edges.hexhash(s)[source]#
swh.dataset.test.test_edges.b64e(s: str) str[source]#
swh.dataset.test.test_edges.test_export_origin(exporter)[source]#
swh.dataset.test.test_edges.test_export_origin_visit_status(exporter)[source]#
swh.dataset.test.test_edges.test_export_snapshot_simple(exporter)[source]#
swh.dataset.test.test_edges.test_export_snapshot_aliases(exporter)[source]#
swh.dataset.test.test_edges.test_export_snapshot_no_pull_requests(exporter)[source]#
swh.dataset.test.test_edges.test_export_releases(exporter)[source]#
swh.dataset.test.test_edges.test_export_revision(exporter)[source]#
swh.dataset.test.test_edges.test_export_directory(exporter)[source]#
swh.dataset.test.test_edges.test_export_content(exporter)[source]#
swh.dataset.test.test_edges.zstwrite(fp, lines)[source]#
swh.dataset.test.test_edges.zstread(fp)[source]#
swh.dataset.test.test_edges.test_sort_pipeline(tmp_path)[source]#