File: conftest.py

package info (click to toggle)
dataclass-wizard 0.37.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,924 kB
  • sloc: python: 17,189; makefile: 126; javascript: 23
file content (16 lines) | stat: -rw-r--r-- 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pytest


@pytest.fixture(scope='session')
def n():
    return 100_000


def pytest_addoption(parser):
    parser.addoption(
        "--all",  # long option
        "-A",
        action="store_true",
        default=False,
        help="Run benchmarks for *all* libraries, including *slower* ones like `jsons`",
    )