From 1524f870b4ee871f92ba7fb5148285db644d9494 Mon Sep 17 00:00:00 2001 From: Natalie Weires Date: Thu, 21 Mar 2024 21:14:49 +0000 Subject: [PATCH] Update tests --- buildstockbatch/test/test_base.py | 2 +- buildstockbatch/test/test_docker_base.py | 2 +- .../test_openstudio_buildstock/resources/buildstock_good.csv | 4 ++-- .../test_openstudio_buildstock/resources/options_lookup.tsv | 5 +++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/buildstockbatch/test/test_base.py b/buildstockbatch/test/test_base.py index 5dbefcbd..13bfa703 100644 --- a/buildstockbatch/test/test_base.py +++ b/buildstockbatch/test/test_base.py @@ -165,7 +165,7 @@ def test_upload_files(mocker, basic_residential_project_file): if call_function == "resource": assert call[1][0] in ["s3"] # call[1] is for the positional arguments if call_function == "Bucket": - assert call[1][0] == s3_bucket + assert call[1][0] == s3_bucket, call if call_function == "upload_file": source_file_path = call[1][0] destination_path = call[1][1] diff --git a/buildstockbatch/test/test_docker_base.py b/buildstockbatch/test/test_docker_base.py index 88e70f1a..3899fe3d 100644 --- a/buildstockbatch/test/test_docker_base.py +++ b/buildstockbatch/test/test_docker_base.py @@ -100,7 +100,7 @@ def test_get_epws_to_download(): } epws = DockerBatchBase.get_epws_to_download(sim_dir, jobs_d) - assert epws == set(["weather/G0100970.epw", "weather/G0100830.epw"]) + assert epws == set(["weather/G2500210.epw", "weather/G2601390.epw"]) def test_run_simulations(basic_residential_project_file): diff --git a/buildstockbatch/test/test_inputs/test_openstudio_buildstock/resources/buildstock_good.csv b/buildstockbatch/test/test_inputs/test_openstudio_buildstock/resources/buildstock_good.csv index d69de02c..0a98f57f 100644 --- a/buildstockbatch/test/test_inputs/test_openstudio_buildstock/resources/buildstock_good.csv +++ b/buildstockbatch/test/test_inputs/test_openstudio_buildstock/resources/buildstock_good.csv @@ -1,6 +1,6 @@ Building,Bedroom,Location,Vintage,State,Insulation Wall,Insulation Slab,Zipcode,County 1,1,AL_Mobile-Rgnl.AP.722230,<1950,CO,Good Option,None,36608,County1 2,3,AL_Mobile-Rgnl.AP.722230,1940s,CO,Good Option,None,36601,County1 -3,2,AL_Mobile-Rgnl.AP.722230,2010s,VA,Good Option,None,36602,County1 +3,2,AL_Mobile-Rgnl.AP.722230,2010s,VA,Good Option,None,36602,County2 4,1,AL_Mobile-Rgnl.AP.722230,2000s,VA,Good Option,None,36603,County2 -5,2,AL_Mobile-Rgnl.AP.722230,1970s,VA,Good Option,None,36604,County2 +5,2,AL_Mobile-Rgnl.AP.722230,1970s,VA,Good Option,None,36604,County3 diff --git a/buildstockbatch/test/test_inputs/test_openstudio_buildstock/resources/options_lookup.tsv b/buildstockbatch/test/test_inputs/test_openstudio_buildstock/resources/options_lookup.tsv index 73032a93..39905259 100644 --- a/buildstockbatch/test/test_inputs/test_openstudio_buildstock/resources/options_lookup.tsv +++ b/buildstockbatch/test/test_inputs/test_openstudio_buildstock/resources/options_lookup.tsv @@ -14,8 +14,9 @@ Vintage 2000s Vintage 2010s State VA State CO -County County1 weather_station_epw_filepath=weather/G0100970.epw -County County2 weather_station_epw_filepath=weather/G0100830.epw +County County1 weather_station_epw_filepath=weather/G2500210.epw +County County2 weather_station_epw_filepath=weather/G2601210.epw +County County3 weather_station_epw_filepath=weather/G2601390.epw Bedroom 1 Bedroom 2 Bedroom 3