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

import httpretty
import pytest

from tfs.resources import *


class TestWorkitem(object):
    @pytest.fixture()
    def workitem_with_child_only(self, tfsapi):
        data_str = r"""{
            "id": 100,
            "rev": 1,
            "fields": {
                "System.AreaPath": "Test Agile",
                "System.TeamProject": "Test Agile",
                "System.IterationPath": "Test Agile\\Current\\Iteration 1",
                "System.WorkItemType": "Bug",
                "System.State": "Active",
                "System.Reason": "New",
                "System.CreatedDate": "2015-10-14T07:40:46.96Z",
                "System.CreatedBy": "<NAME> <DOMAIN\\AIvanov>",
                "System.ChangedDate": "2015-10-14T07:40:46.96Z",
                "System.ChangedBy": "<NAME> <DOMAIN\\AIvanov>",<commit_msg>#3: Coadacy: unused import is removed<commit_after># -*- coding: utf-8 -*-


import json
import pytest
from tfs.resources import *


class TestWorkitem(object):
    @pytest.fixture()
    def workitem_with_child_only(self, tfsapi):
        data_str = r"""{
            "id": 100,
            "rev": 1,
            "fields": {
                "System.AreaPath": "Test Agile",
                "System.TeamProject": "Test Agile",
                "System.IterationPath": "Test Agile\\Current\\Iteration 1",
                "System.WorkItemType": "Bug",
                "System.State": "Active",
                "System.Reason": "New",
                "System.CreatedDate": "2015-10-14T07:40:46.96Z",
                "System.CreatedBy": "<NAME> <DOMAIN\\AIvanov>",
                "System.ChangedDate": "2015-10-14T07:40:46.96Z",
                "System.ChangedBy": "<NAME> <DOMAIN\\AIvanov>",
{'fraction_non_alphanumeric': 0.15789473684210525, 'fraction_numerical': 0.04357668364459536, 'mean_word_length': 1.9078947368421053, 'pattern_counts': {'":': 26, '<': 11, '<?xml version=': 0, '>': 11, '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': '6155176', 'n_tokens_mistral': 610, 'n_tokens_neox': 542, 'n_words': 104}