File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
opengrok-tools/src/test/python Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,8 @@ def test_get_repos_for_project(monkeypatch):
287
287
Test argument passing between get_repos_for_project() and get_repository()
288
288
"""
289
289
project_name = 'foo'
290
- proxy_dict = {}
290
+ proxy_dict = {"http_proxy" : "http://foo.bar:80" ,
291
+ "https_proxy" : "http://foo.bar:80" }
291
292
git_cmd_path = "/foo/git"
292
293
commands = {"git" : git_cmd_path }
293
294
timeout = 314159
@@ -318,7 +319,7 @@ def mock_get_repo_type(*args):
318
319
git_repo = repos [0 ]
319
320
assert git_repo .timeout == timeout
320
321
assert git_repo .command == git_cmd_path
321
- assert git_repo .env == proxy_dict # XXX contains
322
+ assert git_repo .env . items () >= proxy_dict . items ()
322
323
323
324
# Now ignore the repository
324
325
repos = get_repos_for_project (project_name , None , source_root ,
You can’t perform that action at this time.
0 commit comments