aboutsummaryrefslogtreecommitdiffstats
path: root/test/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/helper.py')
-rw-r--r--test/helper.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/helper.py b/test/helper.py
index 963c40508..b40ffe3ce 100644
--- a/test/helper.py
+++ b/test/helper.py
@@ -22,6 +22,14 @@ from yt_dlp.utils import (
)
+if "pytest" in sys.modules:
+ import pytest
+ is_download_test = pytest.mark.download
+else:
+ def is_download_test(testClass):
+ return testClass
+
+
def get_params(override=None):
PARAMETERS_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)),
"parameters.json")