mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Remove extra assertions
This commit is contained in:
parent
755bc35585
commit
f8c016cd48
@ -103,12 +103,10 @@ description:
|
||||
mod = 'four.five.six'
|
||||
with pytest.raises(ImportError) as import_error:
|
||||
self.resolver.load_module(mod)
|
||||
assert 'No module named ansible.modules.{0}'.format(mod) in str(import_error.value)
|
||||
|
||||
mod = 'i.even.do.not.exist.at.all'
|
||||
with pytest.raises(LoaderError) as loader_error:
|
||||
self.resolver.load_module(mod)
|
||||
assert 'Module "{0}" was not found'.format(mod) in str(loader_error.value)
|
||||
|
||||
def test_resolver_module_loader(self):
|
||||
'''
|
||||
@ -128,4 +126,3 @@ description:
|
||||
patch('salt.modules.ansiblegate.importlib.import_module', lambda x: x):
|
||||
with pytest.raises(LoaderError) as loader_error:
|
||||
self.resolver.load_module('something.strange')
|
||||
assert 'Module "something.strange" was not found' in str(loader_error)
|
||||
|
Loading…
Reference in New Issue
Block a user