Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libs/langchain/tests/unit_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def test_something(): ...
# Used to avoid repeated calls to `util.find_spec`
required_pkgs_info: dict[str, bool] = {}

only_extended = config.getoption("--only-extended") or False
only_core = config.getoption("--only-core") or False
only_extended = config.getoption("--only-extended", default=False)
only_core = config.getoption("--only-core", default=False)

if not config.getoption("--community"):
if not config.getoption("--community", default=False):
skip_community = pytest.mark.skip(reason="need --community option to run")
for item in items:
if "community" in item.keywords:
Expand Down
Loading