From eff3c026baa2fb351b42d4b096f6b04ca89b8cb2 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 30 Jun 2023 09:40:33 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Remove=20xfail=20for=20replace=20co?= =?UTF-8?q?nfig=20tests?= 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")