<commit_before>#!/usr/bin/env python3

from dipper.sources.KEGG import KEGG
from dipper import curie_map
from rdflib import Graph
from tests import test_general, test_source
from tests.test_source import SourceTestCase

import unittest
import logging
import os

logging.basicConfig(level=logging.WARNING)
logger = logging.getLogger(__name__)


class KEGGTestCase(SourceTestCase):

    def setUp(self):
        self.source = KEGG()
        self.source.disease_ids = self._get_conf()['test_ids']['disease']
        self.source.settestonly(True)
        self._setDirToSource()
        return

    def tearDown(self):
        self.source = None
        return

    # TODO add some specific tests to make sure we are hitting all parts of the code


if __name__ == '__main__':
    unittest.main()<commit_msg>add nobnode flag to kegg<commit_after>#!/usr/bin/env python3

from dipper.sources.KEGG import KEGG
from dipper import curie_map
from rdflib import Graph
from tests import test_general, test_source
from tests.test_source import SourceTestCase

import unittest
import logging
import os

logging.basicConfig(level=logging.WARNING)
logger = logging.getLogger(__name__)


class KEGGTestCase(SourceTestCase):

    def setUp(self):
        self.source = KEGG()
        self.source.disease_ids = self._get_conf()['test_ids']['disease']
        self.source.settestonly(True)
        self.source.setnobnodes(True)
        self._setDirToSource()
        return

    def tearDown(self):
        self.source = None
        return

    # TODO add some specific tests to make sure we are hitting all parts of the code


if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.0822746521476104, 'fraction_numerical': 0.0012099213551119178, 'mean_word_length': 3.569060773480663, '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': '5480274', 'n_tokens_mistral': 509, 'n_tokens_neox': 484, 'n_words': 140}