-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest_myfeature.py
More file actions
33 lines (24 loc) · 824 Bytes
/
Copy pathtest_myfeature.py
File metadata and controls
33 lines (24 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# coding=utf-8
"""Proof of concept that my framework works feature tests."""
import pytest
from pytest_bdd import (
given,
scenario,
then,
when,
)
@scenario('myfeature.feature', 'My first test')
def test_my_first_test():
"""My first test."""
@given('I navigate to the zoo website')
def i_navigate_to_the_zoo_website():
"""I navigate to the zoo website."""
print "Executed the navigate to zoo"
@when('I click on the check button')
def i_click_on_the_check_button():
"""I click on the check button."""
print "Executed the click on adoption link method"
@then('I check to see that no animals are available')
def i_check_to_see_that_no_animals_are_available():
"""I check to see that no animals are available."""
print "Checked that the no animals string was visible or not"