mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-07 05:30:39 +00:00
community[patch]: Prevent unit tests from making network requests (#23180)
* Prevent unit tests from making network requests
This commit is contained in:
parent
ca798bc6ea
commit
1007a715a5
@ -15,17 +15,20 @@ coverage:
|
|||||||
--cov-report term-missing:skip-covered \
|
--cov-report term-missing:skip-covered \
|
||||||
$(TEST_FILE)
|
$(TEST_FILE)
|
||||||
|
|
||||||
test tests integration_tests:
|
test tests:
|
||||||
|
poetry run pytest --disable-socket --allow-unix-socket $(TEST_FILE)
|
||||||
|
|
||||||
|
integration_tests:
|
||||||
poetry run pytest $(TEST_FILE)
|
poetry run pytest $(TEST_FILE)
|
||||||
|
|
||||||
test_watch:
|
test_watch:
|
||||||
poetry run ptw --snapshot-update --now . -- -vv -x tests/unit_tests
|
poetry run ptw --disable-socket --allow-unix-socket --snapshot-update --now . -- -vv -x tests/unit_tests
|
||||||
|
|
||||||
check_imports: $(shell find langchain_community -name '*.py')
|
check_imports: $(shell find langchain_community -name '*.py')
|
||||||
poetry run python ./scripts/check_imports.py $^
|
poetry run python ./scripts/check_imports.py $^
|
||||||
|
|
||||||
extended_tests:
|
extended_tests:
|
||||||
poetry run pytest --only-extended tests/unit_tests
|
poetry run pytest --disable-socket --allow-unix-socket --only-extended tests/unit_tests
|
||||||
|
|
||||||
|
|
||||||
######################
|
######################
|
||||||
|
Loading…
Reference in New Issue
Block a user