mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
expanded keys being checked in tests
This commit is contained in:
parent
8db3d29850
commit
facc81d741
1 changed files with 14 additions and 0 deletions
|
|
@ -248,3 +248,17 @@ def test_default_export_integration(db_session):
|
|||
# Check the houses
|
||||
|
||||
assert failed.shape[0]
|
||||
|
||||
assert df["total_retrofit_cost"].sum() == 41706.585999999996, (
|
||||
"Expected total retrofit cost to be 10000, got {}".format(df["total_retrofit_cost"].sum())
|
||||
)
|
||||
|
||||
assert df["predicted_post_works_sap"].sum() == 698.1, (
|
||||
"Expected total predicted post works SAP to be 698.1, got {}".format(df["predicted_post_works_sap"].sum())
|
||||
)
|
||||
|
||||
assert df["sap_points"].sum() == 100.10000000000001, (
|
||||
"Expected total SAP points increase to be 100.10000000000001, got {}".format(df["sap_points"].sum())
|
||||
)
|
||||
|
||||
assert df.shape == (10, 95), "Expected dataframe shape to be (10, 11), got {}".format(df.shape)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue