-
Notifications
You must be signed in to change notification settings - Fork 3
/
conftest.py
44 lines (42 loc) · 1.29 KB
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright (c) 2023 CNES
#
# All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
"""
==========
Test setup
==========
"""
def pytest_addoption(parser) -> None:
"""Add command line options to pytest."""
parser.addoption(
'--s3',
action='store_true',
default=False,
help='Enable tests on the local S3 server driven by minio. '
'(default: False)')
parser.addoption(
'--memory',
action='store_true',
default=False,
help='Use a file system in memory instead of the local file system. '
'(default: False)')
parser.addoption(
'--threads_per_worker',
action='store',
default=None,
type=int,
help='Number of threads for each worker Dask. (default: the number of '
'logical cores of the target platform).')
parser.addoption(
'--n_workers',
action='store',
default=None,
type=int,
help='Number of core for each worker Dask. (default: the number of '
'cores of the target platform).')
parser.addoption(
'--processes',
action='store_true',
default=False,
help='Whether to use processes or threads for Dask. (default: False)')