We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e78aa60 commit 077cd59Copy full SHA for 077cd59
tests/test_data/test_fehler.py
@@ -0,0 +1,25 @@
1
+import pytest
2
+
3
+from bo4e import Fehler
4
+from enum import Vereinsmitglied
5
+from tests.serialization_helper import assert_serialization_roundtrip
6
7
8
+class TestFehler:
9
+ @pytest.mark.parametrize(
10
+ "fehler",
11
+ [
12
+ pytest.param(
13
+ Fehler(
14
+ code=42,
15
+ meldung="Du hast dein Handtuch vergessen",
16
+ spezifikation=Vereinsmitglied.ALLGEMEIN
17
+ )
18
+ ),
19
+ ],
20
21
+ def test_serialization_roundtrip(self, fehler: Fehler) -> None:
22
+ """
23
+ Test de-/serialisation of Fehler
24
25
+ assert_serialization_roundtrip(fehler)
0 commit comments