@alloy-js/python 0.5.0-dev.0 → 0.5.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/dist/dev/src/builtins/python.js +46 -0
  2. package/dist/dev/src/builtins/python.js.map +1 -1
  3. package/dist/dev/src/components/ClassDeclaration.js +19 -10
  4. package/dist/dev/src/components/ClassDeclaration.js.map +1 -1
  5. package/dist/dev/src/components/ClassMethodDeclaration.js +20 -5
  6. package/dist/dev/src/components/ClassMethodDeclaration.js.map +1 -1
  7. package/dist/dev/src/components/DataclassDeclaration.js +14 -12
  8. package/dist/dev/src/components/DataclassDeclaration.js.map +1 -1
  9. package/dist/dev/src/components/DecoratorList.js +55 -0
  10. package/dist/dev/src/components/DecoratorList.js.map +1 -0
  11. package/dist/dev/src/components/EnumDeclaration.js +21 -12
  12. package/dist/dev/src/components/EnumDeclaration.js.map +1 -1
  13. package/dist/dev/src/components/FunctionBase.js +21 -10
  14. package/dist/dev/src/components/FunctionBase.js.map +1 -1
  15. package/dist/dev/src/components/FutureStatement.js +1 -1
  16. package/dist/dev/src/components/MethodBase.js +16 -4
  17. package/dist/dev/src/components/MethodBase.js.map +1 -1
  18. package/dist/dev/src/components/PropertyDeclaration.js +68 -17
  19. package/dist/dev/src/components/PropertyDeclaration.js.map +1 -1
  20. package/dist/dev/src/components/PydanticClassDeclaration.js +136 -0
  21. package/dist/dev/src/components/PydanticClassDeclaration.js.map +1 -0
  22. package/dist/dev/src/components/SourceFile.js +44 -32
  23. package/dist/dev/src/components/SourceFile.js.map +1 -1
  24. package/dist/dev/src/components/StaticMethodDeclaration.js +19 -5
  25. package/dist/dev/src/components/StaticMethodDeclaration.js.map +1 -1
  26. package/dist/dev/src/components/index.js +1 -0
  27. package/dist/dev/src/components/index.js.map +1 -1
  28. package/dist/dev/test/callsignatures.test.js +471 -297
  29. package/dist/dev/test/callsignatures.test.js.map +1 -1
  30. package/dist/dev/test/class-method-declaration.test.js +21 -10
  31. package/dist/dev/test/class-method-declaration.test.js.map +1 -1
  32. package/dist/dev/test/classdeclarations.test.js +480 -381
  33. package/dist/dev/test/classdeclarations.test.js.map +1 -1
  34. package/dist/dev/test/classinstantiations.test.js +201 -168
  35. package/dist/dev/test/classinstantiations.test.js.map +1 -1
  36. package/dist/dev/test/constructordeclaration.test.js +22 -11
  37. package/dist/dev/test/constructordeclaration.test.js.map +1 -1
  38. package/dist/dev/test/dataclassdeclarations.test.js +345 -358
  39. package/dist/dev/test/dataclassdeclarations.test.js.map +1 -1
  40. package/dist/dev/test/decoratorlist.test.js +131 -0
  41. package/dist/dev/test/decoratorlist.test.js.map +1 -0
  42. package/dist/dev/test/dundermethoddeclaration.test.js +22 -11
  43. package/dist/dev/test/dundermethoddeclaration.test.js.map +1 -1
  44. package/dist/dev/test/enums.test.js +231 -166
  45. package/dist/dev/test/enums.test.js.map +1 -1
  46. package/dist/dev/test/externals.test.js +57 -45
  47. package/dist/dev/test/externals.test.js.map +1 -1
  48. package/dist/dev/test/factories.test.js +124 -50
  49. package/dist/dev/test/factories.test.js.map +1 -1
  50. package/dist/dev/test/functioncallexpressions.test.js +199 -164
  51. package/dist/dev/test/functioncallexpressions.test.js.map +1 -1
  52. package/dist/dev/test/functiondeclaration.test.js +452 -265
  53. package/dist/dev/test/functiondeclaration.test.js.map +1 -1
  54. package/dist/dev/test/imports.test.js +273 -221
  55. package/dist/dev/test/imports.test.js.map +1 -1
  56. package/dist/dev/test/memberexpressions.test.js +1237 -972
  57. package/dist/dev/test/memberexpressions.test.js.map +1 -1
  58. package/dist/dev/test/methoddeclaration.test.js +200 -45
  59. package/dist/dev/test/methoddeclaration.test.js.map +1 -1
  60. package/dist/dev/test/namepolicies.test.js +130 -94
  61. package/dist/dev/test/namepolicies.test.js.map +1 -1
  62. package/dist/dev/test/propertydeclaration.test.js +177 -46
  63. package/dist/dev/test/propertydeclaration.test.js.map +1 -1
  64. package/dist/dev/test/pydanticclassdeclarations.test.js +1089 -0
  65. package/dist/dev/test/pydanticclassdeclarations.test.js.map +1 -0
  66. package/dist/dev/test/pydocs.test.js +888 -715
  67. package/dist/dev/test/pydocs.test.js.map +1 -1
  68. package/dist/dev/test/references.test.js +42 -35
  69. package/dist/dev/test/references.test.js.map +1 -1
  70. package/dist/dev/test/sourcefiles.test.js +1109 -841
  71. package/dist/dev/test/sourcefiles.test.js.map +1 -1
  72. package/dist/dev/test/staticmethoddeclaration.test.js +21 -10
  73. package/dist/dev/test/staticmethoddeclaration.test.js.map +1 -1
  74. package/dist/dev/test/type-checking-imports.test.js +408 -359
  75. package/dist/dev/test/type-checking-imports.test.js.map +1 -1
  76. package/dist/dev/test/typereference.test.js +55 -40
  77. package/dist/dev/test/typereference.test.js.map +1 -1
  78. package/dist/dev/test/uniontypeexpression.test.js +222 -146
  79. package/dist/dev/test/uniontypeexpression.test.js.map +1 -1
  80. package/dist/dev/test/utils.js +39 -77
  81. package/dist/dev/test/utils.js.map +1 -1
  82. package/dist/dev/test/values.test.js +237 -101
  83. package/dist/dev/test/values.test.js.map +1 -1
  84. package/dist/dev/test/variables.test.js +321 -203
  85. package/dist/dev/test/variables.test.js.map +1 -1
  86. package/dist/dev/test/vitest.setup.js +2 -0
  87. package/dist/dev/test/vitest.setup.js.map +1 -0
  88. package/dist/src/builtins/python.d.ts +30 -0
  89. package/dist/src/builtins/python.d.ts.map +1 -1
  90. package/dist/src/builtins/python.js +46 -0
  91. package/dist/src/builtins/python.js.map +1 -1
  92. package/dist/src/components/ClassDeclaration.d.ts +21 -0
  93. package/dist/src/components/ClassDeclaration.d.ts.map +1 -1
  94. package/dist/src/components/ClassDeclaration.js +6 -1
  95. package/dist/src/components/ClassDeclaration.js.map +1 -1
  96. package/dist/src/components/ClassMethodDeclaration.d.ts +5 -1
  97. package/dist/src/components/ClassMethodDeclaration.d.ts.map +1 -1
  98. package/dist/src/components/ClassMethodDeclaration.js +14 -3
  99. package/dist/src/components/ClassMethodDeclaration.js.map +1 -1
  100. package/dist/src/components/DataclassDeclaration.d.ts.map +1 -1
  101. package/dist/src/components/DataclassDeclaration.js +10 -4
  102. package/dist/src/components/DataclassDeclaration.js.map +1 -1
  103. package/dist/src/components/DecoratorList.d.ts +43 -0
  104. package/dist/src/components/DecoratorList.d.ts.map +1 -0
  105. package/dist/src/components/DecoratorList.js +47 -0
  106. package/dist/src/components/DecoratorList.js.map +1 -0
  107. package/dist/src/components/EnumDeclaration.d.ts +9 -0
  108. package/dist/src/components/EnumDeclaration.d.ts.map +1 -1
  109. package/dist/src/components/EnumDeclaration.js +6 -1
  110. package/dist/src/components/EnumDeclaration.js.map +1 -1
  111. package/dist/src/components/FunctionBase.d.ts +31 -1
  112. package/dist/src/components/FunctionBase.d.ts.map +1 -1
  113. package/dist/src/components/FunctionBase.js +9 -2
  114. package/dist/src/components/FunctionBase.js.map +1 -1
  115. package/dist/src/components/FutureStatement.d.ts +1 -1
  116. package/dist/src/components/FutureStatement.js +1 -1
  117. package/dist/src/components/MethodBase.d.ts.map +1 -1
  118. package/dist/src/components/MethodBase.js +10 -2
  119. package/dist/src/components/MethodBase.js.map +1 -1
  120. package/dist/src/components/PropertyDeclaration.d.ts +29 -0
  121. package/dist/src/components/PropertyDeclaration.d.ts.map +1 -1
  122. package/dist/src/components/PropertyDeclaration.js +48 -1
  123. package/dist/src/components/PropertyDeclaration.js.map +1 -1
  124. package/dist/src/components/PydanticClassDeclaration.d.ts +120 -0
  125. package/dist/src/components/PydanticClassDeclaration.d.ts.map +1 -0
  126. package/dist/src/components/PydanticClassDeclaration.js +116 -0
  127. package/dist/src/components/PydanticClassDeclaration.js.map +1 -0
  128. package/dist/src/components/SourceFile.d.ts +2 -2
  129. package/dist/src/components/SourceFile.d.ts.map +1 -1
  130. package/dist/src/components/SourceFile.js +12 -0
  131. package/dist/src/components/SourceFile.js.map +1 -1
  132. package/dist/src/components/StaticMethodDeclaration.d.ts +3 -0
  133. package/dist/src/components/StaticMethodDeclaration.d.ts.map +1 -1
  134. package/dist/src/components/StaticMethodDeclaration.js +13 -3
  135. package/dist/src/components/StaticMethodDeclaration.js.map +1 -1
  136. package/dist/src/components/index.d.ts +1 -0
  137. package/dist/src/components/index.d.ts.map +1 -1
  138. package/dist/src/components/index.js +1 -0
  139. package/dist/src/components/index.js.map +1 -1
  140. package/dist/test/callsignatures.test.js +346 -272
  141. package/dist/test/callsignatures.test.js.map +1 -1
  142. package/dist/test/class-method-declaration.test.js +7 -4
  143. package/dist/test/class-method-declaration.test.js.map +1 -1
  144. package/dist/test/classdeclarations.test.js +316 -277
  145. package/dist/test/classdeclarations.test.js.map +1 -1
  146. package/dist/test/classinstantiations.test.js +112 -103
  147. package/dist/test/classinstantiations.test.js.map +1 -1
  148. package/dist/test/constructordeclaration.test.js +7 -4
  149. package/dist/test/constructordeclaration.test.js.map +1 -1
  150. package/dist/test/dataclassdeclarations.test.js +153 -178
  151. package/dist/test/dataclassdeclarations.test.js.map +1 -1
  152. package/dist/test/decoratorlist.test.d.ts +2 -0
  153. package/dist/test/decoratorlist.test.d.ts.map +1 -0
  154. package/dist/test/decoratorlist.test.js +83 -0
  155. package/dist/test/decoratorlist.test.js.map +1 -0
  156. package/dist/test/dundermethoddeclaration.test.js +7 -4
  157. package/dist/test/dundermethoddeclaration.test.js.map +1 -1
  158. package/dist/test/enums.test.js +172 -143
  159. package/dist/test/enums.test.js.map +1 -1
  160. package/dist/test/externals.test.js +24 -24
  161. package/dist/test/externals.test.js.map +1 -1
  162. package/dist/test/factories.test.js +75 -33
  163. package/dist/test/factories.test.js.map +1 -1
  164. package/dist/test/functioncallexpressions.test.js +117 -106
  165. package/dist/test/functioncallexpressions.test.js.map +1 -1
  166. package/dist/test/functiondeclaration.test.js +256 -173
  167. package/dist/test/functiondeclaration.test.js.map +1 -1
  168. package/dist/test/imports.test.js +171 -143
  169. package/dist/test/imports.test.js.map +1 -1
  170. package/dist/test/memberexpressions.test.js +582 -453
  171. package/dist/test/memberexpressions.test.js.map +1 -1
  172. package/dist/test/methoddeclaration.test.js +106 -19
  173. package/dist/test/methoddeclaration.test.js.map +1 -1
  174. package/dist/test/namepolicies.test.js +90 -78
  175. package/dist/test/namepolicies.test.js.map +1 -1
  176. package/dist/test/propertydeclaration.test.js +90 -15
  177. package/dist/test/propertydeclaration.test.js.map +1 -1
  178. package/dist/test/pydanticclassdeclarations.test.d.ts +2 -0
  179. package/dist/test/pydanticclassdeclarations.test.d.ts.map +1 -0
  180. package/dist/test/pydanticclassdeclarations.test.js +773 -0
  181. package/dist/test/pydanticclassdeclarations.test.js.map +1 -0
  182. package/dist/test/pydocs.test.js +573 -532
  183. package/dist/test/pydocs.test.js.map +1 -1
  184. package/dist/test/references.test.js +31 -28
  185. package/dist/test/references.test.js.map +1 -1
  186. package/dist/test/sourcefiles.test.js +700 -580
  187. package/dist/test/sourcefiles.test.js.map +1 -1
  188. package/dist/test/staticmethoddeclaration.test.js +7 -4
  189. package/dist/test/staticmethoddeclaration.test.js.map +1 -1
  190. package/dist/test/type-checking-imports.test.js +297 -284
  191. package/dist/test/type-checking-imports.test.js.map +1 -1
  192. package/dist/test/typereference.test.js +29 -22
  193. package/dist/test/typereference.test.js.map +1 -1
  194. package/dist/test/uniontypeexpression.test.js +124 -88
  195. package/dist/test/uniontypeexpression.test.js.map +1 -1
  196. package/dist/test/utils.d.ts +10 -17
  197. package/dist/test/utils.d.ts.map +1 -1
  198. package/dist/test/utils.js +32 -74
  199. package/dist/test/utils.js.map +1 -1
  200. package/dist/test/values.test.js +135 -67
  201. package/dist/test/values.test.js.map +1 -1
  202. package/dist/test/variables.test.js +201 -151
  203. package/dist/test/variables.test.js.map +1 -1
  204. package/dist/test/vitest.setup.d.ts +2 -0
  205. package/dist/test/vitest.setup.d.ts.map +1 -0
  206. package/dist/test/vitest.setup.js +2 -0
  207. package/dist/test/vitest.setup.js.map +1 -0
  208. package/dist/tsconfig.tsbuildinfo +1 -1
  209. package/docs/api/components/ClassDeclaration.md +10 -7
  210. package/docs/api/components/ClassEnumDeclaration.md +9 -6
  211. package/docs/api/components/ClassMethodDeclaration.md +7 -5
  212. package/docs/api/components/DataclassDeclaration.md +9 -5
  213. package/docs/api/components/DunderMethodDeclaration.md +7 -5
  214. package/docs/api/components/FunctionDeclaration.md +9 -5
  215. package/docs/api/components/FutureStatement.md +1 -1
  216. package/docs/api/components/MethodDeclaration.md +11 -6
  217. package/docs/api/components/PropertyDeclaration.md +11 -8
  218. package/docs/api/components/PydanticClassDeclaration.md +146 -0
  219. package/docs/api/components/SourceFile.md +20 -8
  220. package/docs/api/components/StaticMethodDeclaration.md +7 -5
  221. package/docs/api/components/index.md +1 -0
  222. package/docs/api/index.md +3 -3
  223. package/docs/api/types/CommonFunctionProps.md +4 -3
  224. package/docs/api/types/PydanticModelConfigDictProps.md +32 -0
  225. package/docs/api/types/index.md +1 -0
  226. package/docs/api/variables/index.md +3 -0
  227. package/docs/api/variables/pydanticModule.md +27 -0
  228. package/docs/api/variables/pydanticSettingsModule.md +7 -0
  229. package/docs/api/variables/typingModule.md +9 -0
  230. package/package.json +4 -4
  231. package/src/builtins/python.ts +539 -1
  232. package/src/components/ClassDeclaration.tsx +23 -0
  233. package/src/components/ClassMethodDeclaration.tsx +9 -1
  234. package/src/components/DataclassDeclaration.tsx +18 -11
  235. package/src/components/DecoratorList.tsx +50 -0
  236. package/src/components/EnumDeclaration.tsx +11 -0
  237. package/src/components/FunctionBase.tsx +34 -3
  238. package/src/components/FutureStatement.tsx +1 -1
  239. package/src/components/MethodBase.tsx +6 -2
  240. package/src/components/PropertyDeclaration.tsx +48 -1
  241. package/src/components/PydanticClassDeclaration.tsx +222 -0
  242. package/src/components/SourceFile.tsx +6 -1
  243. package/src/components/StaticMethodDeclaration.tsx +7 -1
  244. package/src/components/index.ts +1 -0
  245. package/temp/api.json +1158 -86
  246. package/test/callsignatures.test.tsx +309 -283
  247. package/test/class-method-declaration.test.tsx +3 -4
  248. package/test/classdeclarations.test.tsx +277 -235
  249. package/test/classinstantiations.test.tsx +115 -109
  250. package/test/constructordeclaration.test.tsx +9 -6
  251. package/test/dataclassdeclarations.test.tsx +256 -349
  252. package/test/decoratorlist.test.tsx +114 -0
  253. package/test/dundermethoddeclaration.test.tsx +3 -4
  254. package/test/enums.test.tsx +84 -71
  255. package/test/externals.test.tsx +25 -25
  256. package/test/factories.test.tsx +64 -22
  257. package/test/functioncallexpressions.test.tsx +123 -109
  258. package/test/functiondeclaration.test.tsx +218 -140
  259. package/test/imports.test.tsx +119 -91
  260. package/test/memberexpressions.test.tsx +265 -207
  261. package/test/methoddeclaration.test.tsx +115 -24
  262. package/test/namepolicies.test.tsx +69 -69
  263. package/test/propertydeclaration.test.tsx +71 -7
  264. package/test/pydanticclassdeclarations.test.tsx +704 -0
  265. package/test/pydocs.test.tsx +531 -579
  266. package/test/references.test.tsx +24 -23
  267. package/test/sourcefiles.test.tsx +527 -492
  268. package/test/staticmethoddeclaration.test.tsx +3 -4
  269. package/test/type-checking-imports.test.tsx +206 -218
  270. package/test/typereference.test.tsx +15 -12
  271. package/test/uniontypeexpression.test.tsx +74 -61
  272. package/test/utils.tsx +26 -110
  273. package/test/values.test.tsx +82 -32
  274. package/test/variables.test.tsx +162 -142
  275. package/test/vitest.setup.ts +1 -0
  276. package/vitest.config.ts +3 -0
@@ -1,167 +1,208 @@
1
1
  import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { code, namekey, refkey } from "@alloy-js/core";
3
- import { d } from "@alloy-js/core/testing";
2
+ import { code, namekey, refkey, render } from "@alloy-js/core";
4
3
  import { describe, expect, it } from "vitest";
5
4
  import * as py from "../src/index.js";
6
5
  import { abcModule } from "../src/index.js";
7
- import { assertFileContents, toSourceText, toSourceTextMultiple } from "./utils.js";
6
+ import { TestOutput, TestOutputDirectory } from "./utils.js";
8
7
  describe("Function Declaration", () => {
8
+ it("renders multiple decorators above def without blank lines", () => {
9
+ expect(_$createComponent(TestOutput, {
10
+ get children() {
11
+ return _$createComponent(py.FunctionDeclaration, {
12
+ name: "f",
13
+ decorators: ["@a", "@b", "@c"],
14
+ children: "pass"
15
+ });
16
+ }
17
+ })).toRenderTo(`
18
+ @a
19
+ @b
20
+ @c
21
+ def f():
22
+ pass
23
+
24
+ `);
25
+ });
9
26
  it("renders a function with no body as 'pass'", () => {
10
- const result = toSourceText([_$createComponent(py.FunctionDeclaration, {
11
- name: "foo"
12
- })]);
13
- expect(result).toRenderTo(d`
27
+ expect(_$createComponent(TestOutput, {
28
+ get children() {
29
+ return _$createComponent(py.FunctionDeclaration, {
30
+ name: "foo"
31
+ });
32
+ }
33
+ })).toRenderTo(`
14
34
  def foo():
15
35
  pass
16
36
 
17
-
18
37
  `);
19
38
  });
20
39
  it("takes a namekey", () => {
21
- const result = toSourceText([_$createComponent(py.FunctionDeclaration, {
22
- get name() {
23
- return namekey("foo-bar");
40
+ expect(_$createComponent(TestOutput, {
41
+ get children() {
42
+ return _$createComponent(py.FunctionDeclaration, {
43
+ get name() {
44
+ return namekey("foo-bar");
45
+ }
46
+ });
24
47
  }
25
- })]);
26
- expect(result).toRenderTo(d`
48
+ })).toRenderTo(`
27
49
  def foo_bar():
28
50
  pass
29
51
 
30
-
31
52
  `);
32
53
  });
