Skip to content

Commit 319aa79

Browse files
Reformat
1 parent 309aa1a commit 319aa79

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

tests/_test_amulet_io.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ class EndianState(Enum):
55
Big = 0
66
Little = 1
77

8-
9-
def test_read_numeric(endian_data: EndianState, read_offset: bool, read_into: bool) -> None: ...
8+
def test_read_numeric(
9+
endian_data: EndianState, read_offset: bool, read_into: bool
10+
) -> None: ...
1011
def test_read_string(endian_data: EndianState, read_offset: bool) -> None: ...
1112
def test_write_numeric(endian_data: EndianState) -> None: ...
1213
def test_write_string(endian_data: EndianState) -> None: ...

tests/test_amulet_io.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
from unittest import TestCase
22

3-
from _test_amulet_io import test_read_numeric, test_read_string, EndianState, test_write_numeric, test_write_string
3+
from _test_amulet_io import (
4+
EndianState,
5+
test_read_numeric,
6+
test_read_string,
7+
test_write_numeric,
8+
test_write_string,
9+
)
410

511

612
class AmuletIOTestCase(TestCase):
713
def test_read(self) -> None:
814
for endian_state in (EndianState.Default, EndianState.Little, EndianState.Big):
915
for read_offset in (False, True):
1016
for read_into in (False, True):
11-
with self.subTest(endian_state=endian_state, read_offset=read_offset, read_into=read_into):
17+
with self.subTest(
18+
endian_state=endian_state,
19+
read_offset=read_offset,
20+
read_into=read_into,
21+
):
1222
test_read_numeric(endian_state, read_offset, read_into)
1323
with self.subTest(endian_state=endian_state, read_offset=read_offset):
1424
test_read_string(endian_state, read_offset)

0 commit comments

Comments
 (0)