From b1513e66d5118483e33c50974ec50b8ab0b226ab Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Sun, 23 Mar 2025 14:03:14 -0700 Subject: [PATCH] fix: sleep after notebook test --- docs/conftest.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/conftest.py b/docs/conftest.py index bec535f77..ab4d7e998 100644 --- a/docs/conftest.py +++ b/docs/conftest.py @@ -4,6 +4,21 @@ # This source code is licensed under the terms described in the LICENSE file in # the root directory of this source tree. +import os +import time + + def pytest_collection_modifyitems(items): for item in items: item.name = item.name.replace(' ', '_') + + +def pytest_runtest_teardown(item): + interval_seconds = os.getenv("LLAMA_STACK_TEST_INTERVAL_SECONDS") + if interval_seconds: + time.sleep(float(interval_seconds)) + + +def pytest_configure(config): + config.option.tbstyle = "short" + config.option.disable_warnings = True