33
54
  it("renders a function with no body as 'pass' with return type", () => {
34
- const result = toSourceText([_$createComponent(py.FunctionDeclaration, {
35
- name: "foo",
36
- returnType: "int"
37
- })]);
38
- expect(result).toRenderTo(d`
55
+ expect(_$createComponent(TestOutput, {
56
+ get children() {
57
+ return _$createComponent(py.FunctionDeclaration, {
58
+ name: "foo",
59
+ returnType: "int"
60
+ });
61
+ }
62
+ })).toRenderTo(`
39
63
  def foo() -> int:
40
64
  pass
41
65
 
42
-
43
66
  `);
44
67
  });
45
68
  it("renders a function that calls another function", () => {
46
69
  const refkeyFoo = refkey();
47
- const result = toSourceText([_$createComponent(py.StatementList, {
70
+ expect(_$createComponent(TestOutput, {
48
71
  get children() {
49
- return [_$createComponent(py.FunctionDeclaration, {
50
- name: "foo",
51
- returnType: "int",
52
- refkey: refkeyFoo
53
- }), _$createComponent(py.FunctionDeclaration, {
54
- name: "bar",
55
- returnType: "int",
72
+ return _$createComponent(py.StatementList, {
56
73
  get children() {
57
- return _$createComponent(py.VariableDeclaration, {
58
- name: "result",
59
- type: "int",
60
- get initializer() {
61
- return _$createComponent(py.FunctionCallExpression, {
62
- target: refkeyFoo,
63
- args: []
74
+ return [_$createComponent(py.FunctionDeclaration, {
75
+ name: "foo",
76
+ returnType: "int",
77
+ refkey: refkeyFoo
78
+ }), _$createComponent(py.FunctionDeclaration, {
79
+ name: "bar",
80
+ returnType: "int",
81
+ get children() {
82
+ return _$createComponent(py.VariableDeclaration, {
83
+ name: "result",
84
+ type: "int",
85
+ get initializer() {
86
+ return _$createComponent(py.FunctionCallExpression, {
87
+ target: refkeyFoo,
88
+ args: []
89
+ });
90
+ }
64
91
  });
65
92
  }
66
- });
93
+ })];
67
94
  }
68
- })];
95
+ });
69
96
  }
70
- })]);
71
- expect(result).toRenderTo(d`
97
+ })).toRenderTo(`
72
98
  def foo() -> int:
73
99
  pass
74
100
 
75
101
  def bar() -> int:
76
102
  result: int = foo()
77
103
 
78
-
79
104
  `);
