mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
test(chatgpt): keep authenticator tests out of the real token directory
This commit is contained in:
parent
29baf5a6bd
commit
94f34b7032
1 changed files with 3 additions and 3 deletions
|
|
@ -25,9 +25,9 @@ def _make_jwt(payload: dict) -> str:
|
|||
|
||||
class TestChatGPTAuthenticator:
|
||||
@pytest.fixture
|
||||
def authenticator(self):
|
||||
with patch("os.path.exists", return_value=True):
|
||||
return Authenticator()
|
||||
def authenticator(self, tmp_path, monkeypatch):
|
||||
monkeypatch.setenv("CHATGPT_TOKEN_DIR", str(tmp_path))
|
||||
return Authenticator()
|
||||
|
||||
def test_get_access_token_from_file(self, authenticator):
|
||||
future_time = time.time() + 3600
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue