Skip to content

Commit

Permalink
Fix test for py>3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdandm committed Mar 10, 2022
1 parent 6674f7f commit fe0441e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_code_generation/test_models_code_generator.py
Expand Up @@ -171,7 +171,7 @@ class Test:
"f": StringLiteral({'with \\ // slash'}),
}),
"fields": {
"imports": "from typing_extensions import Literal",
"imports": f"{LITERAL_SOURCE} import Literal",
"fields": [
'a: Literal["basic"]',
'b: Literal["with space"]',
Expand All @@ -181,8 +181,8 @@ class Test:
'f: Literal["with \\\\ // slash"]'
]
},
"generated": trim("""
from typing_extensions import Literal
"generated": trim(f"""
{LITERAL_SOURCE} import Literal
class Test:
Expand Down

0 comments on commit fe0441e

Please sign in to comment.