-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
"""Pytest configuration for 4C integration tests.""" | ||
|
||
import pytest | ||
|
||
|
||
@pytest.fixture(name="setup_symbolic_links_fourc", autouse=True) | ||
def fixture_setup_symbolic_links_fourc(fourc_link_paths): | ||
"""Set-up of 4C symbolic links. | ||
Args: | ||
fourc_link_paths (Path): destination for symbolic links to executables | ||
""" | ||
dst_fourc = fourc_link_paths[0] | ||
|
||
# create link to default 4C executable location if no link is available | ||
if not dst_fourc.is_symlink(): | ||
raise FileNotFoundError("Failed to create link to default 4C location.") | ||
|
||
# check if existing link to fourc works and points to a valid file | ||
if not dst_fourc.resolve().exists(): | ||
raise FileNotFoundError( | ||
f"The following link seems to be dead: {dst_fourc}\n" | ||
f"It points to (non-existing): {dst_fourc.resolve()}\n" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters