mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 15:50:01 -08:00
tests: pass custom env
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user