mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-21 20:28:10 +00:00
fixing a few tests realted to stop words.
This commit is contained in:
parent
32d1036041
commit
e29134a019
@ -114,7 +114,7 @@ class TestLookupService(BaseTest):
|
||||
self.assertEqual("Genetics Savings & Clone, Inc.", results[0].label)
|
||||
|
||||
results = LookupService.lookup(workflow, "AllTheNames", "reaction design", limit=10)
|
||||
self.assertEqual(5, len(results), "all results come back for two terms.")
|
||||
self.assertEqual(3, len(results), "all results come back for two terms.")
|
||||
self.assertEqual("Reaction Design", results[0].label, "Exact matches come first.")
|
||||
|
||||
results = LookupService.lookup(workflow, "AllTheNames", "1 Something", limit=10)
|
||||
@ -127,7 +127,7 @@ class TestLookupService(BaseTest):
|
||||
self.assertEqual("1 Something", results[0].label, "double spaces should not be an issue.")
|
||||
|
||||
results = LookupService.lookup(workflow, "AllTheNames", "in", limit=10)
|
||||
self.assertEqual(7, len(results), "stop words are not removed.")
|
||||
self.assertEqual(10, len(results), "stop words are not removed.")
|
||||
self.assertEqual("Genetics Savings & Clone, Inc.", results[0].label)
|
||||
|
||||
results = LookupService.lookup(workflow, "AllTheNames", "other", limit=10)
|
||||
|
Loading…
x
Reference in New Issue
Block a user