Skip to content

Commit af7e467

Browse files
committed
Fix unit tests and address PR comments
1 parent a49e046 commit af7e467

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

unittests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def test_execution_modes_envvar_expansion(run_reframe, monkeypatch):
552552
assert returncode == 0
553553
assert 'Traceback' not in stdout
554554
assert 'Traceback' not in stderr
555-
assert "the following variables were not set: 'x'"
555+
assert "the following variables were not set: 'x'" in stdout
556556
assert 'Found 1 check(s)' in stdout
557557

558558

unittests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def test_select_subconfig(site_config):
225225
site_config.select_subconfig('testsys')
226226
assert len(site_config['systems']) == 1
227227
assert len(site_config['systems'][0]['partitions']) == 2
228-
assert len(site_config['modes']) == 1
228+
assert len(site_config['modes']) == 2
229229
assert site_config.get('systems/0/name') == 'testsys'
230230
assert site_config.get('systems/0/descr') == 'Fake system for unit tests'
231231
assert site_config.get('systems/0/hostnames') == ['testsys']

0 commit comments

Comments
 (0)