From f73b2e1a1400b9450d2deaa6ef3e5b574d514994 Mon Sep 17 00:00:00 2001 From: Kristoffer Andersson Date: Tue, 22 Oct 2024 13:27:22 +0200 Subject: [PATCH] test: update snapshots --- pyproject.toml | 5 +++++ tests/__snapshots__/test_graph.ambr | 1 + tests/__snapshots__/test_token.ambr | 1 + tests/test_shared/__snapshots__/test_ranges.ambr | 1 + uv.lock | 6 ++++++ 5 files changed, 14 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index e05f86f..c0b12ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,6 +38,11 @@ classifiers = [ "Topic :: Utilities", ] +[project.optional-dependencies] +dev = [ + "pytest>=8.3.3", +] + [build-system] requires = ["hatchling"] build-backend = "hatchling.build" diff --git a/tests/__snapshots__/test_graph.ambr b/tests/__snapshots__/test_graph.ambr index 1caef9b..94809cd 100644 --- a/tests/__snapshots__/test_graph.ambr +++ b/tests/__snapshots__/test_graph.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_unaligned_modify[0-0-new] list([ 'newtest ', diff --git a/tests/__snapshots__/test_token.ambr b/tests/__snapshots__/test_token.ambr index b71427c..1bd81b9 100644 --- a/tests/__snapshots__/test_token.ambr +++ b/tests/__snapshots__/test_token.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_tokenize[ -expected2] list([ ' ', diff --git a/tests/test_shared/__snapshots__/test_ranges.ambr b/tests/test_shared/__snapshots__/test_ranges.ambr index 55f2833..950975e 100644 --- a/tests/test_shared/__snapshots__/test_ranges.ambr +++ b/tests/test_shared/__snapshots__/test_ranges.ambr @@ -1,3 +1,4 @@ +# serializer version: 1 # name: test_edit_range[-01] dict({ 'from': 0, diff --git a/uv.lock b/uv.lock index 71bfcaa..55566aa 100644 --- a/uv.lock +++ b/uv.lock @@ -262,6 +262,11 @@ dependencies = [ { name = "typing-extensions" }, ] +[package.optional-dependencies] +dev = [ + { name = "pytest" }, +] + [package.dev-dependencies] dev = [ { name = "bump-my-version" }, @@ -276,6 +281,7 @@ dev = [ requires-dist = [ { name = "diff-match-patch", specifier = ">=20230430" }, { name = "more-itertools", specifier = ">=10.2.0" }, + { name = "pytest", marker = "extra == 'dev'", specifier = ">=8.3.3" }, { name = "strenum", specifier = ">=0.4.15" }, { name = "typing-extensions", specifier = ">=4.11.0" }, ]