Skip to content

Commit eaad400

Browse files
committed
docs(dpi_ng/consent): fix dead test, add unit test command
1 parent 8f25e9c commit eaad400

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

src/sap_cloud_sdk/core/dpi_ng/consent/user-guide.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,3 +993,9 @@ with create_client(config=config) as client:
993993
```
994994

995995
Or call `client.close()` explicitly when not using `with`.
996+
997+
## Running the Unit Tests
998+
999+
```bash
1000+
uv run pytest tests/core/unit/dpi_ng/ -v
1001+
```

tests/core/unit/dpi_ng/consent/unit/entities/test_configuration_entities.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import annotations
44

55
import pytest
6-
from odata.property import BooleanProperty
76

87
from tests.core.unit.dpi_ng.consent.unit.entities.conftest import (
98
CONFIGURATION_ENTITY_SPECS,
@@ -27,13 +26,3 @@ def test_pk_fields_marked(config_entities, name, spec):
2726
for pk_field in spec["pk"]:
2827
prop = getattr(cls, pk_field)
2928
assert prop.primary_key is True
30-
31-
32-
@pytest.mark.parametrize(
33-
"name,spec",
34-
[(n, s) for n, s in CONFIGURATION_ENTITY_SPECS.items() if s["bool"]],
35-
)
36-
def test_bool_fields(config_entities, name, spec):
37-
cls = entity_by_name(config_entities, name)
38-
for field in spec["bool"]:
39-
assert isinstance(getattr(cls, field), BooleanProperty)

0 commit comments

Comments
 (0)