Skip to content
Snippets Groups Projects

fixed tests which depend on unique names

Merged Sebastien Ponce requested to merge sponce_uniqueAlgoName into master
Files
4
@@ -87,17 +87,3 @@ def test_string_datahandle_exception(caplog):
# Use the DataHandle's concrete string location raises an exception
with pytest.raises(TypeError, match=".*only accepts DataHandle.*"):
TES(pvs.location)
def test_doctests():
"""
Check the doctests for all functions in the same modules
of those listed in funcs
"""
#Just pick an functor as example
funcs = [TES, log]
for func in funcs:
module = inspect.getmodule(func)
globs = {func.__name__: module}
result = doctest.testmod(module, globs=globs)
assert result.failed == 0
Loading