mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
pass size as a parameter
This commit is contained in:
@@ -41,7 +41,7 @@ def snap_compare(
|
||||
def compare(
|
||||
app_path: str,
|
||||
press: Iterable[str] = ("_",),
|
||||
terminal_size: tuple[int, int] = (24, 80),
|
||||
terminal_size: tuple[int, int] = (80, 24),
|
||||
) -> bool:
|
||||
"""
|
||||
Compare a current screenshot of the app running at app_path, with
|
||||
@@ -52,7 +52,7 @@ def snap_compare(
|
||||
Args:
|
||||
app_path (str): The path of the app.
|
||||
press (Iterable[str]): Key presses to run before taking screenshot. "_" is a short pause.
|
||||
terminal_size (tuple[int, int]): A pair of integers (rows, columns), representing terminal size.
|
||||
terminal_size (tuple[int, int]): A pair of integers (WIDTH, SIZE), representing terminal size.
|
||||
|
||||
Returns:
|
||||
bool: True if the screenshot matches the snapshot.
|
||||
|
||||
Reference in New Issue
Block a user