<commit_before>from __future__ import unicode_literals, division, absolute_import
from builtins import *  # pylint: disable=unused-import, redefined-builtin

import pytest
from jinja2 import Template

from flexget.plugins.parsers.parser_guessit import ParserGuessit
from flexget.plugins.parsers.parser_internal import ParserInternal
from flexget.utils.qualities import Quality


class TestQualityPriority(object):
    config = """
        tasks:
          test_quality_priority:
            mock:
              - {title: 'Some Show S01E01 WEBRip'}
              - {title: 'Some Show S01E01 HDTV'}
            quality_priority:
              webrip: 155
            series:
              - Some Show:
                  identified_by: ep
          test_normal_quality_priority:
            mock:
              - {title: 'Some Show S01E02 WEBRip'}
              - {title: 'Some Show S01E02 HDTV'}
            series:
              - Some Show:
                  identified_by: ep
    """

    def test_quality_priority(self, execute_task):<commit_msg>removed unused imports from test<commit_after>from __future__ import unicode_literals, division, absolute_import
from builtins import *  # pylint: disable=unused-import, redefined-builtin


class TestQualityPriority(object):
    config = """
        tasks:
          test_quality_priority:
            mock:
              - {title: 'Some Show S01E01 WEBRip'}
              - {title: 'Some Show S01E01 HDTV'}
            quality_priority:
              webrip: 155
            series:
              - Some Show:
                  identified_by: ep
          test_normal_quality_priority:
            mock:
              - {title: 'Some Show S01E02 WEBRip'}
              - {title: 'Some Show S01E02 HDTV'}
            series:
              - Some Show:
                  identified_by: ep
    """

    def test_quality_priority(self, execute_task):
{'fraction_non_alphanumeric': 0.07282321899736148, 'fraction_numerical': 0.02058047493403694, 'mean_word_length': 1.8858447488584476, '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': '960226', 'n_tokens_mistral': 540, 'n_tokens_neox': 508, 'n_words': 133}