From 0cd8d344afae03e8b06d553ee33417cf19ae2f94 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 30 Jun 2023 09:41:01 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Remove=20`xfail`=20for=20replace=20?= =?UTF-8?q?config=20tests=20(#44)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/test_replace_config.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_replace_config.py b/tests/unit/test_replace_config.py index 4fa4fc2..8c024a1 100644 --- a/tests/unit/test_replace_config.py +++ b/tests/unit/test_replace_config.py @@ -130,7 +130,7 @@ class Config(SuperConfig): """ self.assertCodemod(before, after) - @pytest.mark.xfail(reason="Not implemented yet") + @pytest.mark.xfail(reason="Comments inside Config are swallowed.") def test_inner_comments(self) -> None: before = """ from pydantic import BaseModel @@ -176,7 +176,6 @@ class Config(SuperConfig): """ self.assertCodemod(before, after) - @pytest.mark.xfail(reason="Not implemented yet") def test_extra_enum(self) -> None: before = """ from pydantic import BaseModel, Extra @@ -186,7 +185,7 @@ class Config: extra = Extra.allow """ after = """ - from pydantic import BaseModel + from pydantic import ConfigDict, BaseModel class Potato(BaseModel): model_config = ConfigDict(extra="allow")