Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
tanushree04 committed Aug 4, 2023
1 parent 7157025 commit 4885af4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/uo_cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def select_measures(test_dir, measure_name_list, workflow = 'base_workflow.osw',
system("cp #{spec_dir / 'spec_files' / 'baseline_scenario_ghe.csv'} #{test_scenario_ghe}")
puts "copied #{test_scenario_ghe}"
system("#{call_cli} run --scenario #{test_scenario_ghe} --feature #{test_feature_ghe}")
expect((test_directory / 'run' / 'baseline_scenario_ghe' / '8' / 'failed.job').exist?).to be true
expect((test_directory / 'run' / 'baseline_scenario_ghe' / '8' / 'finished.job').exist?).to be true
expect((test_directory / 'run' / 'baseline_scenario_ghe' / '9' / 'finished.job').exist?).to be true
expect((test_directory / 'run' / 'baseline_scenario_ghe' / '10' / 'finished.job').exist?).to be true
end
Expand Down Expand Up @@ -519,13 +519,13 @@ def select_measures(test_dir, measure_name_list, workflow = 'base_workflow.osw',
it 'creates a system parameter file with GHE properties' do
system("#{call_cli} des_params --scenario #{test_scenario_ghe} --feature #{test_feature_ghe} --sys-param-file #{system_parameters_file} --ghe")
expect(system_parameters_file.exist?).to be true
expect((test_directory / 'run' / 'baseline_scenario' / 'ghe_dir').exist?).to be true
expect((test_directory_ghe / 'run' / 'baseline_scenario_ghe' / 'ghe_dir').exist?).to be true
end

it 'successfully calls the Thermal Network repository for GHE Sizing' do
system("#{call_cli} ghe_size --sys-param #{system_parameters_file} --scenario #{test_scenario_ghe} --feature #{test_feature_ghe}")
expect((test_directory / 'run' / 'baseline_scenario' / 'ghe_dir').exist?).to be true
expect((test_directory / 'run' / 'baseline_scenario' / 'ghe_dir').empty?).to be false
expect((test_directory / 'run' / 'baseline_scenario_ghe' / 'ghe_dir').exist?).to be true
expect((test_directory / 'run' / 'baseline_scenario_ghe' / 'ghe_dir').empty?).to be false
end

it 'successfully runs the rnm workflow' do
Expand Down

0 comments on commit 4885af4

Please sign in to comment.