MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / test_project

Function test_project

tests/test_editor_obfuscation.py:6–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def test_project():
7
8 path = Path(__file__).parent.parent / "intro for kelmare (yoda tour) (p2).sb3"
9
10 if path.exists():
11 print(f"loading cached {path}")
12 body = sa.editor.Project.from_sb3(path.open("rb"))
13 else:
14 print(f"Could not find {path}")
15 project = sa.get_project(1074489898)
16 body = project.body()
17
18 body.obfuscate()
19
20 # body.save_json("obfuscated")
21 body.export("obfuscated.sb3")
22
23
24if __name__ == "__main__":

Callers 1

Calls 4

from_sb3Method · 0.80
bodyMethod · 0.80
obfuscateMethod · 0.80
exportMethod · 0.45

Tested by

no test coverage detected