From 57ae2e8d44d117581c2ecfeb0a70563ad55ca085 Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Fri, 8 Sep 2023 15:02:41 -0400 Subject: [PATCH] Clean up --- src/textual_paint/paint.py | 2 -- tests/test_snapshots.py | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/src/textual_paint/paint.py b/src/textual_paint/paint.py index a9e9f1e..2fdbe0c 100755 --- a/src/textual_paint/paint.py +++ b/src/textual_paint/paint.py @@ -30,7 +30,6 @@ from textual.filter import LineFilter from textual.geometry import Offset, Region, Size from textual.message import Message from textual.reactive import reactive, var -from textual.scrollbar import ScrollBar from textual.strip import Strip from textual.widget import Widget from textual.widgets import (Button, Header, Input, RadioButton, RadioSet, @@ -60,7 +59,6 @@ from textual_paint.localization.i18n import load_language, remove_hotkey from textual_paint.menus import Menu, MenuBar, MenuItem, Separator from textual_paint.palette_data import DEFAULT_PALETTE, IRC_PALETTE from textual_paint.rasterize_ansi_art import rasterize -from textual_paint.scrollbars import ASCIIScrollBarRender from textual_paint.wallpaper import get_config_dir, set_wallpaper from textual_paint.windows import (CharacterSelectorDialogWindow, DialogWindow, MessageBox, Window, get_paint_icon, diff --git a/tests/test_snapshots.py b/tests/test_snapshots.py index 6f6ae81..b893865 100644 --- a/tests/test_snapshots.py +++ b/tests/test_snapshots.py @@ -1,6 +1,4 @@ -import os from pathlib import Path -from typing import Literal import pytest @@ -12,17 +10,6 @@ GALLERY = APPS_DIR / "gallery.py" LARGER = (81, 38) """Large enough to show the entire paint app.""" -# def each_theme(func): -# @pytest.mark.parametrize("theme", ["light", "dark"]) -# @pytest.mark.parametrize("ui_charset", ["unicode", "ascii"]) -# def wrapper(*args, theme: Literal["light", "dark"], ui_charset: Literal["unicode", "ascii"], **kwargs): -# os.environ["PYTEST_TEXTUAL_PAINT_ARGS"] = f"--theme {theme}" + (" --ascii-only" if ui_charset == "ascii" else "") -# try: -# func(*args, **kwargs) -# finally: -# del os.environ["PYTEST_TEXTUAL_PAINT_ARGS"] -# return wrapper - @pytest.fixture(params=[ {"theme": "light", "ascii_only": False},