Skip to content

Commit

Permalink
✅ Remove xfail for replace config tests (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Jun 30, 2023
1 parent 3508bfb commit 0cd8d34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/unit/test_replace_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit 0cd8d34

Please sign in to comment.