From 857c852bb8a472f5c24183c8e7570930caf59a4b Mon Sep 17 00:00:00 2001 From: Frank Hoffmann <15r10nk-git@polarbit.de> Date: Mon, 22 Jul 2024 21:48:36 +0200 Subject: [PATCH] refactor: renamed extras to extra --- docs/{extras.md => extra.md} | 2 +- mkdocs.yml | 2 +- src/inline_snapshot/{extras.py => extra.py} | 4 ++-- tests/test_external.py | 2 +- tests/test_raises.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename docs/{extras.md => extra.md} (77%) rename src/inline_snapshot/{extras.py => extra.py} (93%) diff --git a/docs/extras.md b/docs/extra.md similarity index 77% rename from docs/extras.md rename to docs/extra.md index 3721feb..a1b4d34 100644 --- a/docs/extras.md +++ b/docs/extra.md @@ -1,6 +1,6 @@ -::: inline_snapshot.extras +::: inline_snapshot.extra options: heading_level: 1 show_root_heading: true diff --git a/mkdocs.yml b/mkdocs.yml index 5039775..3016f7b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -37,8 +37,8 @@ nav: - snapshot()[key]: getitem_snapshot.md - outsource(data): outsource.md - '@customize_repr': customize_repr.md - - extras: extras.md - types: types.md + - extensions: extra.md - pytest integration: pytest.md - Categories: categories.md - Configuration: configuration.md diff --git a/src/inline_snapshot/extras.py b/src/inline_snapshot/extra.py similarity index 93% rename from src/inline_snapshot/extras.py rename to src/inline_snapshot/extra.py index 30d8d55..b5b2a65 100644 --- a/src/inline_snapshot/extras.py +++ b/src/inline_snapshot/extra.py @@ -22,7 +22,7 @@ def raises(exception: Snapshot[str]): ```python from inline_snapshot import snapshot - from inline_snapshot.extras import raises + from inline_snapshot.extra import raises def test_raises(): @@ -35,7 +35,7 @@ def test_raises(): ```python from inline_snapshot import snapshot - from inline_snapshot.extras import raises + from inline_snapshot.extra import raises def test_raises(): diff --git a/tests/test_external.py b/tests/test_external.py index 5da0fde..acab3b7 100644 --- a/tests/test_external.py +++ b/tests/test_external.py @@ -3,7 +3,7 @@ from inline_snapshot import external from inline_snapshot import outsource from inline_snapshot import snapshot -from inline_snapshot.extras import raises +from inline_snapshot.extra import raises from tests.utils import config diff --git a/tests/test_raises.py b/tests/test_raises.py index 4ec7b80..09176b0 100644 --- a/tests/test_raises.py +++ b/tests/test_raises.py @@ -1,5 +1,5 @@ from inline_snapshot import snapshot -from inline_snapshot.extras import raises +from inline_snapshot.extra import raises def test_raises():