MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / setup_method

Method setup_method

scripts/tests/test_copydocs.py:69–77  ·  view source on GitHub ↗
(self, method)

Source from the content-addressed store, hash-verified

67
68class TestCopy:
69 def setup_method(self, method):
70 self.docs = [
71 {"key": "/works/OL1W", "revision": 1, "type": {"key": "/type/work"}},
72 {"key": "/works/OL1W", "revision": 2, "type": {"key": "/type/work"}},
73 {"key": "/works/OL1W", "revision": 3, "type": {"key": "/type/work"}},
74 {"key": "/books/OL2M", "revision": 1, "type": {"key": "/type/edition"}},
75 ]
76 self.src = FakeServer(self.docs)
77 self.dest = FakeServer([])
78
79 def test_basic_copy(self):
80 copy(self.src, self.dest, ["/books/OL2M"], "asdf")

Callers

nothing calls this directly

Calls 1

FakeServerClass · 0.85

Tested by

no test coverage detected