mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
tests: timeout only on functions, excluding tests fixtures
Sometimes, `tmp_dir` fixtures take longer than a second. Using `func_only` makes it only consider duration of test function run, excluding fixtures duration.
This commit is contained in:
committed by
Saugat Pachhai
parent
b84227db89
commit
7bc906011f
@@ -10,7 +10,7 @@ from dvc.repo.experiments.init import init
|
||||
from dvc.stage.exceptions import DuplicateStageName
|
||||
|
||||
# the tests may hang on prompts on failure
|
||||
pytestmark = pytest.mark.timeout(1)
|
||||
pytestmark = pytest.mark.timeout(1, func_only=True)
|
||||
|
||||
|
||||
def test_init_simple(tmp_dir, scm, dvc, capsys):
|
||||
|
||||
Reference in New Issue
Block a user