We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97d05f5 commit 7d08e0aCopy full SHA for 7d08e0a
tests/test_win32_console.py
@@ -19,6 +19,12 @@
19
SCREEN_HEIGHT = 30
20
DEFAULT_STYLE_ATTRIBUTE = 16
21
22
+ @dataclasses.dataclass
23
+ class StubScreenBufferInfo:
24
+ dwCursorPosition: COORD = COORD(CURSOR_X, CURSOR_Y)
25
+ dwSize: COORD = COORD(SCREEN_WIDTH, SCREEN_HEIGHT)
26
+ wAttributes: int = DEFAULT_STYLE_ATTRIBUTE
27
+
28
except ImportError:
29
pass
30
@@ -31,13 +37,6 @@ def test_windows_coordinates_to_ctype():
31
37
assert coord.Y == 1
32
38
33
39
34
-@dataclasses.dataclass
35
-class StubScreenBufferInfo:
36
- dwCursorPosition: COORD = COORD(CURSOR_X, CURSOR_Y)
- dwSize: COORD = COORD(SCREEN_WIDTH, SCREEN_HEIGHT)
- wAttributes: int = DEFAULT_STYLE_ATTRIBUTE
-
40
41
@pytest.fixture
42
def win32_handle():
43
handle = mock.sentinel
0 commit comments