旧版前端工程文件导入时版本对比查验、审阅与仿真时部分阻挡功能实现;前端参数输入格式统一规范
This commit is contained in:
1 parent
22579e51c9
commit
44b6ea74ab
32 files changed
+2087
-322
No files matched your search
@@ -98,7 +98,7 @@ class ReactFlowProjectSchemaTests(unittest.TestCase):
|
||||
execute(project)
|
||||
|
||||
def test_unsupported_project_version_is_rejected(self) -> None:
|
||||
for version in (0, 2, -1, "1"):
|
||||
for version in (0, 3, -1, "1"):
|
||||
with self.subTest(version=version):
|
||||
with self.assertRaises(ValueError):
|
||||
medium_project(projectSchemaVersion=version)
|
||||
@@ -209,7 +209,7 @@ class ReactFlowProjectSchemaTests(unittest.TestCase):
|
||||
storage = Path(directory)
|
||||
invalid_cases = {
|
||||
"corrupt": "{not-json",
|
||||
"future": json.dumps({"projectSchemaVersion": 2}),
|
||||
"future": json.dumps({"projectSchemaVersion": 3}),
|
||||
}
|
||||
with patch("app.main.PROJECT_STORAGE_DIR", storage):
|
||||
for project_id, text in invalid_cases.items():
|
||||
|
||||
Reference in new issue
Block a user