Add test for given names with unicode types

This commit is contained in:
Blaise Kal 2019-07-06 11:45:31 +02:00 committed by Alessio Bogon
parent 55069df7a7
commit d8ebeeed1c
2 changed files with 7 additions and 0 deletions

View File

@ -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."""

View File

@ -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"