<commit_before># (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import os
import sys
import pytest

collect_ignore_glob = []

# Cassandra and gevent tests are run in dedicated jobs on CircleCI and will
# be run explicitly.  (So always exclude them here)
if "CASSANDRA_TEST" not in os.environ:
    collect_ignore_glob.append("*test_cassandra*")

if "COUCHBASE_TEST" not in os.environ:
    collect_ignore_glob.append("*test_couchbase*")

if "GEVENT_TEST" not in os.environ:
    collect_ignore_glob.append("*test_gevent*")

# TODO: Remove this once we start supporting Tornado >= 6.0
if sys.version_info.minor >= 10:
    collect_ignore_glob.append("*test_tornado*")


# Set our testing flags
os.environ["INSTANA_TEST"] = "true"
# os.environ["INSTANA_DEBUG"] = "true"

# Make sure the instana package is fully loaded
import instana


@pytest.fixture(scope='session')
def celery_config():
    return {
        'broker_url': 'redis://localhost:6379',
        'result_backend': 'redis://localhost:6379'
    }


@pytest.fixture(scope='session')<commit_msg>Skip boto3_secretsmanager TC on 3.10<commit_after># (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import os
import sys
import pytest

collect_ignore_glob = []

# Cassandra and gevent tests are run in dedicated jobs on CircleCI and will
# be run explicitly.  (So always exclude them here)
if "CASSANDRA_TEST" not in os.environ:
    collect_ignore_glob.append("*test_cassandra*")

if "COUCHBASE_TEST" not in os.environ:
    collect_ignore_glob.append("*test_couchbase*")

if "GEVENT_TEST" not in os.environ:
    collect_ignore_glob.append("*test_gevent*")

# Python 3.10 support is incomplete yet
# TODO: Remove this once we start supporting Tornado >= 6.0
# TODO: Remove this once we start supporting moto>=2.0 (impacting boto)
if sys.version_info.minor >= 10:
    collect_ignore_glob.append("*test_tornado*")
    collect_ignore_glob.append("*test_boto3_secretsmanager*")


# Set our testing flags
os.environ["INSTANA_TEST"] = "true"
# os.environ["INSTANA_DEBUG"] = "true"

# Make sure the instana package is fully loaded
import instana


@pytest.fixture(scope='session')
def celery_config():
    return {
        'broker_url': 'redis://localhost:6379',
        'result_backend': 'redis://localhost:6379'
    }


@pytest.fixture(scope='session')
{'fraction_non_alphanumeric': 0.11559948431456811, 'fraction_numerical': 0.021486892995272882, 'mean_word_length': 4.762376237623762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3780773', 'n_tokens_mistral': 834, 'n_tokens_neox': 794, 'n_words': 214}