Skip to content

Commit

Permalink
Use Segment Group Hierarchies from edifact-templates submodule (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
hf-kklein authored Mar 30, 2023
1 parent a42e7be commit d3c2ea1
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion tests/integration_tests/edifact-templates
12 changes: 6 additions & 6 deletions tests/integration_tests/test_abmeldeanfrage_maus.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,33 @@ class TestAbmeldeAnfrageMaus:

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11010.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11010_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11010.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11010_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11011.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11011_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11011.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11011_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11012.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11012_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11012.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11012_maus.json"),
)
12 changes: 6 additions & 6 deletions tests/integration_tests/test_abmeldung_maus.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,33 @@ class TestAbmeldungMaus:

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11007.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11007_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11007.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11007_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11008.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11008_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11008.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11008_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11009.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11009_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11009.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11009_maus.json"),
)
28 changes: 14 additions & 14 deletions tests/integration_tests/test_anmeldung_maus.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,77 +12,77 @@ class TestAnmeldungMaus:

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11001.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11001_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11001.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11001_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11002.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11002_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11002.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11002_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11003.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11003_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11003.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11003_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11004.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11004_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11004.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11004_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11005.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11005_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11005.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11005_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11006.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11006_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11006.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11006_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11023.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11023_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11023.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11023_maus.json"),
)
12 changes: 6 additions & 6 deletions tests/integration_tests/test_beginn_msb_maus.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,33 @@ class TestBeginnMsbMaus:

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11042.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11042_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11042.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11042_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11043.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11043_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11043.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11043_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11044.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11044_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11044.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11044_maus.json"),
)
12 changes: 6 additions & 6 deletions tests/integration_tests/test_eog_maus.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,33 @@ class TestEogMaus:

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11013.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11013_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11013.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11013_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11014.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11014_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11014.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11014_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11015.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11015_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11015.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11015_maus.json"),
)
12 changes: 6 additions & 6 deletions tests/integration_tests/test_kuendigung_maus.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,33 @@ class TestKuendigungMaus:

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11016.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11016_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11016.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11016_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11017.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11017_52e(self, datafiles):
create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11017.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11017_maus.json"),
)

@pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
@pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11018.json")
@pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
@pytest.mark.datafiles("./edifact-templates/segment_group_hierarchies/FV2210/UTILMD.sgh.json")
def test_maus_creation_11018_52e(self, datafiles):
result = create_maus_and_assert(
flat_ahb_path=Path(datafiles) / "11018.json",
sgh_path=Path(datafiles) / "sgh_utilmd.json",
sgh_path=Path(datafiles) / "UTILMD.sgh.json",
template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11018_maus.json"),
)
Expand Down
Loading

0 comments on commit d3c2ea1

Please sign in to comment.