Skip to content

Commit

Permalink
Bump ibims from 0.1.11 to 0.1.12 (#65)
Browse files Browse the repository at this point in the history
* Bump ibims from 0.1.11 to 0.1.12

Bumps [ibims](https://github.com/Hochfrequenz/intermediate-bo4e-migration-models) from 0.1.11 to 0.1.12.
- [Release notes](https://github.com/Hochfrequenz/intermediate-bo4e-migration-models/releases)
- [Commits](Hochfrequenz/intermediate-bo4e-migration-models@v0.1.11...v0.1.12)

---
updated-dependencies:
- dependency-name: ibims
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* 🩹

* 🩹mypy

* 🩹wtf are you (not) doin', black

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Leon Haffmans <[email protected]>
  • Loading branch information
dependabot[bot] and lord-haffi authored Jan 22, 2024
1 parent ac10d5f commit eae2ce8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
dependencies = [
"bomf",
"pvframework>=0.0.8",
"ibims>=0.1.11",
"ibims>=0.1.12",
"python-dateutil",
"pydantic[email]",
"more_itertools",
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bomf
pvframework>=0.0.8
ibims>=0.1.11
ibims>=0.1.12
python-dateutil
pydantic[email]
more_itertools
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ frozendict==2.3.8
# via
# bomf
# pvframework
ibims==0.1.11
ibims==0.1.12
# via -r requirements.in
idna==3.4
# via email-validator
Expand Down
12 changes: 6 additions & 6 deletions unittests/test_validation_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def test_good_data_set(self, customer_validation_manager):
),
vertragskontonummer="3000100",
rechnungsstellung=Kontaktart.ANSCHREIBEN,
vertrag=Vertrag.model_construct(vertragsnummer="2000100"),
vertrag=Vertrag.model_construct(vertragsnummer="2000100"), # type: ignore[call-arg]
erstellungsdatum=datetime(2223, 1, 1, tzinfo=pytz.UTC),
rechnungsdatum_start=datetime(2023, 2, 1, tzinfo=pytz.UTC),
rechnungsdatum_naechstes=datetime(2023, 10, 1, tzinfo=pytz.UTC),
Expand Down Expand Up @@ -203,9 +203,9 @@ async def test_good_data_set(self, customer_validation_manager):
pytest.param(
TripicaCustomerLoaderDataSet.model_construct( # type: ignore[call-arg]
powercloud_customer_id="",
geschaeftspartner=Geschaeftspartner.model_construct(),
geschaeftspartner=Geschaeftspartner.model_construct(), # type: ignore[call-arg]
rechnungs_adressen={
"contract_id_1": Adresse.model_construct(),
"contract_id_1": Adresse.model_construct(), # type: ignore[call-arg]
},
banks={
"contract_id_1": Bankverbindung.model_construct( # type: ignore[call-arg]
Expand All @@ -221,13 +221,13 @@ async def test_good_data_set(self, customer_validation_manager):
),
[
"geschaeftspartner.anrede: None is not an instance of ibims.bo4e.enum.anrede.Anrede",
"geschaeftspartner.name1: None is not an instance of str",
"geschaeftspartner.name1: value not provided",
"geschaeftspartner.name2: None is not an instance of str",
"geschaeftspartner.geburtstag: None is not an instance of datetime.datetime",
"geschaeftspartner.erstellungsdatum: None is not an instance of datetime.datetime",
"geschaeftspartner.externe_referenzen: None is not a list",
"rechnungs_adressen[contract_id=contract_id_1].ort: None is not an instance of str",
"rechnungs_adressen[contract_id=contract_id_1].postleitzahl: None is not an instance of str",
"rechnungs_adressen[contract_id=contract_id_1].ort: Not found",
"rechnungs_adressen[contract_id=contract_id_1].postleitzahl: value not provided",
"vertragskonten_mbas[ouid=1].cbas[ouid=11].erstellungsdatum: value not provided",
"vertragskonten_mbas[ouid=1].cbas[ouid=11].vertrag.vertragsnummer: value not provided",
"banks[contract_id=contract_id_1].bic is required for sepa_zahler",
Expand Down
14 changes: 8 additions & 6 deletions unittests/test_validation_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ async def test_good_data_set(self, resource_validation_manager: ValidationManage
good_data_set = TripicaResourceLoaderDataSet.model_construct(
marktlokation=Marktlokation.model_construct( # type: ignore[call-arg]
marktlokations_id="01234567890",
zugehoerige_messlokation=Messlokationszuordnung.model_construct(gueltig_seit=datetime(2023, 2, 8)),
zugehoerige_messlokation=Messlokationszuordnung.model_construct( # type: ignore[call-arg]
gueltig_seit=datetime(2023, 2, 8)
),
),
messlokation=Messlokation.model_construct(messlokations_id="DE0123401234012340123401234012340"),
vertrag=Vertrag.model_construct(sparte=Sparte.STROM),
vertrag=Vertrag.model_construct(sparte=Sparte.STROM), # type: ignore[call-arg]
zaehler=Zaehler.model_construct(zaehlernummer="893824827395hhjbd0"), # type: ignore[call-arg]
)
validation_summary = await resource_validation_manager.validate(good_data_set)
Expand All @@ -38,12 +40,12 @@ async def test_good_data_set(self, resource_validation_manager: ValidationManage
TripicaResourceLoaderDataSet.model_construct(
marktlokation=Marktlokation.model_construct( # type: ignore[call-arg]
marktlokations_id="01237890",
zugehoerige_messlokation=Messlokationszuordnung.model_construct(
zugehoerige_messlokation=Messlokationszuordnung.model_construct( # type: ignore[call-arg]
gueltig_seit=datetime(2023, 2, 10)
),
),
messlokation=Messlokation.model_construct(messlokations_id="EN0123401234012340123401234012340"),
vertrag=Vertrag.model_construct(sparte=Sparte.WASSER),
vertrag=Vertrag.model_construct(sparte=Sparte.WASSER), # type: ignore[call-arg]
zaehler=Zaehler.model_construct(zaehlernummer=" 893824827395hhjbd0"), # type: ignore[call-arg]
),
[
Expand All @@ -59,11 +61,11 @@ async def test_good_data_set(self, resource_validation_manager: ValidationManage
TripicaResourceLoaderDataSet.model_construct(
marktlokation=Marktlokation.model_construct(), # type: ignore[call-arg]
messlokation=Messlokation.model_construct(messlokations_id="DE0123401234012340123401234012340"),
vertrag=Vertrag.model_construct(sparte=Sparte.STROM),
vertrag=Vertrag.model_construct(sparte=Sparte.STROM), # type: ignore[call-arg]
zaehler=Zaehler.model_construct(zaehlernummer="893824827395hhjbd0"), # type: ignore[call-arg]
),
[
"marktlokation.marktlokations_id: None is not an instance of str",
"marktlokation.marktlokations_id: value not provided",
],
id="missing fields",
),
Expand Down

0 comments on commit eae2ce8

Please sign in to comment.