<commit_before># -*- coding: utf-8 -*-

"""
tests.test_spinners
~~~~~~~~~~~~~~~~~~~

Tests for spinners collection.
"""

from __future__ import absolute_import

import codecs
import json
from collections import OrderedDict

import pytest

from yaspin.compat import iteritems
from yaspin.spinners import SPINNERS_PATH, Spinners


with codecs.open(SPINNERS_PATH, encoding="utf-8") as f:
    spinners_dict = OrderedDict(json.load(f))


test_cases = [
    (name, v["frames"], v["interval"]) for name, v in iteritems(spinners_dict)
]


def test_len():
    assert len(Spinners) == len(spinners_dict)
<commit_msg>remove references in tests<commit_after># -*- coding: utf-8 -*-

"""
tests.test_spinners
~~~~~~~~~~~~~~~~~~~

Tests for spinners collection.
"""

from __future__ import absolute_import

import json
from collections import OrderedDict

import pytest

from yaspin.compat import iteritems
from yaspin.spinners import SPINNERS_DATA, Spinners


spinners_dict = OrderedDict(json.loads(SPINNERS_DATA))


test_cases = [
    (name, v["frames"], v["interval"]) for name, v in iteritems(spinners_dict)
]


def test_len():
    assert len(Spinners) == len(spinners_dict)

{'fraction_non_alphanumeric': 0.13659793814432988, 'fraction_numerical': 0.002577319587628866, 'mean_word_length': 5.229946524064171, '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': '6019001', 'n_tokens_mistral': 387, 'n_tokens_neox': 379, 'n_words': 100}