mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Update pre-commit-config to exclude snapshot tests
This commit is contained in:
@@ -13,3 +13,4 @@ repos:
|
||||
hooks:
|
||||
- id: black
|
||||
exclude: ^tests/
|
||||
exclude: ^tests/snapshot_tests
|
||||
|
||||
@@ -46,7 +46,7 @@ def format_svg(source, language, css_class, options, md, attrs, **kwargs) -> str
|
||||
|
||||
def take_svg_screenshot(
|
||||
app_path: str,
|
||||
press: Iterable[str] = ("_",),
|
||||
press: Iterable[str] = ("_", "_"),
|
||||
title: str | None = None,
|
||||
terminal_size: tuple[int, int] = (24, 80),
|
||||
) -> str:
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -138,7 +138,7 @@ def pytest_terminal_summary(
|
||||
.. versionadded:: 4.2
|
||||
The ``config`` parameter.
|
||||
"""
|
||||
diffs = config._textual_snapshots
|
||||
diffs = getattr(config, "_textual_snapshots", None)
|
||||
if diffs:
|
||||
snapshot_report_location = config._textual_snapshot_html_report
|
||||
console = Console()
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user