Commit 022bb7aa by Gabriel Falcão

success outputting table steps in pt-br

parent f3bc778f
# -*- coding: utf-8 -*-
# language: pt-br
Funcionalidade: feature burra, com tabela
Como um programador
Eu quero testar steps com tabelas
Para ver o output em pt-br
Cenario: Fazer nada, com tabelas :)
Dado que eu brinco com os seguintes itens:
| id | description |
| 12 | some desc |
| 64 | another desc |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from lettuce import step
@step(u'eu brinco com os seguintes itens')
def brinco_com_os_seguintes_itens(step):
pass
...@@ -70,3 +70,33 @@ def test_output_with_success_colorless(): ...@@ -70,3 +70,33 @@ def test_output_with_success_colorless():
"1 scenario (1 passed)\n" "1 scenario (1 passed)\n"
"1 step (1 passed)\n" "1 step (1 passed)\n"
) )
@with_setup(prepare_stdout)
def test_output_of_table_with_success_colorless():
"Language: pt-br -> sucess table colorless"
runner = Runner(join_path('pt-br', 'success', 'table.feature'), verbosity=3)
runner.run()
assert_stdout_lines(
"\n"
"Funcionalidade: feature burra, com tabela # tests/functional/language_specific_features/pt-br/success/table.feature:3\n"
" Como um programador # tests/functional/language_specific_features/pt-br/success/table.feature:4\n"
" Eu quero testar steps com tabelas # tests/functional/language_specific_features/pt-br/success/table.feature:5\n"
" Para ver o output em pt-br # tests/functional/language_specific_features/pt-br/success/table.feature:6\n"
"\n"
" Cenário: Fazer nada, com tabelas :) # tests/functional/language_specific_features/pt-br/success/table.feature:8\n"
" Dado que eu brinco com os seguintes itens: # tests/functional/language_specific_features/pt-br/success/table_steps.py:6\n"
" | id | description |\n"
" | 12 | some desc |\n"
" | 64 | another desc |\n"
"\033[A\033[A\033[A\033[A Dado que eu brinco com os seguintes itens: # tests/functional/language_specific_features/pt-br/success/table_steps.py:6\n"
" | id | description |\n"
" | 12 | some desc |\n"
" | 64 | another desc |\n"
"\n"
"1 feature (1 passed)\n"
"1 scenario (1 passed)\n"
"1 step (1 passed)\n"
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment