Rename test scripts
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
f2e6df7448
commit
fd3abc6aec
@ -121,6 +121,27 @@ def test_envfile(script_runner, script, config, suite, masters, minions):
|
||||
assert os.path.isfile(envfile) is False
|
||||
|
||||
|
||||
@pytest.mark.parametrize('config', ['complete'], indirect=True)
|
||||
def test_test_undeclared(script_runner, script, config):
|
||||
result = script_runner.run(script, '--config', config, '--suite', 'one_minion', '--test')
|
||||
assert not result.success
|
||||
assert result.stderr.endswith('Tests requested but not declared in suite configuration\n')
|
||||
|
||||
|
||||
@pytest.mark.parametrize('config', ['complete'], indirect=True)
|
||||
def test_test_undefined(script_runner, script, config):
|
||||
result = script_runner.run(script, '--config', config, '--suite', 'one_minion_bogus_test', '--test')
|
||||
assert not result.success
|
||||
assert result.stderr.endswith('Specified test is not defined\n')
|
||||
|
||||
|
||||
@pytest.mark.parametrize('config', ['complete'], indirect=True)
|
||||
def test_test_incomplete(script_runner, script, config):
|
||||
result = script_runner.run(script, '--config', config, '--suite', 'one_minion_bogus_test_2', '--test')
|
||||
assert not result.success
|
||||
assert result.stderr.endswith('Incomplete test configuration\n')
|
||||
|
||||
|
||||
@pytest.mark.parametrize('config', ['complete'], indirect=True)
|
||||
@pytest.mark.parametrize('suite', [
|
||||
'one_minion',
|
Loading…
Reference in New Issue
Block a user