Skip to content

Commit

Permalink
Fix broken unittest (#1987)
Browse files Browse the repository at this point in the history
* Fix broken unittest

* Fix broken unittest

* Fix broken unittest
  • Loading branch information
koxudaxi authored Jun 3, 2024
1 parent e977ec9 commit 5bab627
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from argparse import Namespace
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import List
from unittest.mock import call

import black
Expand Down Expand Up @@ -2944,8 +2945,12 @@ def test_main_jsonschema_pattern():
],
)
@freeze_time('2019-07-26')
@pytest.mark.skipif(
black.__version__.split('.')[0] < '22',
reason="Installed black doesn't support Python version 3.10",
)
def test_main_openapi_pattern_with_lookaround_pydantic_v2(
expected_output: str, args: list[str]
expected_output: str, args: List[str]
):
with TemporaryDirectory() as output_dir:
output_file: Path = Path(output_dir) / 'output.py'
Expand Down

0 comments on commit 5bab627

Please sign in to comment.