From a9f39e73e563998ebe6f2c53cab1fd50560d5d38 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Wed, 2 Oct 2024 09:50:27 +0100 Subject: [PATCH] Add pytest-textual-snapshot --- poetry.lock | 34 +++++++++++++++++++++++++++++++++- pyproject.toml | 1 + 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index a930f16..b81fa2e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -864,6 +864,24 @@ tomli = {version = ">=1", markers = "python_version < \"3.11\""} [package.extras] dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] +[[package]] +name = "pytest-textual-snapshot" +version = "1.0.0" +description = "Snapshot testing for Textual apps" +optional = false +python-versions = "<4.0.0,>=3.8.1" +files = [ + {file = "pytest_textual_snapshot-1.0.0-py3-none-any.whl", hash = "sha256:dd3a421491a6b1987ee7b4336d7f65299524924d2b0a297e69733b73b01570e1"}, + {file = "pytest_textual_snapshot-1.0.0.tar.gz", hash = "sha256:065217055ed833b8a16f2320a0613f39a0154e8d9fee63535f29f32c6414b9d7"}, +] + +[package.dependencies] +jinja2 = ">=3.0.0" +pytest = ">=8.0.0" +rich = ">=12.0.0" +syrupy = ">=4.0.0" +textual = ">=0.28.0" + [[package]] name = "rich" version = "13.9.1" @@ -894,6 +912,20 @@ files = [ {file = "shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de"}, ] +[[package]] +name = "syrupy" +version = "4.7.1" +description = "Pytest Snapshot Test Utility" +optional = false +python-versions = ">=3.8.1" +files = [ + {file = "syrupy-4.7.1-py3-none-any.whl", hash = "sha256:be002267a512a4bedddfae2e026c93df1ea928ae10baadc09640516923376d41"}, + {file = "syrupy-4.7.1.tar.gz", hash = "sha256:f9d4485f3f27d0e5df6ed299cac6fa32eb40a441915d988e82be5a4bdda335c8"}, +] + +[package.dependencies] +pytest = ">=7.0.0,<9.0.0" + [[package]] name = "textual" version = "0.81.0" @@ -1115,4 +1147,4 @@ typer = ["typer"] [metadata] lock-version = "2.0" python-versions = "^3.8.1" -content-hash = "d272583dc4d5c66860a6c9598af3aff782cd2e00ec562da90fce5a75f366910b" +content-hash = "6cf887336373bf48e88eac991b3b5b650300b81710fffb4789c97a1cae007af6" diff --git a/pyproject.toml b/pyproject.toml index 2d2c297..2502bdd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ mypy = "^1.2.0" black = "^23.3.0" pytest = ">=8.0.0" textual-dev = ">=1.0" +pytest-textual-snapshot = "^1.0.0" [build-system] requires = ["poetry-core"]