Skip to content

Commit

Permalink
use model dump
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed May 14, 2024
1 parent d6398a7 commit 469f0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/test_national.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_read_latest_national_values(db_session, api_client):
national_forecast_values[24].plevels["plevel_10"]
!= national_forecast_values[0].expected_power_generation_megawatts * 0.9
)
assert 'expected_power_generation_normalized' not in national_forecast_values[0].dict()
assert 'expected_power_generation_normalized' not in national_forecast_values[0].model_dump()


def test_read_latest_national_values_creation_limit(db_session, api_client):
Expand Down

0 comments on commit 469f0b6

Please sign in to comment.