MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / testWalk

Method testWalk

src/Test/TestSiteStorage.py:6–13  ·  view source on GitHub ↗
(self, site)

Source from the content-addressed store, hash-verified

4@pytest.mark.usefixtures("resetSettings")
5class TestSiteStorage:
6 def testWalk(self, site):
7 # Rootdir
8 walk_root = list(site.storage.walk(""))
9 assert "content.json" in walk_root
10 assert "css/all.css" in walk_root
11
12 # Subdir
13 assert list(site.storage.walk("data-default")) == ["data.json", "users/content-default.json"]
14
15 def testList(self, site):
16 # Rootdir

Callers

nothing calls this directly

Calls 1

walkMethod · 0.45

Tested by

no test coverage detected