<commit_before>import unittest
from biothings_explorer.user_query_dispatcher import FindConnection
from biothings_explorer.hint import Hint

ht = Hint()

class TestSingleHopQuery(unittest.TestCase):

    def test_result_section(self):
        """Find connection between TMPRSS2 and pentamidine through all intermediate nodes """
        tmprss2 = ht.query("TMPRSS2")['Gene'][0]
        pentamidine = ht.query("pentamidine")['ChemicalSubstance'][0]
        fc = FindConnection(input_obj=tmprss2, output_obj=pentamidine, intermediate_nodes=['BiologicalEntity'], registry=None)
        fc.connect(verbose=True)
        self.assertIn('PLXNA2', fc.fc.G)
<commit_msg>update test name<commit_after>import unittest
from biothings_explorer.user_query_dispatcher import FindConnection
from biothings_explorer.hint import Hint

ht = Hint()

class TestUserQueryDispatcher(unittest.TestCase):

    def test_result_section(self):
        """Find connection between TMPRSS2 and pentamidine through all intermediate nodes """
        tmprss2 = ht.query("TMPRSS2")['Gene'][0]
        pentamidine = ht.query("pentamidine")['ChemicalSubstance'][0]
        fc = FindConnection(input_obj=tmprss2, output_obj=pentamidine, intermediate_nodes=['BiologicalEntity'], registry=None)
        fc.connect(verbose=True)
        self.assertIn('PLXNA2', fc.fc.G)

{'fraction_non_alphanumeric': 0.10676691729323308, 'fraction_numerical': 0.010526315789473684, 'mean_word_length': 5.1336405529953915, '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': '652968', 'n_tokens_mistral': 433, 'n_tokens_neox': 414, 'n_words': 78}