mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-05-26 07:39:22 +02:00
CLI tests: add opt-in envvar EYNOLLAH_OPTIONS for device selection,
model directory etc.
This commit is contained in:
parent
1ed633bc25
commit
87cce6c963
1 changed files with 3 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from typing import List
|
||||
import os
|
||||
import pytest
|
||||
import logging
|
||||
|
||||
|
|
@ -31,6 +32,8 @@ def run_eynollah_ok_and_check_logs(
|
|||
subcommand,
|
||||
*args
|
||||
]
|
||||
if 'EYNOLLAH_OPTIONS' in os.environ:
|
||||
args = os.environ['EYNOLLAH_OPTIONS'].split() + args
|
||||
if pytestconfig.getoption('verbose') > 0:
|
||||
args = ['-l', 'DEBUG'] + args
|
||||
caplog.set_level(logging.INFO)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue