Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nweires committed Mar 21, 2024
1 parent 6260444 commit 1524f87
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion buildstockbatch/test/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion buildstockbatch/test/test_docker_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1524f87

Please sign in to comment.