forked from test_framework/pytest-bdd
Add test for given names with unicode types
This commit is contained in:
parent
55069df7a7
commit
d8ebeeed1c
|
@ -33,6 +33,9 @@ def string():
|
|||
return {'content': ''}
|
||||
|
||||
|
||||
given(u"I have an alias with a unicode type for foo", fixture="foo")
|
||||
|
||||
|
||||
@given(parsers.parse(u"у мене є рядок який містить '{content}'"))
|
||||
def there_is_a_string_with_content(content, string):
|
||||
"""Create string with unicode content."""
|
||||
|
|
|
@ -7,3 +7,7 @@ Feature: Юнікодні символи
|
|||
Scenario: Steps in .py file have unicode
|
||||
Given there is an other string with content 'якийсь контент'
|
||||
Then I should see that the other string equals to content 'якийсь контент'
|
||||
|
||||
Scenario: Given names have unicode types
|
||||
Given I have an alias with a unicode type for foo
|
||||
Then foo should be "foo"
|
||||
|
|
Loading…
Reference in New Issue