Add some tests for check_dummies (#19146)

This commit is contained in:
Sylvain Gugger
2022-09-21 14:54:09 -04:00
committed by GitHub
parent d5848a574a
commit 3c7b965bcd
4 changed files with 131 additions and 3 deletions

View File

@@ -105,9 +105,10 @@ def create_dummy_object(name, backend_name):
return DUMMY_CLASS.format(name, backend_name)
def create_dummy_files():
def create_dummy_files(backend_specific_objects=None):
"""Create the content of the dummy files."""
backend_specific_objects = read_init()
if backend_specific_objects is None:
backend_specific_objects = read_init()
# For special correspondence backend to module name as used in the function requires_modulename
dummy_files = {}