Skip to content

Commit

Permalink
Updating snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 15, 2024
1 parent 6174f6c commit 09d5362
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 483 deletions.
Binary file modified .coverage
Binary file not shown.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ test-snapshot-update:

.PHONY: test-ci
test-ci:
$(run) pytest --cov=posting --cov-report term-missing tests/ $(ARGS)
$(run) pytest --cov=posting tests/ --cov-report term-missing $(ARGS)

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
190 changes: 0 additions & 190 deletions tests/__snapshots__/test_snapshots/TestUrlBar.test_enter_url.svg

This file was deleted.

23 changes: 10 additions & 13 deletions tests/test_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ async def run_before(pilot: Pilot):
assert snap_compare(POSTING_MAIN, run_before=run_before)


# @pytest.mark.skip(reason="cursor blink is not working in textual 0.76")
@use_config("general.yaml")
class TestCommandPalette:
def test_loads_and_shows_discovery_options(self, snap_compare):
Expand Down Expand Up @@ -283,18 +282,18 @@ async def run_before(pilot: Pilot):

assert snap_compare(POSTING_MAIN, run_before=run_before, terminal_size=(80, 44))

@pytest.mark.skip(
reason="info tab contains a path, specific to the host the test runs on"
)
def test_request_loaded_into_view__info(self, snap_compare):
"""Check that the request info is loaded into the view."""
# @pytest.mark.skip(
# reason="info tab contains a path, specific to the host the test runs on"
# )
# def test_request_loaded_into_view__info(self, snap_compare):
# """Check that the request info is loaded into the view."""

async def run_before(pilot: Pilot):
await pilot.press("j")
await pilot.press("enter")
await pilot.press("ctrl+o", "t") # jump to 'Info' tab
# async def run_before(pilot: Pilot):
# await pilot.press("j")
# await pilot.press("enter")
# await pilot.press("ctrl+o", "t") # jump to 'Info' tab

assert snap_compare(POSTING_MAIN, run_before=run_before, terminal_size=(80, 44))
# assert snap_compare(POSTING_MAIN, run_before=run_before, terminal_size=(80, 44))

def test_request_loaded_into_view__options(self, snap_compare):
"""Check that the request options are loaded into the view."""
Expand Down Expand Up @@ -420,11 +419,9 @@ async def run_before(pilot: Pilot):
@patch_env("POSTING_FOCUS__ON_STARTUP", "collection")
@patch_env("POSTING_THEME_DIRECTORY", str(THEME_DIR.resolve()))
class TestCustomThemeSimple:
@pytest.mark.skip(reason="cursor blink is not working in textual 0.76")
def test_theme_set_on_startup_and_in_command_palette(self, snap_compare):
"""Check that the theme is set on startup and available in the command palette."""

@pytest.mark.skip(reason="cursor blink is not working in textual 0.76")
async def run_before(pilot: Pilot):
await pilot.press("ctrl+p")
await disable_blink_for_active_cursors(pilot)
Expand Down

0 comments on commit 09d5362

Please sign in to comment.