Failing to load test data

8 views
Skip to first unread message

Xorso

unread,
Nov 10, 2014, 1:28:41 PM11/10/14
to lettuc...@googlegroups.com
I am trying to use the Lettuce django features to load test data:

Here is my feature:

Feature: Handle Incoming SMS messages.
    Scenario: Handle the reply back 
        Given I have incomingsms in the database:
            | messagesid | smssid | accountsid | tosms | fromsms | body |
            |dd93fhc81ldkfh59xvh1293k4hdhc812j|dd93fhc81ldkfh59xvh1293k4hdhc812j| dd93fhc81ldkfh59xvh1293k4hdhc812j | +18008008000 | +18008008000 | Test Message|

But when I run harvest I get:

Test Suite Summary:
1 feature (0 passed)
1 scenario (0 passed)
4 steps (3 skipped, 1 undefined, 0 passed)

You can implement step definitions for undefined steps with these snippets:

# -*- coding: utf-8 -*-
from lettuce import step

@step(u'Given I have incomingsms in the database:')
def given_i_have_incomingsms_in_the_database(step):
    assert False, 'This step must be implemented'

What am I missing?
Reply all
Reply to author
Forward
0 new messages