Skip to content

Commit b1e95f8

Browse files
authored
Unpin pydantic forms (#787)
* Unpin pydantic forms * bumpversion to 2.9.0rc3 * Fix test_display_only_schema and test_generate_code unit test
1 parent efe9a84 commit b1e95f8

File tree

6 files changed

+18
-5
lines changed

6 files changed

+18
-5
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.9.0rc2
2+
current_version = 2.9.0rc3
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(rc(?P<build>\d+))?

orchestrator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
"""This is the orchestrator workflow engine."""
1515

16-
__version__ = "2.9.0rc2"
16+
__version__ = "2.9.0rc3"
1717

1818
from orchestrator.app import OrchestratorCore
1919
from orchestrator.settings import app_settings

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ dependencies = [
6464
"oauth2-lib~=2.3.0",
6565
"tabulate==0.9.0",
6666
"strawberry-graphql>=0.246.2",
67-
"pydantic-forms==1.1.0",
67+
"pydantic-forms~=1.1.1",
6868
]
6969

7070
description-file = "README.md"

test/unit_tests/cli/data/generate/workflows/shared.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from typing import Generator, List, TypeAlias, cast
1+
from collections.abc import Generator
2+
from typing import List, TypeAlias, cast
23

34
from orchestrator.domain.base import ProductBlockModel
45
from orchestrator.forms import FormPage

test/unit_tests/forms/test_display_subscription.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ class Form(FormPage):
3636
summary: Summary
3737

3838
expected = {
39+
"$defs": {
40+
"MigrationSummaryValue": {
41+
"properties": {},
42+
"title": "MigrationSummaryValue",
43+
"type": "object",
44+
},
45+
},
3946
"additionalProperties": False,
4047
"properties": {
4148
"display_sub": {
@@ -52,6 +59,11 @@ class Form(FormPage):
5259
"type": "string",
5360
},
5461
"summary": {
62+
"allOf": [
63+
{
64+
"$ref": "#/$defs/MigrationSummaryValue",
65+
},
66+
],
5567
"format": "summary",
5668
"default": None,
5769
"type": "string",

test/unit_tests/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
from unittest import mock
33

4-
from deepdiff import DeepDiff
4+
from deepdiff import DeepDiff # type: ignore
55

66

77
def assert_no_diff(expected, actual, exclude_paths=None):

0 commit comments

Comments
 (0)