Skip to content

Commit 20a6e6c

Browse files
committed
Fix test assertions for COVER_INCREASE_FOR_ABRASION_CLASS in nominal concrete cover tests
1 parent 0df825a commit 20a6e6c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/checks/nominal_concrete_cover/test_constants.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ def test_instantiation(self) -> None:
5353
"""Test that the class can be instantiated."""
5454
constants = DummyConstants()
5555
assert constants.COVER_INCREASE_FOR_UNEVEN_SURFACE == 5
56-
assert {
56+
assert constants.COVER_INCREASE_FOR_ABRASION_CLASS == {
5757
"NA": 0,
5858
"XM1": 5,
5959
"XM2": 10,
6060
"XM3": 15,
61-
} == constants.COVER_INCREASE_FOR_ABRASION_CLASS
61+
}
6262
assert constants.DEFAULT_DELTA_C_DEV == 5
6363
assert constants.CODE_SUFFIX == "DUMMY"
6464
assert constants.minimum_cover_with_regard_to_casting_surface(0, CastingSurface.PERMANENTLY_EXPOSED) == 0
@@ -72,12 +72,12 @@ def test_instantiation(self) -> None:
7272
"""Test that the class can be instantiated."""
7373
constants = NominalConcreteCoverConstants2011C2()
7474
assert constants.COVER_INCREASE_FOR_UNEVEN_SURFACE == 5
75-
assert {
75+
assert constants.COVER_INCREASE_FOR_ABRASION_CLASS == {
7676
AbrasionClass.NA: 0,
7777
AbrasionClass.XM1: 5,
7878
AbrasionClass.XM2: 10,
7979
AbrasionClass.XM3: 15,
80-
} == constants.COVER_INCREASE_FOR_ABRASION_CLASS
80+
}
8181
assert constants.DEFAULT_DELTA_C_DEV == 10
8282

8383
def test_instantiation_with_custom_values(self) -> None:
@@ -94,12 +94,12 @@ def test_instantiation_with_custom_values(self) -> None:
9494
def test_post_init(self) -> None:
9595
"""Test that the post-init method sets default values."""
9696
constants = NominalConcreteCoverConstants2011C2()
97-
assert {
97+
assert constants.COVER_INCREASE_FOR_ABRASION_CLASS == {
9898
AbrasionClass.NA: 0,
9999
AbrasionClass.XM1: 5,
100100
AbrasionClass.XM2: 10,
101101
AbrasionClass.XM3: 15,
102-
} == constants.COVER_INCREASE_FOR_ABRASION_CLASS
102+
}
103103

104104
@pytest.mark.parametrize(
105105
("c_min_dur", "casting_surface", "expected_result"),

0 commit comments

Comments
 (0)