80
105
  });
81
106
  it("renders a function with parameters", () => {
82
- const result = toSourceText([_$createComponent(py.FunctionDeclaration, {
83
- name: "baz",
84
- parameters: [{
85
- name: "x",
86
- type: "int"
87
- }, {
88
- name: "y",
89
- default: 0
90
- }, {
91
- name: "z",
92
- type: "int",
93
- default: 42
94
- }],
95
- args: true,
96
- kwargs: true,
97
- children: "print(x, y)"
98
- })]);
99
- expect(result).toRenderTo(d`
107
+ expect(_$createComponent(TestOutput, {
108
+ get children() {
109
+ return _$createComponent(py.FunctionDeclaration, {
110
+ name: "baz",
111
+ parameters: [{
112
+ name: "x",
113
+ type: "int"
114
+ }, {
115
+ name: "y",
116
+ default: 0
117
+ }, {
118
+ name: "z",
119
+ type: "int",
120
+ default: 42
121
+ }],
122
+ args: true,
123
+ kwargs: true,
124
+ children: "print(x, y)"
125
+ });
126
+ }
127
+ })).toRenderTo(`
100
128
  def baz(x: int, y=0, z: int = 42, *args, **kwargs):
101
129
  print(x, y)
102
130
 
103
-
104
131
  `);
105
132
  });
106
133
  it("renders an __init__ function with no body as 'pass'", () => {
107
- const result = toSourceText([_$createComponent(py.ClassDeclaration, {
108
- name: "MyClass",
134
+ expect(_$createComponent(TestOutput, {
109
135
  get children() {
110
- return _$createComponent(py.DunderMethodDeclaration, {
111
- name: "__init__",
112
- parameters: [{
113
- name: "x"
114
- }]
136
+ return _$createComponent(py.ClassDeclaration, {
137
+ name: "MyClass",
138
+ get children() {
139
+ return _$createComponent(py.DunderMethodDeclaration, {
140
+ name: "__init__",
141
+ parameters: [{
142
+ name: "x"
143
+ }]
144
+ });
145
+ }
115
146
  });
116
147
  }
117
- })]);
118
- expect(result).toRenderTo(d`
148
+ })).toRenderTo(`
119
149
  class MyClass:
120
150
  def __init__(self, x):
121
151
  pass
122
152
 
123
-
124
-
153
+
125
154
  `);
126
155
  });
127
156
  it("can be an async function", () => {
128
- expect(toSourceText([_$createComponent(py.FunctionDeclaration, {
129
- async: true,
130
- name: "foo"
131
- })])).toBe(d`
157
+ expect(_$createComponent(TestOutput, {
158
+ get children() {
159
+ return _$createComponent(py.FunctionDeclaration, {
160
+ async: true,
161
+ name: "foo"
162
+ });
163
+ }
164
+ })).toRenderTo(`
132
165
  async def foo():
133
166
  pass
134
167
 
135
168
  `);
136
169
  });
137
170
  it("can be an async function with returnType", () => {
138
- expect(toSourceText([_$createComponent(py.FunctionDeclaration, {
139
- async: true,
140
- name: "foo",
141
- returnType: "Foo"
142
- })])).toBe(d`
171
+ expect(_$createComponent(TestOutput, {
172
+ get children() {
173
+ return _$createComponent(py.FunctionDeclaration, {
174
+ async: true,
175
+ name: "foo",
176
+ returnType: "Foo"
177
+ });
178
+ }
179
+ })).toRenderTo(`
143
180
  async def foo() -> Foo:
144
181
  pass
145
182
 
146
183
  `);
147
184
  });
148
185
  it("can be an async function with returnType element with Reference", () => {
149
- expect(toSourceText([_$createComponent(py.StatementList, {
186
+ expect(_$createComponent(TestOutput, {
150
187
  get children() {
151
- return [_$createComponent(py.ClassDeclaration, {
152
- name: "Foo",
153
- get refkey() {
154
- return refkey("Foo");
155
- }
156
- }), _$createComponent(py.FunctionDeclaration, {
157
- async: true,
158
- name: "foo",
159
- get returnType() {
160
- return refkey("Foo");
188
+ return _$createComponent(py.StatementList, {
189
+ get children() {
190
+ return [_$createComponent(py.ClassDeclaration, {
191
+ name: "Foo",
192
+ get refkey() {
193
+ return refkey("Foo");
194
+ }
195
+ }), _$createComponent(py.FunctionDeclaration, {
196
+ async: true,
197
+ name: "foo",
198
+ get returnType() {
199
+ return refkey("Foo");
200
+ }
201
+ })];
161
202
  }
162
- })];
203
+ });
163
204
  }
164
- })])).toBe(d`
205
+ })).toRenderTo(`
165
206
  class Foo:
166
207
  pass
167
208
 
@@ -171,22 +212,26 @@ describe("Function Declaration", () => {
171
212
  `);
172
213
  });
173
214
  it("can be an async function with returnType element with list of References", () => {
174
- expect(toSourceText([_$createComponent(py.StatementList, {
215
+ expect(_$createComponent(TestOutput, {
175
216
  get children() {
176
- return [_$createComponent(py.ClassDeclaration, {
177
- name: "Foo",
178
- get refkey() {
179
- return refkey("Foo");
180
- }
181
- }), _$createComponent(py.FunctionDeclaration, {
182
- async: true,
183
- name: "foo",
184
- get returnType() {
185
- return code`list[${refkey("Foo")}]`;
217
+ return _$createComponent(py.StatementList, {
218
+ get children() {
219
+ return [_$createComponent(py.ClassDeclaration, {
220
+ name: "Foo",
221
+ get refkey() {
222
+ return refkey("Foo");
223
+ }
224
+ }), _$createComponent(py.FunctionDeclaration, {
225
+ async: true,
226
+ name: "foo",
227
+ get returnType() {
228
+ return code`list[${refkey("Foo")}]`;
229
+ }
230
+ })];
186
231
  }
187
- })];
232
+ });
188
233
  }
189
- })])).toBe(d`
234
+ })).toRenderTo(`
190
235
  class Foo:
191
236
  pass
192
237
 
@@ -215,7 +260,9 @@ describe("Function Declaration", () => {
215
260
  });
216
261
  }
217
262
  });
218
- expect(toSourceText([decl])).toBe(d`
263
+ expect(_$createComponent(TestOutput, {
264
+ children: decl
265
+ })).toRenderTo(`
219
266
  class MyClass:
220
267
  async def __aenter__(self) -> MyClass:
221
268
  return self
@@ -242,7 +289,9 @@ describe("Function Declaration", () => {
242
289
  });
243
290
  }
244
291
  });
245
- expect(toSourceText([decl])).toBe(d`
292
+ expect(_$createComponent(TestOutput, {
293
+ children: decl
294
+ })).toRenderTo(`
246
295
  class MyClass:
247
296
  async def __new__(cls) -> MyClass:
248
297
  return super().__new__(cls)
@@ -260,7 +309,9 @@ describe("Function Declaration", () => {
260
309
  }],
261
310
  children: "return a + b"
262
311
  });
263
- expect(toSourceText([decl])).toBe(d`
312
+ expect(_$createComponent(TestOutput, {
313
+ children: decl
314
+ })).toRenderTo(`
264
315
  def foo(a, b):
265
316
  return a + b
266
317
 
@@ -277,7 +328,9 @@ describe("Function Declaration", () => {
277
328
  typeParameters: ["T", "U"],
278
329
  children: "return a + b"
279
330
  });
280
- expect(toSourceText([decl])).toBe(d`
331
+ expect(_$createComponent(TestOutput, {
332
+ children: decl
333
+ })).toRenderTo(`
281
334
  def foo[T, U](a, b):
282
335
  return a + b
283
336
 
@@ -314,9 +367,10 @@ describe("Function Declaration", () => {
314
367
  });
315
368
  }
316
369
  });
317
- expect(toSourceText([decl], {
318
- externals: [abcModule]
319
- })).toBe(d`
370
+ expect(_$createComponent(TestOutput, {
371
+ externals: [abcModule],
372
+ children: decl
373
+ })).toRenderTo(`
320
374
  from abc import abstractmethod
321
375
 
322
376
 
@@ -361,7 +415,9 @@ describe("Function Declaration", () => {
361
415
  });
362
416
  }
363
417
  });
364
- expect(toSourceText([decl])).toBe(d`
418
+ expect(_$createComponent(TestOutput, {
419
+ children: decl
420
+ })).toRenderTo(`
365
421
  class MyClass:
366
422
  def __init__(self, x: int):
367
423
  self.attribute = "value"
@@ -387,7 +443,9 @@ describe("Function Declaration", () => {
387
443
  });
388
444
  }
389
445
  });
390
- expect(toSourceText([decl])).toBe(d`
446
+ expect(_$createComponent(TestOutput, {
447
+ children: decl
448
+ })).toRenderTo(`
391
449
  class MyClass:
392
450
  def __new__(cls, *args, **kwargs):
393
451
  pass
@@ -445,7 +503,9 @@ describe("Function Declaration", () => {
445
503
  })];
446
504
  }
447
505
  });
448
- expect(toSourceText([decl])).toBe(d`
506
+ expect(_$createComponent(TestOutput, {
507
+ children: decl
508
+ })).toRenderTo(`
449
509
  def foo(x: int):
450
510
  def bar(y: int):
451
511
  def foobar(z: int):
@@ -456,55 +516,58 @@ describe("Function Declaration", () => {
456
516
  `);
457
517
  });
458
518
  it("renders complex typing structure", () => {
459
- const res = toSourceTextMultiple([_$createComponent(py.SourceFile, {
460
- path: "mod1.py",
519
+ expect(_$createComponent(TestOutputDirectory, {
461
520
  get children() {
462
- return _$createComponent(py.ClassDeclaration, {
463
- name: "Foo",
464
- get refkey() {
465
- return refkey("Foo");
521
+ return [_$createComponent(py.SourceFile, {
522
+ path: "mod1.py",
523
+ get children() {
524
+ return _$createComponent(py.ClassDeclaration, {
525
+ name: "Foo",
526
+ get refkey() {
527
+ return refkey("Foo");
528
+ }
529
+ });
466
530
  }
467
- });
468
- }
469
- }), _$createComponent(py.SourceFile, {
470
- path: "mod2.py",
471
- get children() {
472
- return [_$createComponent(py.ClassDeclaration, {
473
- name: "A",
474
- get refkey() {
475
- return refkey("A");
531
+ }), _$createComponent(py.SourceFile, {
532
+ path: "mod2.py",
533
+ get children() {
534
+ return [_$createComponent(py.ClassDeclaration, {
535
+ name: "A",
536
+ get refkey() {
537
+ return refkey("A");
538
+ }
539
+ }), _$createComponent(py.ClassDeclaration, {
540
+ name: "B",
541
+ get refkey() {
542
+ return refkey("B");
543
+ }
544
+ })];
476
545
  }
477
- }), _$createComponent(py.ClassDeclaration, {
478
- name: "B",
479
- get refkey() {
480
- return refkey("B");
546
+ }), _$createComponent(py.SourceFile, {
547
+ path: "usage.py",
548
+ get children() {
549
+ return _$createComponent(py.FunctionDeclaration, {
550
+ async: true,
551
+ name: "foo",
552
+ get parameters() {
553
+ return [{
554
+ name: "x",
555
+ type: refkey("A")
556
+ }, {
557
+ name: "y",
558
+ type: refkey("B")
559
+ }];
560
+ },
561
+ args: true,
562
+ kwargs: true,
563
+ get returnType() {
564
+ return refkey("Foo");
565
+ }
566
+ });
481
567
  }
482
568
  })];
483
569
  }
484
- }), _$createComponent(py.SourceFile, {
485
- path: "usage.py",
486
- get children() {
487
- return _$createComponent(py.FunctionDeclaration, {
488
- async: true,
489
- name: "foo",
490
- get parameters() {
491
- return [{
492
- name: "x",
493
- type: refkey("A")
494
- }, {
495
- name: "y",
496
- type: refkey("B")
497
- }];
498
- },
499
- args: true,
500
- kwargs: true,
501
- get returnType() {
502
- return refkey("Foo");
503
- }
504
- });
505
- }
506
- })]);
507
- assertFileContents(res, {
570
+ })).toRenderTo({
508
571
  "mod1.py": `
509
572
  class Foo:
510
573
  pass
@@ -536,37 +599,57 @@ describe("Function Declaration", () => {
536
599
  });
537
600
  it("throws error when PropertyDeclaration is used outside of a class", () => {
538
601
  expect(() => {
539
- toSourceText([_$createComponent(py.PropertyDeclaration, {
540
- name: "x"
541
- })]);
602
+ render(_$createComponent(TestOutput, {
603
+ get children() {
604
+ return _$createComponent(py.PropertyDeclaration, {
605
+ name: "x"
606
+ });
607
+ }
608
+ }));
542
609
  }).toThrow('Method "x" must be declared inside a class (member scope)');
543
610
  });
544
611
  it("throws error when MethodDeclaration is used outside of a class", () => {
545
612
  expect(() => {
546
- toSourceText([_$createComponent(py.MethodDeclaration, {
547
- name: "my_method"
548
- })]);
613
+ render(_$createComponent(TestOutput, {
614
+ get children() {
615
+ return _$createComponent(py.MethodDeclaration, {
616
+ name: "my_method"
617
+ });
618
+ }
619
+ }));
549
620
  }).toThrow('Method "my_method" must be declared inside a class (member scope)');
550
621
  });
551
622
  it("throws error when ClassMethodDeclaration is used outside of a class", () => {
552
623
  expect(() => {
553
- toSourceText([_$createComponent(py.ClassMethodDeclaration, {
554
- name: "my_class_method"
555
- })]);
624
+ render(_$createComponent(TestOutput, {
625
+ get children() {
626
+ return _$createComponent(py.ClassMethodDeclaration, {
627
+ name: "my_class_method"
628
+ });
629
+ }
630
+ }));
556
631
  }).toThrow('Method "my_class_method" must be declared inside a class (member scope)');
557
632
  });
558
633
  it("throws error when StaticMethodDeclaration is used outside of a class", () => {
559
634
  expect(() => {
560
- toSourceText([_$createComponent(py.StaticMethodDeclaration, {
561
- name: "my_static_method"
562
- })]);
635
+ render(_$createComponent(TestOutput, {
636
+ get children() {
637
+ return _$createComponent(py.StaticMethodDeclaration, {
638
+ name: "my_static_method"
639
+ });
640
+ }
641
+ }));
563
642
  }).toThrow('Method "my_static_method" must be declared inside a class (member scope)');
564
643
  });
565
644
  it("throws error when DunderMethodDeclaration is used outside of a class", () => {
566
645
  expect(() => {
567
- toSourceText([_$createComponent(py.DunderMethodDeclaration, {
568
- name: "__init__"
569
- })]);
646
+ render(_$createComponent(TestOutput, {
647
+ get children() {
648
+ return _$createComponent(py.DunderMethodDeclaration, {
649
+ name: "__init__"
650
+ });
651
+ }
652
+ }));
570
653
  }).toThrow('Method "__init__" must be declared inside a class (member scope)');
571
654
  });
572
655
  });
@@ -1 +1 @@
1
- {"version":3,"names":["code","namekey","refkey","d","describe","expect","it","py","abcModule","assertFileContents","toSourceText","toSourceTextMultiple","result","_$createComponent","FunctionDeclaration","name","toRenderTo","returnType","refkeyFoo","StatementList","children","VariableDeclaration","type","initializer","FunctionCallExpression","target","args","parameters","default","kwargs","ClassDeclaration","DunderMethodDeclaration","async","toBe","decl","ConstructorDeclaration","typeParameters","MethodDeclaration","abstract","ClassMethodDeclaration","StaticMethodDeclaration","externals","parameters_nested","parameters_nested_nested","fooRef","barRef","foobarRef","Atom","jsValue","res","SourceFile","path","PropertyDeclaration","toThrow"],"sources":["../../test/functiondeclaration.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,IAAI,EAAEC,OAAO,EAAEC,MAA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AAA,CAAEN,EAAE,CAACiC,uBAAuB;QAACzB,IAAI;MAAA,GAAuB,CAAC;IACxE,CAAC,CAAC,CAACsC,OAAO,CACR,0EACF,CAAC;EACH,CAAC,CAAC;EAEF/C,EAAE,CAAC,sEAAsE,EAAE,MAAM;IAC/ED,MAAM,CAAC,MAAM;MACXK,YAAY,CAAC,CAAAG,iBAAA,CAAEN,EAAE,CAACwB,uBAAuB;QAAChB,IAAI;MAAA,GAAe,CAAC;IAChE,CAAC,CAAC,CAACsC,OAAO,CACR,kEACF,CAAC;EACH,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["code","namekey","refkey","render","describe","expect","it","py","abcModule","TestOutput","TestOutputDirectory","_$createComponent","children","FunctionDeclaration","name","decorators","toRenderTo","returnType","refkeyFoo","StatementList","VariableDeclaration","type","initializer","FunctionCallExpression","target","args","parameters","default","kwargs","ClassDeclaration","DunderMethodDeclaration","async","decl","ConstructorDeclaration","typeParameters","MethodDeclaration","abstract","ClassMethodDeclaration","StaticMethodDeclaration","externals","parameters_nested","parameters_nested_nested","fooRef","barRef","foobarRef","Atom","jsValue","SourceFile","path","PropertyDeclaration","toThrow"],"sources":["../../test/functiondeclaration.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,IAAI,EAAEC,OAAO,EAAEC,MAAM,EAAEC,MAAM,QAAQ,gBAAgB;AAC9D,SAASC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AAC7C,OAAO,KAAKC,EAAE,MAAM,iBAAiB;AACrC,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,UAAU,EAAEC,mBAAmB,QAAQ,YAAY;AAE5DN,QAAQ,CAAC,sBAAsB,EAAE,MAAM;EACrCE,EAAE,CAAC,2DAA2D,EAAE,MAAM;IACpED,MAAM,CAAAM,iBAAA,CACHF,UAAU;MAAA,IAAAG,SAAA;QAAA,OAAAD,iBAAA,CACRJ,EAAE,CAACM,mBAAm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