diff --git a/generators/python-v2/ast/src/__test__/__snapshots__/Class.test.ts.snap b/generators/python-v2/ast/src/__test__/__snapshots__/Class.test.ts.snap index cae5a93864f..47b6a103133 100644 --- a/generators/python-v2/ast/src/__test__/__snapshots__/Class.test.ts.snap +++ b/generators/python-v2/ast/src/__test__/__snapshots__/Class.test.ts.snap @@ -13,6 +13,13 @@ class MyDataClass: " `; +exports[`class > class with de-indented multi-line string 1`] = ` +"class MyClass: + multiline_string: str = """Hello + World""" +" +`; + exports[`class > fields with annotation and initializer 1`] = ` "class Car: color: str = "red" diff --git a/generators/python-v2/ast/src/__test__/__snapshots__/TypeInstantiation.test.ts.snap b/generators/python-v2/ast/src/__test__/__snapshots__/TypeInstantiation.test.ts.snap index c16086d6b6f..c570b6df22b 100644 --- a/generators/python-v2/ast/src/__test__/__snapshots__/TypeInstantiation.test.ts.snap +++ b/generators/python-v2/ast/src/__test__/__snapshots__/TypeInstantiation.test.ts.snap @@ -50,11 +50,32 @@ exports[`TypeInstantiation > set 1`] = ` " `; -exports[`TypeInstantiation > str 1`] = ` +exports[`TypeInstantiation > str > should render a basic string 1`] = ` ""hello" " `; +exports[`TypeInstantiation > str > should render a string containing newline characters 1`] = ` +"""" + +#### + +""" +" +`; + +exports[`TypeInstantiation > str > should render a string containing newline characters and quotes 1`] = ` +""""She said \\"Hi\\" +He said \\"bye\\" +She said \\"okay then\\" """ +" +`; + +exports[`TypeInstantiation > str > should render a string containing quote 1`] = ` +"'She said "hello!"' +" +`; + exports[`TypeInstantiation > tuple 1`] = ` "(1, "two", True) "