This commit is contained in:
Isaiah Odhner 2023-09-08 15:02:41 -04:00
parent 3c2a03ac82
commit 57ae2e8d44
2 changed files with 0 additions and 15 deletions

View File

@ -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,

View File

@ -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},