Fix passation d'environement.

This commit is contained in:
Simon Pistache 2023-05-08 11:52:26 +02:00
parent 429acc65c2
commit c1a221bd8a

View File

@ -46,8 +46,8 @@ def validate_brightness_image(working_path, theme_config, high_light, image_list
@pytest.fixture
def working_path():
# get the global variables containing gitlab-given project slug.
project_slug = os.environ["WPP_SLUG"]
root_folder = os.environ["WPP_ROOT"]
project_slug = os.environ["RELEASE_VERSION"]
root_folder = os.environ["ENTRY_FOLDER"]
working_path = Path(root_folder, project_slug)
if not working_path.is_dir():
raise FileNotFoundError(f"No project found for the given {working_path}.")