Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleExample Fixture
{
    "item": {
        "body": "I spoke with Adrian Fox on the phone earlier this morning..."
    },
    "keywords": {
        "name": ["Adrian Fox"],
        "position": ["District Representative"],
        "manager name": ["Jane Doe", "David Cole"],
        "manager position": ["District Manager", "CEO"]
    }
}

In this fixture, the item field includes the data for the squirro item that we want to use to test the KEE strategy that we have created. 

...

Code Block
>> squirro_kee -v test
 
- Running fixture demo
  -    46 (100%) correct results:
        [u'Adrian Fox', u'CEO', u'David Cole', u'District Manager', u'District Representative', u'Jane Doe']
  -    0 (  0%) missed results: []
  -    0 (  0%) extra results: []
- Processed 1 fixtures
  -    46 (100%) correct results
  -    0 (  0%) missed results
  -    0 (  0%) extra results

...