tests: optimize test durations and refactor test fixtures (#3713)
* Refactor test fixtures and imports for optimization - Reordered and optimized imports in `conftest.py`. - Changed return statements to yield in `basic_graph` and `create_webhook` fixtures for better resource management. - Added cleanup step to `create_webhook` fixture to delete created webhook after test completion. * Refactor imports and add placeholder client fixture in test_ChatOllama_component.py * Add pytest fixture 'client' to test_graph.py * Add pytest fixture 'client' to test_callback_graph.py for test optimization * Add 'unit_tests_looponfail' target to Makefile for running unit tests with loop-on-fail option * Optimize test durations and update test cases in various modules
This commit is contained in:
parent
9b83f44611
commit
fcf780bf42
6 changed files with 516 additions and 304 deletions
3
Makefile
3
Makefile
|
|
@ -148,6 +148,9 @@ else
|
|||
$(args)
|
||||
endif
|
||||
|
||||
unit_tests_looponfail:
|
||||
@make unit_tests args="-f"
|
||||
|
||||
integration_tests:
|
||||
poetry run pytest src/backend/tests/integration \
|
||||
--instafail -ra \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue