Skip to content

Commit 931315f

Browse files
committed
lint test_main
1 parent f8b52ba commit 931315f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎tests/test_main.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,23 @@ def test_audioclip():
4747

4848
def test_mesh():
4949
env = UnityPy.load(os.path.join(SAMPLES, "xinzexi_2_n_tex"))
50-
with open(os.path.join(SAMPLES, 'xinzexi_2_n_tex_mesh'), 'rb') as f:
51-
wanted = f.read().replace(b'\r', b'')
50+
with open(os.path.join(SAMPLES, "xinzexi_2_n_tex_mesh"), "rb") as f:
51+
wanted = f.read().replace(b"\r", b"")
5252
for obj in env.objects:
5353
if obj.type == "Mesh":
5454
mesh = obj.read()
5555
data = mesh.export()
5656
if isinstance(data, str):
57-
data = data.encode('utf8').replace(b'\r', b'')
57+
data = data.encode("utf8").replace(b"\r", b"")
5858
assert data == wanted
5959

60+
6061
def test_read_typetree():
6162
env = UnityPy.load(SAMPLES)
6263
for obj in env.objects:
6364
obj.read_typetree()
6465

66+
6567
if __name__ == "__main__":
6668
for x in list(locals()):
6769
if str(x)[:4] == "test":

0 commit comments

Comments
 (0)