Skip to content

Commit

Permalink
fmmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Apr 10, 2024
1 parent 2bf6bce commit b899bea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/langsmith/_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def unit(*args: Any, **kwargs: Any) -> Callable:
"LANGCHAIN_TEST_TRACKING is set to 'false'."
" Skipping LangSmith test tracking."
)

if args and callable(args[0]):
func = args[0]
if disable_tracking:
Expand All @@ -226,6 +226,7 @@ def wrapper(*test_args, **test_kwargs):
_run_test(func, *test_args, **test_kwargs, langtest_extra=langtest_extra)

return wrapper

return decorator


Expand Down

0 comments on commit b899bea

Please sign in to comment.