File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
langchain_v1/tests/unit_tests
langchain/tests/unit_tests Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ def test_something(): ...
4949 # Used to avoid repeated calls to `util.find_spec`
5050 required_pkgs_info : dict [str , bool ] = {}
5151
52- only_extended = config .getoption ("--only-extended" ) or False
53- only_core = config .getoption ("--only-core" ) or False
52+ only_extended = config .getoption ("--only-extended" , default = False )
53+ only_core = config .getoption ("--only-core" , default = False )
5454
55- if not config .getoption ("--community" ):
55+ if not config .getoption ("--community" , default = False ):
5656 skip_community = pytest .mark .skip (reason = "need --community option to run" )
5757 for item in items :
5858 if "community" in item .keywords :
Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ def test_something(): ...
8080 # Used to avoid repeated calls to `util.find_spec`
8181 required_pkgs_info : dict [str , bool ] = {}
8282
83- only_extended = config .getoption ("--only-extended" ) or False
84- only_core = config .getoption ("--only-core" ) or False
83+ only_extended = config .getoption ("--only-extended" , default = False )
84+ only_core = config .getoption ("--only-core" , default = False )
8585
8686 if only_extended and only_core :
8787 msg = "Cannot specify both `--only-extended` and `--only-core`."
You can’t perform that action at this time.
0 commit comments