mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-20 00:11:50 +00:00
style: explicit assert on noop test (TQ001 zero-assert budget)
BerriAI/litellm CI's test-quality budget flagged test_raise_if_missing_package_is_noop_when_present as a zero-assert test (TQ001). Make the intent explicit: raise_if_missing_package() must return None when the package IS installed.
This commit is contained in:
parent
ad779be901
commit
7f796fce9d
1 changed files with 1 additions and 1 deletions
|
|
@ -206,4 +206,4 @@ def test_raise_if_missing_package_is_noop_when_present() -> None:
|
|||
raise_if_missing_package,
|
||||
)
|
||||
|
||||
raise_if_missing_package() # must not raise
|
||||
assert raise_if_missing_package() is None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue