Skip to content

Commit 03f78cc

Browse files
committed
fix quotes in test
1 parent f5a2802 commit 03f78cc

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

tests/test_py_models_parser.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ def test_parse_from_file_gino():
4141
{
4242
"attrs": [
4343
{
44-
"default": "'article'",
44+
"default": '"article"',
4545
"name": "article",
4646
"properties": {},
4747
"type": None,
4848
},
49-
{"default": "'video'", "name": "video", "properties": {}, "type": None},
49+
{"default": '"video"', "name": "video", "properties": {}, "type": None},
5050
],
5151
"name": "MaterialType",
5252
"parents": ["Enum"],
@@ -105,7 +105,7 @@ def test_parse_from_file_gino():
105105
],
106106
"name": "Material",
107107
"parents": ["db.Model"],
108-
"properties": {"table_name": "'material'"},
108+
"properties": {"table_name": '"material"'},
109109
},
110110
{
111111
"attrs": [
@@ -130,45 +130,45 @@ def test_parse_from_file_gino():
130130
],
131131
"name": "Author",
132132
"parents": ["db.Model"],
133-
"properties": {"table_name": "'author'"},
133+
"properties": {"table_name": '"author"'},
134134
},
135135
{
136136
"attrs": [
137137
{
138138
"default": None,
139139
"name": "category",
140-
"properties": {"foreign_key": "'author.id'"},
140+
"properties": {"foreign_key": '"author.id"'},
141141
"type": "db.Integer()",
142142
},
143143
{
144144
"default": None,
145145
"name": "material",
146-
"properties": {"foreign_key": "'material.id'"},
146+
"properties": {"foreign_key": '"material.id"'},
147147
"type": "db.Integer()",
148148
},
149149
],
150150
"name": "MaterialAuthors",
151151
"parents": ["db.Model"],
152-
"properties": {"table_name": "'material_authors'"},
152+
"properties": {"table_name": '"material_authors"'},
153153
},
154154
{
155155
"attrs": [
156156
{
157157
"default": None,
158158
"name": "category",
159-
"properties": {"foreign_key": "'platform.id'"},
159+
"properties": {"foreign_key": '"platform.id"'},
160160
"type": "db.Integer()",
161161
},
162162
{
163163
"default": None,
164164
"name": "material",
165-
"properties": {"foreign_key": "'material.id'"},
165+
"properties": {"foreign_key": '"material.id"'},
166166
"type": "db.Integer()",
167167
},
168168
],
169169
"name": "MaterialPlatforms",
170170
"parents": ["db.Model"],
171-
"properties": {"table_name": "'material_platforms'"},
171+
"properties": {"table_name": '"material_platforms"'},
172172
},
173173
{
174174
"attrs": [
@@ -193,26 +193,26 @@ def test_parse_from_file_gino():
193193
],
194194
"name": "Platform",
195195
"parents": ["db.Model"],
196-
"properties": {"table_name": "'platform'"},
196+
"properties": {"table_name": '"platform"'},
197197
},
198198
{
199199
"attrs": [
200200
{
201201
"default": None,
202202
"name": "category",
203-
"properties": {"foreign_key": "'category.id'"},
203+
"properties": {"foreign_key": '"category.id"'},
204204
"type": "db.Integer()",
205205
},
206206
{
207207
"default": None,
208208
"name": "material",
209-
"properties": {"foreign_key": "'material.id'"},
209+
"properties": {"foreign_key": '"material.id"'},
210210
"type": "db.Integer()",
211211
},
212212
],
213213
"name": "MaterialCategories",
214214
"parents": ["db.Model"],
215-
"properties": {"table_name": "'material_categories'"},
215+
"properties": {"table_name": '"material_categories"'},
216216
},
217217
{
218218
"attrs": [
@@ -249,14 +249,14 @@ def test_parse_from_file_gino():
249249
],
250250
"name": "Category",
251251
"parents": ["db.Model"],
252-
"properties": {"table_name": "'category'"},
252+
"properties": {"table_name": '"category"'},
253253
},
254254
{
255255
"attrs": [
256256
{
257257
"default": None,
258258
"name": "category",
259-
"properties": {"foreign_key": "'category.id'"},
259+
"properties": {"foreign_key": '"category.id"'},
260260
"type": "db.Integer()",
261261
},
262262
{
@@ -286,7 +286,7 @@ def test_parse_from_file_gino():
286286
],
287287
"name": "ContentFilters",
288288
"parents": ["db.Model"],
289-
"properties": {"table_name": "'content_filters'"},
289+
"properties": {"table_name": '"content_filters"'},
290290
},
291291
]
292292
assert result == expected
@@ -299,12 +299,12 @@ def test_parse_from_file_dataclass():
299299
{
300300
"attrs": [
301301
{
302-
"default": "'article'",
302+
"default": '"article"',
303303
"name": "article",
304304
"properties": {},
305305
"type": None,
306306
},
307-
{"default": "'video'", "name": "video", "properties": {}, "type": None},
307+
{"default": '"video"', "name": "video", "properties": {}, "type": None},
308308
],
309309
"name": "MaterialType",
310310
"parents": ["str, Enum"],

0 commit comments

Comments
 (0)