File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 55# This module is part of GitPython and is released under
66# the BSD License: https://opensource.org/license/bsd-3-clause/
77import contextlib
8+ import inspect
89import logging
910import os
1011import os .path as osp
@@ -364,3 +365,11 @@ def counter_stderr(line):
364365
365366 self .assertEqual (count [1 ], line_count )
366367 self .assertEqual (count [2 ], line_count )
368+
369+ def test_execute_kwargs_set_agrees_with_method (self ):
370+ parameter_names = inspect .signature (cmd .Git .execute ).parameters .keys ()
371+ self_param , command_param , * most_params , extra_kwargs_param = parameter_names
372+ self .assertEqual (self_param , "self" )
373+ self .assertEqual (command_param , "command" )
374+ self .assertEqual (set (most_params ), cmd .execute_kwargs ) # Most important.
375+ self .assertEqual (extra_kwargs_param , "subprocess_kwargs" )
You can’t perform that action at this time.
0 commit comments