From 22e067d663ea636a60e2d36e7d233d01861dfadf Mon Sep 17 00:00:00 2001 From: Eric Ma Date: Thu, 5 Sep 2024 21:06:29 -0400 Subject: [PATCH] =?UTF-8?q?test(pytest=20configuration)=F0=9F=94=A7:=20Upd?= =?UTF-8?q?ate=20pytest=20markers=20and=20coverage=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change pytest marker from 'llm' to 'llm_eval' in test_docs.py. - Update pytest addopts in pyproject.toml to use the new 'llm_eval' marker. - Update sha256 in pixi.lock for llamabot package. --- pixi.lock | 2 +- pyproject.toml | 2 +- tests/cli/test_docs.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pixi.lock b/pixi.lock index 49602660..d4f5e169 100644 --- a/pixi.lock +++ b/pixi.lock @@ -6236,7 +6236,7 @@ packages: name: llamabot version: 0.6.0 path: . - sha256: 951de02851fbf0fb3c624d48da2d07013861a8c6e7cc12c23a795731835326ee + sha256: 6baa34ce4b60f7b37c48902f9f112ea500aefd7aaddbcb444931ab8b317e8f8f requires_dist: - openai - panel>=1.3.0 diff --git a/pyproject.toml b/pyproject.toml index dd1ca2c8..6b997bf2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ whitelist-regex = [] color = true [tool.pytest.ini_options] -addopts = "-v --cov --cov-report term-missing -m 'not llm'" +addopts = "-v --cov --cov-report term-missing -m 'not llm_eval'" testpaths = [ "tests", ] diff --git a/tests/cli/test_docs.py b/tests/cli/test_docs.py index e47b1730..f99ad882 100644 --- a/tests/cli/test_docs.py +++ b/tests/cli/test_docs.py @@ -182,7 +182,7 @@ def next_prime(current_number): ) -@pytest.mark.llm +@pytest.mark.llm_eval @pytest.mark.parametrize( "original_docs,new_source_code,system_prompt,pydantic_model,expected_status", [(tuple(case.values())) for case in test_cases],