Skip to content

Commit 4fcd121

Browse files
committed
added more tests cases
1 parent 1a04b1b commit 4fcd121

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

tests/unit/synapseclient/extensions/unit_test_curator.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1819,13 +1819,36 @@ def test_create_columns_from_json_schema_exceptions(json_schema: dict[str, Any])
18191819
"bool_list_col",
18201820
ColumnType.BOOLEAN_LIST,
18211821
),
1822+
(
1823+
{"type": "number"},
1824+
"number_col",
1825+
ColumnType.DOUBLE,
1826+
),
1827+
(
1828+
{"type": "integer"},
1829+
"integer_col",
1830+
ColumnType.INTEGER,
1831+
),
1832+
(
1833+
{"type": "boolean"},
1834+
"boolean_col",
1835+
ColumnType.BOOLEAN,
1836+
),
18221837
(
18231838
{"type": "string"},
18241839
"string_col",
18251840
ColumnType.MEDIUMTEXT,
18261841
),
18271842
],
1828-
ids=["string_list", "integer_list", "boolean_list", "string"],
1843+
ids=[
1844+
"string_list",
1845+
"integer_list",
1846+
"boolean_list",
1847+
"number",
1848+
"integer",
1849+
"boolean",
1850+
"string",
1851+
],
18291852
)
18301853
def test_create_synapse_column_from_js_property(
18311854
json_schema_property: dict[str, Any],

0 commit comments

Comments
 (0)