Skip to content

Commit

Permalink
[PYG-207] 🐨 Toolkit for test model governance (#289)
Browse files Browse the repository at this point in the history
* build: added dependency

* tests: updated examples

* refacor: model containers and views of omni

* tests: Moving Omni data model around

* refactor: added node types

* refactor: moved over windturbine

* tests: moved over remaining models

* refactor: moved over timeseries as well

* refactor: fix

* refactor: minor adjustments
  • Loading branch information
doctrino committed Aug 18, 2024
1 parent 182f079 commit 8b97785
Show file tree
Hide file tree
Showing 93 changed files with 3,772 additions and 1,551 deletions.
2 changes: 1 addition & 1 deletion docs/quickstart/cdf_streamlit.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ adding `cognite-pygen` to the installed packages under `settings`.

```text
pyodide-http==0.2.1
cognite-sdk==7.54.4
cognite-sdk==7.54.13
pydantic==1.10.7
cognite-pygen==0.99.32
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class EquipmentUnitClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 1.10.7
Data Model:
Expand Down
2 changes: 1 addition & 1 deletion examples-pydantic-v1/omni_multi_pydantic_v1/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class OmniMultiClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 1.10.7
"""
Expand Down
2 changes: 1 addition & 1 deletion examples-pydantic-v1/omni_pydantic_v1/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class OmniClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 1.10.7
Data Model:
Expand Down
2 changes: 1 addition & 1 deletion examples-pydantic-v1/omni_sub_pydantic_v1/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class OmniSubClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 1.10.7
Data Model:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ScenarioInstanceClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 1.10.7
Data Model:
Expand Down
2 changes: 1 addition & 1 deletion examples-pydantic-v1/windmill_pydantic_v1/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WindmillClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 1.10.7
Data Model:
Expand Down
2 changes: 1 addition & 1 deletion examples/equipment_unit/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class EquipmentUnitClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 2.8.2
Data Model:
Expand Down
2 changes: 1 addition & 1 deletion examples/omni/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class OmniClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 2.8.2
Data Model:
Expand Down
2 changes: 1 addition & 1 deletion examples/omni_multi/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class OmniMultiClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 2.8.2
"""
Expand Down
2 changes: 1 addition & 1 deletion examples/omni_sub/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class OmniSubClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 2.8.2
Data Model:
Expand Down
2 changes: 1 addition & 1 deletion examples/scenario_instance/client/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ScenarioInstanceClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 2.8.2
Data Model:
Expand Down
2 changes: 1 addition & 1 deletion examples/windmill/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WindmillClient:
Generated with:
pygen = 0.99.32
cognite-sdk = 7.54.4
cognite-sdk = 7.54.13
pydantic = 2.8.2
Data Model:
Expand Down
1,956 changes: 1,175 additions & 781 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ pytest-icdiff = "^0.8"
Faker = "*"
hypothesis = "*"
jupyterlab = "*"
cognite-toolkit = "0.2.17"

[tool.pytest.ini_options]
filterwarnings = [
Expand Down
2 changes: 2 additions & 0 deletions tests/_system.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This part is used by cdf-toolkit to keep track of the version and help you upgrade.
cdf_toolkit_version: 0.2.17
15 changes: 15 additions & 0 deletions tests/config.dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
environment:
project: python-pygen
type: dev
selected:
- models
- data_testing

variables:
modules:
models:
pygen_models_space: sp_pygen_models
pygen_power: sp_pygen_power
pygen_other_models_space: sp_pygen_models_other
data_testing:
ds_windturbine_timeseries: ds_windturbine_timeseries
41 changes: 0 additions & 41 deletions tests/data_models/Omni/views/create_views.py

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8b97785

Please sign in to comment.