Skip to content

More robust import of tests.large_text module #10606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/litellm/litellm_core_utils/test_token_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pytest

sys.path.insert(
0, os.path.abspath("../../..")
0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
) # Adds the parent directory to the system path
from unittest.mock import AsyncMock, MagicMock, patch

Expand All @@ -23,7 +23,7 @@
from litellm import create_pretrained_tokenizer, decode, encode, get_modified_max_tokens
from litellm import token_counter as token_counter_old
from litellm.litellm_core_utils.token_counter import token_counter as token_counter_new
from tests.large_text import text
from large_text import text


def token_counter_both_assert_same(**args):
Expand Down
Loading