From 80bcfd1ca3aa1ce337105b0405d14522de9ca1ad Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Tue, 23 Jul 2024 18:12:53 +0300 Subject: [PATCH] tests: refactor --- tests/test_renderer.py | 2 +- .../dummytheme/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_renderer.py b/tests/test_renderer.py index ac5d4e29..e73761fd 100644 --- a/tests/test_renderer.py +++ b/tests/test_renderer.py @@ -506,7 +506,7 @@ def test_copy_theme_files_to_output_directory_custom_theme( init_file.write_text( "from typing import Literal\n\nimport pydantic\n\n\nclass" " DummythemeThemeOptions(pydantic.BaseModel):\n theme:" - " Literal['dummytheme']\n" + ' Literal["dummytheme"]\n' ) # create reference_directory_path: diff --git a/tests/testdata/test_copy_theme_files_to_output_directory_custom_theme/dummytheme/__init__.py b/tests/testdata/test_copy_theme_files_to_output_directory_custom_theme/dummytheme/__init__.py index ce07e492..cccf3f9e 100644 --- a/tests/testdata/test_copy_theme_files_to_output_directory_custom_theme/dummytheme/__init__.py +++ b/tests/testdata/test_copy_theme_files_to_output_directory_custom_theme/dummytheme/__init__.py @@ -4,4 +4,4 @@ import pydantic class DummythemeThemeOptions(pydantic.BaseModel): - theme: Literal['dummytheme'] + theme: Literal["dummytheme"]