This commit is contained in:
gwen 2024-10-01 15:33:30 +02:00
parent d9b76e3bf2
commit bf22eab624

View file

@ -22,6 +22,9 @@ dico_dirs = Path('../rougail/tests/dictionaries')
#envtest = _here / 'tests' / 'envvars' #envtest = _here / 'tests' / 'envvars'
#test_ok = [dico_dirs / env_test_folder] #test_ok = [dico_dirs / env_test_folder]
#let's save the original environment
save = environ.copy()
test_ok = set() test_ok = set()
excludes = set() excludes = set()
test_ok -= excludes test_ok -= excludes
@ -34,6 +37,7 @@ test_ok = list(test_ok)
test_ok.sort() test_ok.sort()
@fixture(scope="module", params=test_ok) @fixture(scope="module", params=test_ok)
def test_dir(request): def test_dir(request):
return request.param return request.param
@ -77,6 +81,8 @@ def test_dictionaries_warning(test_dir):
expected = load(json_file) expected = load(json_file)
# here is the effective test # here is the effective test
assert expected == config_dict assert expected == config_dict
#teardown: set the original environement again
environ = save
def populate(dest_dir, rougailconfig): def populate(dest_dir, rougailconfig):