Sha256: 1b0a2cc32bb69513a26cb35d92e0d1f6b7818bcc960e1b173e017409599a2e08

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

@issue
@unicode
Feature: Issue #453 -- Unicode output problem when Exception is raised in step

  . Either Exception text (as summary) or traceback python line shows
  . special characters incorrectly.
  .
  . Result (of failed step):
  .     File "features/steps/steps.py", line 8, in foo
  .        raise Exception(u"по ����ки") <-- This is not
  .   Exception: по русски <-- This is OK


    Scenario:
      Given a new working directory
      And a file named "features/steps/problematic_steps.py" with:
        """
        # -*- coding: UTF-8 -*-
        from behave import step

        @step(u'an exception with special chars is raised')
        def step_exception_raised(context):
            raise Exception(u"по русски")
        """
      And a file named "features/syndrome.feature" with:
        """
        Feature:
          Scenario:
            Given an exception with special chars is raised
        """
      When I run "behave -f plain features/syndrome.feature"
      Then it should fail with:
        """
        Scenario:
          Given an exception with special chars is raised ... failed
        """
      And the command output should contain:
        """
          File "features/steps/problematic_steps.py", line 6, in step_exception_raised
            raise Exception(u"по русски")
        Exception: по русски
        """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
busser-behave-0.1.3 vendor/behave/issue.features/issue0453.feature