Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Sanitize ahbNames before comparing them #73

Merged
merged 2 commits into from
May 2, 2022

Conversation

hf-kklein
Copy link
Contributor

No description provided.

<field name="Codeliste" ref="NAD:2:2" meta.id="3055"/>
</class>
<class name="Vorgang" ref="SG4" key="IDE:2:0" max="99999" meta.type="group" groupKey="Vorgangsnummer">
<class name="Beteiligter Marktpartner MP-ID" ahbName="Beteiligter Marktpartner MP-ID" ref="SG12" key="NAD:2:0[1:0=VY]" max="99" meta.objType="Marktpartner">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hf-kklein hf-kklein merged commit 2992e41 into main May 2, 2022
@hf-kklein hf-kklein deleted the make_names_comparable branch May 2, 2022 08:43
hf-kklein added a commit that referenced this pull request May 2, 2022
* 🐛 Sanitize ahbNames before comparing them

* add 11003 test case

* 🐛 Sanitize ahbNames before comparing them (#73)

* 🐛 Sanitize ahbNames before comparing them
* Fix typing issues by making `make_name_comparable` null safe
* relates to Hochfrequenz/edifact-templates#67

* update submodule

* add test data to submodule
hf-kklein added a commit that referenced this pull request May 9, 2022
…8; Adapt Test Structure for VS Code (#61)

* 🚚 rename `unittests` ➡ `unit_tests`

* add README to unittests dir

* add `__init__.py` to unit_tests and update `@pytest.mark.datafiles` paths

* fix typos in `tox.ini`

* ignore mypy imports in test project

* change name of unit test env in Github workflow

* Add integration test package

* ➕ add private sub module  `Hochfrequenz/edifact-templates`

* Update unit_tests/README.md

Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>

* update submod

* add integration test to tox.ini

* update integration test readme

* add minimal working test

* Add integration test workflow

* refer to correct secret

* wip

* use latest submodule

* let the fun begin

* latest submod

* extend tests

* udpate test and test data

* fix integration test setup

* don't ignore errors

that's where the fun begins

* Allow for yet another weird referencing syntax

* Allow for yet another weird referencing syntax

* udpate testdata

* UTILMD 6063 handling (#65)

* UTILMD 6063 handling

* minimal modularization

* so (#68)

* wip

* rename

* allow EBD G-Listen

* better

* Allow EBD code lists starting with 'G' (#66)

* allow EBD G-Listen

* apply pycharm suggestion regarding regex

* apply pycharm suggestion regarding regex

* black .

* add UTILMD 1131 (Fallgruppenzuordnung) Testcase

* update templates

implies Hochfrequenz/edifact-templates#58

* add UTILMD 1131 (Fallgruppenzuordnung) Testcase (#67)

* update sub

* modularize

* update sub

* formatting and stuff

* so?

* flaaaky.

* Add 11002 Test Case and Test Data (#72)

* add one more ignore

* rename file

* add 11002 test case

* update submodule

* Add 11003 Test Case (#74)

* 🐛 Sanitize ahbNames before comparing them

* add 11003 test case

* 🐛 Sanitize ahbNames before comparing them (#73)

* 🐛 Sanitize ahbNames before comparing them
* Fix typing issues by making `make_name_comparable` null safe
* relates to Hochfrequenz/edifact-templates#67

* update submodule

* add test data to submodule

* Add EOG (#76)

* add eog test file

* update submodule and test cases

* rename

* update to latest sub

* Kündigung (#77)

* Add Kuendigung Test Cases

* rename methods

* ignore DTM+Z05/Z06 kündigungstermin

* updat esubmodule

* update sub

* simplify test setup by modularizing the repetetive part (#81)

* simplify test setup by modularizing the repetetive part

* fix filenotfounderror

* Write stricter assertions (#82)

* ✨ extend DeepAhb and SegmentGroup with search functions

* add failing test

* update submodule

* fix typos

* ✨ Allow searching AHBs for SegmentGroups and Segments (#83)

* write an actual test :)

* ✅ Make the tests work in vs code (#84)

* 🚚 Move unit tests into tests/unit_tests

* 🔥 Delete submodule to move it into tests/integrations_tests

* 🚚 Move integrations tests into tests/integration_tests

* 🔄 Add edifact-templates submodule again

* 🔄 Checkout branch 11001 on submodule

* ✅ Add fixture which changes the cwd for each test

* ⚙️ Update directory for tests in tox.ini

* ⚙️ Update paths for mypy checks

* 🚚move file after merge

* open new branch in submodule

* update submodule

* update sub, again

* Fix MaKo2022 naming confusions by introducing hardcoded names (#89)

Asserts fixes of:

Maus 11002: Was "OBIS-Kennzahl der Z\u00e4hleinrichtung / Mengenumwerter / Smartmeter-Gateway", expected "OBIS-Kennzahl der Z\u00e4hleinrichtung / Mengenumwerter" edifact-templates#82
Maus 11002/11013: Was "Marktlokation", expected "OBIS-Daten der Marktlokation" edifact-templates#81
Maus 11002: Should be "OBIS Daten f\u00fcr Marktrolle relevant" but was "OBIS Daten f\u00fcr Lieferant relevant"" edifact-templates#80
MAUS 11002: Should be "Druckebene der Marktlokation" but was "Marktlokation" edifact-templates#79 /
11002: Druckebene der Marktlokation edifact-templates#72
11002: Netznutzungsabrechnungsvariante edifact-templates#73

* Prevent Flaky Tests (#90)

* prevent flaky tests by using list instead of set

because sets (other than dictionaries!) are still unordered
https://stackoverflow.com/a/53657523/10009545

* more comments

* update submodule

* remove unused import

* relates to Hochfrequenz/edifact-templates#84

* rename / fix typo

Co-authored-by: Franziska <73471037+hf-fvesely@users.noreply.github.com>
Co-authored-by: kevin <68426071+hf-krechan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant