Skip to content

Commit

Permalink
Filename as parameters and --shell option.
Browse files Browse the repository at this point in the history
  • Loading branch information
WaVEV committed May 5, 2024
1 parent 3115e63 commit 09ccb18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/dbshell/test_mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def test_connect_with_fileconfigs(self):
"--password",
"somepassword",
"mongodb://host:3333/somedbname",
"--shell",
"path_to_file1",
"path_to_file2",
]
Expand All @@ -110,8 +111,8 @@ def test_connect_with_fileconfigs(self):
"PASSWORD": "somepassword",
"HOST": "host",
"PORT": "3333",
"OPTIONS": {"filenames": ["path_to_file1", "path_to_file2"]},
}
},
["path_to_file1", "path_to_file2"],
),
(expected_args, expected_env),
)
Expand All @@ -131,7 +132,7 @@ def test_empty_host_parameter(self):
},
["--help"],
),
(["mongosh", "--help"], None),
(["mongosh", "somedbname", "--help"], None),
)

def test_crash_password_does_not_leak(self):
Expand Down

0 comments on commit 09ccb18

Please sign in to comment.