Skip to content

Commit 8b97e70

Browse files
committed
fix: tests
1 parent be2a789 commit 8b97e70

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/osw/auth.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ def save_credentials_to_file(
283283
# Creating or updating .gitignore file in the working directory
284284
cwd = Path.cwd()
285285
potential_fp = [
286-
cwd / "osw_files",
287286
cwd / ".gitignore",
288287
cwd.parent / ".gitignore",
289288
]

tests/integration/test_express.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ def test_init_with_cred_filepath_but_missing_credentials(
110110
mocked_getpass = mocker.patch("getpass.getpass")
111111
mocked_input.return_value = wiki_username
112112
mocked_getpass.return_value = wiki_password
113-
cred_filepath = Path.cwd() / "accounts.pwd.yaml"
113+
cred_filepath = Path.cwd() / "osw_files" / "accounts.pwd.yaml"
114+
if not cred_filepath.parent.exists():
115+
cred_filepath.parent.mkdir(parents=True)
114116
with open(cred_filepath, "w") as f:
115117
yaml.dump({"dummy.domain": {"username": "dummy", "password": "password"}}, f)
116118
import osw.express

0 commit comments

Comments
 (0)