Skip to content

Commit

Permalink
Updating a test
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Jul 24, 2024
1 parent 2b738e1 commit cd30aee
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 111 deletions.
Binary file modified .coverage
Binary file not shown.
1 change: 1 addition & 0 deletions src/posting/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ def __init__(
available_themes: dict[str, Theme] = {**BUILTIN_THEMES}
if settings.use_xresources:
available_themes |= load_xresources_themes()

available_themes |= load_user_themes()

self.themes = available_themes
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion tests/test_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ async def run_before(pilot: Pilot):
await pilot.press("ctrl+p")
await disable_blink_for_active_cursors(pilot)

assert snap_compare(POSTING_MAIN, run_before=run_before)
assert snap_compare(
POSTING_MAIN, run_before=run_before, terminal_size=(120, 34)
)

def test_can_type_to_filter_options(self, snap_compare):
"""Check that we can run a command from the command palette."""
Expand Down

0 comments on commit cd30aee

Please sign in to comment.