diff --git a/tests/test_load.py b/tests/test_load.py index ecf3780..be6d8eb 100644 --- a/tests/test_load.py +++ b/tests/test_load.py @@ -24,9 +24,8 @@ envtest = _here / 'tests' / 'envvars' test_ok = set() test_raise = set() for test in listdir(dico_dirs): - if isdir(join(envtest, test)): - test_ok.add(test) - elif test != '__pycache__': + test_ok.add(test) + if test != '__pycache__': test_raise.add(test) #test_ok = [dico_dirs / env_test_folder] @@ -43,7 +42,7 @@ def _test_dictionaries(test_dir): rougailconfig = RougailConfig.copy() rougailconfig['step.user_data'] = ['environment'] rougailconfig['main_namespace'] = None - dirs = [str(test_dir / 'dictionaries' / 'rougail')] + dirs = [str(test_dir + '/dictionaries/rougail')] rougailconfig['custom_types']['custom'] = CustomOption rougailconfig['main_dictionaries'] = dirs return rougailconfig