Skip to content

Commit

Permalink
adding fake conda prefix for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerket committed Oct 10, 2023
1 parent e1f03be commit 7cee175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildstockbatch/test/test_eagle.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_qos_high_job_submit(mock_subprocess, basic_residential_project_file, mo
assert '--qos=high' in mock_subprocess.run.call_args[0][0]


def test_queue_jobs_minutes_per_sim(mocker, basic_residential_project_file):
def test_queue_jobs_minutes_per_sim(mocker, basic_residential_project_file, monkeypatch):
mock_subprocess = mocker.patch('buildstockbatch.eagle.subprocess')
mocker.patch.object(EagleBatch, 'weather_dir', None)
mock_subprocess.run.return_value.stdout = 'Submitted batch job 1\n'
Expand All @@ -209,6 +209,7 @@ def test_queue_jobs_minutes_per_sim(mocker, basic_residential_project_file):
}
})
shutil.rmtree(results_dir)
monkeypatch.setenv('CONDA_PREFIX', 'something')

batch = EagleBatch(project_filename)
for i in range(1, 11):
Expand Down

0 comments on commit 7cee175

Please sign in to comment.