tests: pass custom env

This commit is contained in:
Benex254
2024-09-29 22:09:57 +03:00
parent e9bacf4f9c
commit 3474e9520c
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ class AnimeProvider:
HEADERS = {}
def __init__(
self, cache_requests=os.environ.get("FASTANIME_CACHE_REQUESTS", "true")
self, cache_requests=os.environ.get("FASTANIME_CACHE_REQUESTS", "false")
) -> None:
if cache_requests.lower() == "true":
from ...constants import APP_CACHE_DIR

View File

@@ -6,7 +6,7 @@ from fastanime.cli import run_cli
@pytest.fixture
def runner():
return CliRunner()
return CliRunner(env={"FASTANIME_CACHE_REQUESTS": "false"})
def test_main_help(runner: CliRunner):