<commit_before>import pytest

class MenderTesting(object):
    slow = pytest.mark.skipif(not pytest.config.getoption("--runslow"), reason="need --runslow option to run")
    fast = pytest.mark.skipif(not pytest.config.getoption("--runfast"), reason="need --runfast option to run")
    nightly = pytest.mark.skipif(not pytest.config.getoption("--runnightly"), reason="need --runnightly option to run")<commit_msg>Fix no tests running when not passing any options.<commit_after>import pytest

class MenderTesting(object):
    slow_cond = False
    fast_cond = False
    nightly_cond = False

    slow = None
    fast = None
    nightly = None

if pytest.config.getoption("--runslow"):
    MenderTesting.slow_cond = True
else:
    MenderTesting.slow_cond = False

if pytest.config.getoption("--runfast"):
    MenderTesting.fast_cond = True
else:
    MenderTesting.fast_cond = False

if pytest.config.getoption("--runnightly"):
    MenderTesting.nightly_cond = True
else:
    MenderTesting.nightly_cond = False

if not MenderTesting.slow_cond and not MenderTesting.fast_cond and not MenderTesting.nightly_cond:
    # Default to running everything but nightly.
    MenderTesting.slow_cond = True
    MenderTesting.fast_cond = True

MenderTesting.slow = pytest.mark.skipif(not MenderTesting.slow_cond, reason="need --runslow option to run")
MenderTesting.fast = pytest.mark.skipif(not MenderTesting.fast_cond, reason="need --runfast option to run")
MenderTesting.nightly = pytest.mark.skipif(not MenderTesting.nightly_cond, reason="need --runnightly option to run")
{'fraction_non_alphanumeric': 0.10711994868505452, 'fraction_numerical': 0.0, 'mean_word_length': 4.512367491166078, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6014025', 'n_tokens_mistral': 499, 'n_tokens_neox': 512, 'n_words': 115}