()
| 4 | |
| 5 | |
| 6 | def 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 | |
| 24 | if __name__ == "__main__": |
no test coverage detected