File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments