16 lines
424 B
Python
16 lines
424 B
Python
from __future__ import annotations
|
|
|
|
|
|
def test_cursor_timeout_seconds_default(monkeypatch):
|
|
import daily.cursor_client as cc
|
|
|
|
monkeypatch.delenv("CURSOR_TIMEOUT", raising=False)
|
|
assert cc.cursor_timeout_seconds() == 600.0
|
|
|
|
|
|
def test_cursor_timeout_seconds_from_env(monkeypatch):
|
|
import daily.cursor_client as cc
|
|
|
|
monkeypatch.setenv("CURSOR_TIMEOUT", "900")
|
|
assert cc.cursor_timeout_seconds() == 900.0
|