From af92ac171807040ae7e94c5cd22af04b23c4233e Mon Sep 17 00:00:00 2001 From: Enrique Gonzalez Paredes Date: Fri, 19 Jan 2024 11:05:04 +0100 Subject: [PATCH] Add missing class rename --- tests/eve_tests/unit_tests/test_datamodels.py | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/eve_tests/unit_tests/test_datamodels.py b/tests/eve_tests/unit_tests/test_datamodels.py index b39e30bbde..044a3b0aed 100644 --- a/tests/eve_tests/unit_tests/test_datamodels.py +++ b/tests/eve_tests/unit_tests/test_datamodels.py @@ -1187,26 +1187,26 @@ class BaseGenericModel(datamodels.GenericDataModel, Generic[T, U]): with pytest.raises(TypeError, match=".value'"): PartiallyConcretizedGenericModel(value=["1"]) - FullySpecializedGenericModel = PartiallyConcretizedGenericModel[str] + FullyConcretizedGenericModel = PartiallyConcretizedGenericModel[str] - assert len(FullySpecializedGenericModel.__parameters__) == 0 + assert len(FullyConcretizedGenericModel.__parameters__) == 0 - FullySpecializedGenericModel(value=[]) - FullySpecializedGenericModel(value=[(1, "value")]) + FullyConcretizedGenericModel(value=[]) + FullyConcretizedGenericModel(value=[(1, "value")]) with pytest.raises(TypeError, match=".value'"): - FullySpecializedGenericModel(value=1) + FullyConcretizedGenericModel(value=1) with pytest.raises(TypeError, match=".value'"): - FullySpecializedGenericModel(value=(1, 2)) + FullyConcretizedGenericModel(value=(1, 2)) with pytest.raises(TypeError, match=".value'"): - FullySpecializedGenericModel(value=[1.0]) + FullyConcretizedGenericModel(value=[1.0]) with pytest.raises(TypeError, match=".value'"): - FullySpecializedGenericModel(value=["1"]) + FullyConcretizedGenericModel(value=["1"]) with pytest.raises(TypeError, match=".value'"): - FullySpecializedGenericModel(value=1) + FullyConcretizedGenericModel(value=1) with pytest.raises(TypeError, match=".value'"): - FullySpecializedGenericModel(value=[(1, 2)]) + FullyConcretizedGenericModel(value=[(1, 2)]) with pytest.raises(TypeError, match=".value'"): - FullySpecializedGenericModel(value=[(1, (11, 12))]) + FullyConcretizedGenericModel(value=[(1, (11, 12))]) def test_partial_concretization_with_typevar(self): class PartialGenericModel(datamodels.GenericDataModel, Generic[T]):