aboutsummaryrefslogtreecommitdiff
path: root/test_utils
diff options
context:
space:
mode:
Diffstat (limited to 'test_utils')
-rw-r--r--test_utils/conftest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test_utils/conftest.py b/test_utils/conftest.py
index 0946209..af2ddfe 100644
--- a/test_utils/conftest.py
+++ b/test_utils/conftest.py
@@ -175,7 +175,8 @@ def git_key_path(
print("GIT CREDS", settings.git_creds)
assert settings.git_creds, "Must define key to download alternative models"
fn = tmp_path_factory.mktemp("keys") / "git_creds"
- fn.write_text(settings.git_creds, encoding="utf-8")
+ key_content = settings.git_creds.replace("\\n", "\n")
+ fn.write_text(key_content, encoding="utf-8")
os.chmod(fn, stat.S_IRUSR | stat.S_IWUSR)
yield Path(fn)