FourCIPP 1.24.0__tar.gz → 1.26.0__tar.gz
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.
- {fourcipp-1.24.0/src/FourCIPP.egg-info → fourcipp-1.26.0}/PKG-INFO +1 -1
- {fourcipp-1.24.0 → fourcipp-1.26.0/src/FourCIPP.egg-info}/PKG-INFO +1 -1
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/config/4C_metadata.yaml +93 -1
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/config/4C_schema.json +129 -2
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/legacy_io/inline_dat.py +8 -5
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/utils/metadata.py +1 -1
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/version.py +3 -3
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/legacy_io/test_inline_dat.py +21 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/.coveragerc +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/.github/workflows/check_code.yaml +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/.github/workflows/publish_pypi.yaml +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/.github/workflows/run_testsuite.yaml +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/.github/workflows/tag_version.yaml +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/.github/workflows/update_4C_metadata_schema_file.yaml +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/.gitignore +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/.pre-commit-config.yaml +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/LICENSE +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/README.md +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/docs/assets/fourcipp_logo_black.svg +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/docs/assets/fourcipp_logo_white.svg +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/pyproject.toml +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/requirements.in +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/requirements.txt +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/setup.cfg +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/FourCIPP.egg-info/SOURCES.txt +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/FourCIPP.egg-info/dependency_links.txt +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/FourCIPP.egg-info/entry_points.txt +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/FourCIPP.egg-info/requires.txt +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/FourCIPP.egg-info/top_level.txt +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/__init__.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/config/config.yaml +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/fourc_input.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/legacy_io/__init__.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/legacy_io/element.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/legacy_io/node.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/legacy_io/node_topology.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/legacy_io/particle.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/utils/__init__.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/utils/cli.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/utils/configuration.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/utils/converter.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/utils/dict_utils.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/utils/not_set.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/utils/type_hinting.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/utils/validation.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/src/fourcipp/utils/yaml_io.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/__init__.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/conftest.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/__init__.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/legacy_io/__init__.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/legacy_io/test_element.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/legacy_io/test_legacy_io.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/legacy_io/test_node.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/legacy_io/test_node_topology.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/legacy_io/test_particle.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/legacy_io/utils.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/test_fourc_input.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/test_readme_quickstart_example.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/utils/__init__.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/utils/test_configuration.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/utils/test_converter.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/utils/test_dict_utils.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/utils/test_metadata.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/utils/test_not_set.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/utils/test_validation.py +0 -0
- {fourcipp-1.24.0 → fourcipp-1.26.0}/tests/fourcipp/utils/test_yaml_io.py +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
metadata:
|
|
2
|
-
commit_hash:
|
|
2
|
+
commit_hash: 94e6a4c70b221f84b9211d6b06a3da3f08248d2a
|
|
3
3
|
version: 2025.4.0-dev
|
|
4
4
|
description_section_name: TITLE
|
|
5
5
|
legacy_element_specs:
|
|
@@ -40971,6 +40971,98 @@ sections:
|
|
|
40971
40971
|
- name: COUPLING_ID
|
|
40972
40972
|
type: int
|
|
40973
40973
|
required: true
|
|
40974
|
+
- name: BEAM INTERACTION/BEAM TO SOLID EDGE CONTACT
|
|
40975
|
+
type: group
|
|
40976
|
+
description: Parameters for beam-to-solid edge contact.
|
|
40977
|
+
required: false
|
|
40978
|
+
specs:
|
|
40979
|
+
- type: all_of
|
|
40980
|
+
specs:
|
|
40981
|
+
- name: CONSTRAINT_ENFORCEMENT
|
|
40982
|
+
type: enum
|
|
40983
|
+
description: "How the beam-to-edge constraints should be enforced."
|
|
40984
|
+
required: false
|
|
40985
|
+
default: none
|
|
40986
|
+
choices:
|
|
40987
|
+
- name: none
|
|
40988
|
+
- name: penalty
|
|
40989
|
+
- name: lagrange
|
|
40990
|
+
- name: PENALTY_LAW
|
|
40991
|
+
type: group
|
|
40992
|
+
description: Parameters for penalty law
|
|
40993
|
+
required: true
|
|
40994
|
+
specs:
|
|
40995
|
+
- type: all_of
|
|
40996
|
+
specs:
|
|
40997
|
+
- name: TYPE
|
|
40998
|
+
type: enum
|
|
40999
|
+
description: "Type of penalty law"
|
|
41000
|
+
required: false
|
|
41001
|
+
default: none
|
|
41002
|
+
choices:
|
|
41003
|
+
- name: none
|
|
41004
|
+
- name: linear
|
|
41005
|
+
- name: linear_quadratic
|
|
41006
|
+
- name: PENALTY_PARAMETER
|
|
41007
|
+
type: double
|
|
41008
|
+
description: "Penalty parameter for beam-to-solid surface contact"
|
|
41009
|
+
required: false
|
|
41010
|
+
default: 0
|
|
41011
|
+
validator:
|
|
41012
|
+
range:
|
|
41013
|
+
minimum: 0
|
|
41014
|
+
maximum: 1.7976931348623157e+308
|
|
41015
|
+
minimum_exclusive: false
|
|
41016
|
+
maximum_exclusive: false
|
|
41017
|
+
- name: PENALTY_PARAMETER_G0
|
|
41018
|
+
type: double
|
|
41019
|
+
description: "First penalty regularization parameter G0 >=0: For gap<G0 contact is active"
|
|
41020
|
+
required: false
|
|
41021
|
+
default: 0
|
|
41022
|
+
- name: BEAM INTERACTION/BEAM TO SOLID EDGE CONTACT BEAM
|
|
41023
|
+
type: list
|
|
41024
|
+
required: false
|
|
41025
|
+
spec:
|
|
41026
|
+
type: all_of
|
|
41027
|
+
specs:
|
|
41028
|
+
- name: E
|
|
41029
|
+
type: int
|
|
41030
|
+
description: "ID of the condition. This ID refers to the respective topological entity of the condition."
|
|
41031
|
+
required: true
|
|
41032
|
+
- name: ENTITY_TYPE
|
|
41033
|
+
type: enum
|
|
41034
|
+
description: "The type of entity that E refers to."
|
|
41035
|
+
required: false
|
|
41036
|
+
default: legacy_id
|
|
41037
|
+
choices:
|
|
41038
|
+
- name: legacy_id
|
|
41039
|
+
- name: node_set_id
|
|
41040
|
+
- name: element_block_id
|
|
41041
|
+
- name: COUPLING_ID
|
|
41042
|
+
type: int
|
|
41043
|
+
required: true
|
|
41044
|
+
- name: BEAM INTERACTION/BEAM TO SOLID EDGE CONTACT SOLID EDGE
|
|
41045
|
+
type: list
|
|
41046
|
+
required: false
|
|
41047
|
+
spec:
|
|
41048
|
+
type: all_of
|
|
41049
|
+
specs:
|
|
41050
|
+
- name: E
|
|
41051
|
+
type: int
|
|
41052
|
+
description: "ID of the condition. This ID refers to the respective topological entity of the condition."
|
|
41053
|
+
required: true
|
|
41054
|
+
- name: ENTITY_TYPE
|
|
41055
|
+
type: enum
|
|
41056
|
+
description: "The type of entity that E refers to."
|
|
41057
|
+
required: false
|
|
41058
|
+
default: legacy_id
|
|
41059
|
+
choices:
|
|
41060
|
+
- name: legacy_id
|
|
41061
|
+
- name: node_set_id
|
|
41062
|
+
- name: element_block_id
|
|
41063
|
+
- name: COUPLING_ID
|
|
41064
|
+
type: int
|
|
41065
|
+
required: true
|
|
40974
41066
|
- name: BEAM INTERACTION/BEAM TO SOLID SURFACE CONTACT
|
|
40975
41067
|
type: group
|
|
40976
41068
|
required: false
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "Schema for 4C\nCommit hash:
|
|
2
|
+
"description": "Schema for 4C\nCommit hash: 94e6a4c70b221f84b9211d6b06a3da3f08248d2a\nVersion: 2025.4.0-dev",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"properties": {
|
|
5
5
|
"ALE DOMAIN": {
|
|
@@ -69053,6 +69053,133 @@
|
|
|
69053
69053
|
]
|
|
69054
69054
|
}
|
|
69055
69055
|
},
|
|
69056
|
+
"BEAM INTERACTION/BEAM TO SOLID EDGE CONTACT": {
|
|
69057
|
+
"title": "BEAM INTERACTION/BEAM TO SOLID EDGE CONTACT (group)",
|
|
69058
|
+
"description": "Parameters for beam-to-solid edge contact.",
|
|
69059
|
+
"type": "object",
|
|
69060
|
+
"properties": {
|
|
69061
|
+
"CONSTRAINT_ENFORCEMENT": {
|
|
69062
|
+
"title": "CONSTRAINT_ENFORCEMENT (enum)",
|
|
69063
|
+
"description": "How the beam-to-edge constraints should be enforced.",
|
|
69064
|
+
"default": "none",
|
|
69065
|
+
"type": "string",
|
|
69066
|
+
"enum": [
|
|
69067
|
+
"none",
|
|
69068
|
+
"penalty",
|
|
69069
|
+
"lagrange"
|
|
69070
|
+
]
|
|
69071
|
+
},
|
|
69072
|
+
"PENALTY_LAW": {
|
|
69073
|
+
"title": "PENALTY_LAW (group)",
|
|
69074
|
+
"description": "Parameters for penalty law",
|
|
69075
|
+
"type": "object",
|
|
69076
|
+
"properties": {
|
|
69077
|
+
"TYPE": {
|
|
69078
|
+
"title": "TYPE (enum)",
|
|
69079
|
+
"description": "Type of penalty law",
|
|
69080
|
+
"default": "none",
|
|
69081
|
+
"type": "string",
|
|
69082
|
+
"enum": [
|
|
69083
|
+
"none",
|
|
69084
|
+
"linear",
|
|
69085
|
+
"linear_quadratic"
|
|
69086
|
+
]
|
|
69087
|
+
},
|
|
69088
|
+
"PENALTY_PARAMETER": {
|
|
69089
|
+
"title": "PENALTY_PARAMETER (double)",
|
|
69090
|
+
"description": "Penalty parameter for beam-to-solid surface contact",
|
|
69091
|
+
"default": 0,
|
|
69092
|
+
"type": "number",
|
|
69093
|
+
"minimum": 0,
|
|
69094
|
+
"maximum": 1.7976931348623157e+308
|
|
69095
|
+
},
|
|
69096
|
+
"PENALTY_PARAMETER_G0": {
|
|
69097
|
+
"title": "PENALTY_PARAMETER_G0 (double)",
|
|
69098
|
+
"description": "First penalty regularization parameter G0 >=0: For gap<G0 contact is active",
|
|
69099
|
+
"default": 0,
|
|
69100
|
+
"type": "number"
|
|
69101
|
+
}
|
|
69102
|
+
},
|
|
69103
|
+
"additionalProperties": false
|
|
69104
|
+
}
|
|
69105
|
+
},
|
|
69106
|
+
"additionalProperties": false,
|
|
69107
|
+
"required": [
|
|
69108
|
+
"PENALTY_LAW"
|
|
69109
|
+
]
|
|
69110
|
+
},
|
|
69111
|
+
"BEAM INTERACTION/BEAM TO SOLID EDGE CONTACT BEAM": {
|
|
69112
|
+
"title": "BEAM INTERACTION/BEAM TO SOLID EDGE CONTACT BEAM (list)",
|
|
69113
|
+
"description": "No description yet.",
|
|
69114
|
+
"type": "array",
|
|
69115
|
+
"items": {
|
|
69116
|
+
"type": "object",
|
|
69117
|
+
"properties": {
|
|
69118
|
+
"E": {
|
|
69119
|
+
"title": "E (int)",
|
|
69120
|
+
"description": "ID of the condition. This ID refers to the respective topological entity of the condition.",
|
|
69121
|
+
"type": "integer"
|
|
69122
|
+
},
|
|
69123
|
+
"ENTITY_TYPE": {
|
|
69124
|
+
"title": "ENTITY_TYPE (enum)",
|
|
69125
|
+
"description": "The type of entity that E refers to.",
|
|
69126
|
+
"default": "legacy_id",
|
|
69127
|
+
"type": "string",
|
|
69128
|
+
"enum": [
|
|
69129
|
+
"legacy_id",
|
|
69130
|
+
"node_set_id",
|
|
69131
|
+
"element_block_id"
|
|
69132
|
+
]
|
|
69133
|
+
},
|
|
69134
|
+
"COUPLING_ID": {
|
|
69135
|
+
"title": "COUPLING_ID (int)",
|
|
69136
|
+
"description": "No description yet.",
|
|
69137
|
+
"type": "integer"
|
|
69138
|
+
}
|
|
69139
|
+
},
|
|
69140
|
+
"additionalProperties": false,
|
|
69141
|
+
"required": [
|
|
69142
|
+
"E",
|
|
69143
|
+
"COUPLING_ID"
|
|
69144
|
+
]
|
|
69145
|
+
}
|
|
69146
|
+
},
|
|
69147
|
+
"BEAM INTERACTION/BEAM TO SOLID EDGE CONTACT SOLID EDGE": {
|
|
69148
|
+
"title": "BEAM INTERACTION/BEAM TO SOLID EDGE CONTACT SOLID EDGE (list)",
|
|
69149
|
+
"description": "No description yet.",
|
|
69150
|
+
"type": "array",
|
|
69151
|
+
"items": {
|
|
69152
|
+
"type": "object",
|
|
69153
|
+
"properties": {
|
|
69154
|
+
"E": {
|
|
69155
|
+
"title": "E (int)",
|
|
69156
|
+
"description": "ID of the condition. This ID refers to the respective topological entity of the condition.",
|
|
69157
|
+
"type": "integer"
|
|
69158
|
+
},
|
|
69159
|
+
"ENTITY_TYPE": {
|
|
69160
|
+
"title": "ENTITY_TYPE (enum)",
|
|
69161
|
+
"description": "The type of entity that E refers to.",
|
|
69162
|
+
"default": "legacy_id",
|
|
69163
|
+
"type": "string",
|
|
69164
|
+
"enum": [
|
|
69165
|
+
"legacy_id",
|
|
69166
|
+
"node_set_id",
|
|
69167
|
+
"element_block_id"
|
|
69168
|
+
]
|
|
69169
|
+
},
|
|
69170
|
+
"COUPLING_ID": {
|
|
69171
|
+
"title": "COUPLING_ID (int)",
|
|
69172
|
+
"description": "No description yet.",
|
|
69173
|
+
"type": "integer"
|
|
69174
|
+
}
|
|
69175
|
+
},
|
|
69176
|
+
"additionalProperties": false,
|
|
69177
|
+
"required": [
|
|
69178
|
+
"E",
|
|
69179
|
+
"COUPLING_ID"
|
|
69180
|
+
]
|
|
69181
|
+
}
|
|
69182
|
+
},
|
|
69056
69183
|
"BEAM INTERACTION/BEAM TO SOLID SURFACE CONTACT": {
|
|
69057
69184
|
"title": "BEAM INTERACTION/BEAM TO SOLID SURFACE CONTACT (group)",
|
|
69058
69185
|
"description": "No description yet.",
|
|
@@ -401143,5 +401270,5 @@
|
|
|
401143
401270
|
"PROBLEM TYPE"
|
|
401144
401271
|
],
|
|
401145
401272
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
401146
|
-
"$id": "
|
|
401273
|
+
"$id": "94e6a4c70b221f84b9211d6b06a3da3f08248d2a"
|
|
401147
401274
|
}
|
|
@@ -121,12 +121,15 @@ def _entry_casting_factory(spec: dict) -> LineListExtractor:
|
|
|
121
121
|
Returns:
|
|
122
122
|
Casting function for the spec
|
|
123
123
|
"""
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
|
|
125
|
+
primitive_extractors = Primitive.PRIMITIVE_TYPES_TO_PYTHON.copy()
|
|
126
|
+
primitive_extractors["bool"] = lambda v: {"true": True, "false": False}[v]
|
|
127
|
+
|
|
128
|
+
if spec["type"] in primitive_extractors:
|
|
129
|
+
extractor = primitive_extractors[spec["type"]]
|
|
130
|
+
return partial(_extract_entry, extractor=extractor)
|
|
128
131
|
elif spec["type"] == "vector":
|
|
129
|
-
value_type =
|
|
132
|
+
value_type = primitive_extractors[spec["value_type"]["type"]]
|
|
130
133
|
return partial(_extract_vector, extractor=value_type, size=spec["size"])
|
|
131
134
|
elif spec["type"] == "enum":
|
|
132
135
|
choices = [s["name"] for s in spec["choices"]]
|
|
@@ -295,7 +295,7 @@ class One_Of:
|
|
|
295
295
|
|
|
296
296
|
class Primitive(InputSpec):
|
|
297
297
|
PRIMITIVE_TYPES: list[str] = ["double", "bool", "int", "string", "path"]
|
|
298
|
-
PRIMITIVE_TYPES_TO_PYTHON: dict[str, type] = {
|
|
298
|
+
PRIMITIVE_TYPES_TO_PYTHON: dict[str, type | Callable] = {
|
|
299
299
|
"double": float,
|
|
300
300
|
"bool": bool,
|
|
301
301
|
"int": int,
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '1.
|
|
32
|
-
__version_tuple__ = version_tuple = (1,
|
|
31
|
+
__version__ = version = '1.26.0'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 26, 0)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g97ad46bb9'
|
|
@@ -46,6 +46,27 @@ def test_entry_casting_factory_invalid_type():
|
|
|
46
46
|
_entry_casting_factory({"type": "invalid"})
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
def test_entry_casting_factory_bool_cast():
|
|
50
|
+
"""Test bool casting."""
|
|
51
|
+
spec = {"type": "bool"}
|
|
52
|
+
cast_func = _entry_casting_factory(spec)
|
|
53
|
+
|
|
54
|
+
assert cast_func(["true"]) is True
|
|
55
|
+
assert cast_func(["false"]) is False
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
@pytest.mark.parametrize(
|
|
59
|
+
"invalid_input", ["True", "False", "some text", "TRUE", "FALSE"]
|
|
60
|
+
)
|
|
61
|
+
def test_entry_casting_factory_invalid_bool_cast(invalid_input):
|
|
62
|
+
"""Test invalid bool casting."""
|
|
63
|
+
spec = {"type": "bool"}
|
|
64
|
+
cast_func = _entry_casting_factory(spec)
|
|
65
|
+
|
|
66
|
+
with pytest.raises(KeyError):
|
|
67
|
+
cast_func([invalid_input])
|
|
68
|
+
|
|
69
|
+
|
|
49
70
|
def test_casting_factory_invalid_type():
|
|
50
71
|
"""Test reading invalid types."""
|
|
51
72
|
with pytest.raises(NotImplementedError, match="First entry has to be an all_of"):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|