gabrielfalcao/lettuce

Outlines table is not ordered as in feature file in junit report

jfroco opened this issue · 1 comments

I have this outline table in my feature file

| url | title | text |
| http://pythonhosted.org/ | Python | KKKK |
| https://www.youtube.com/?gl=CL&hl=es-419 | YouTube | language |

In the junit reports the columns are not in the same order.

@name:| http://pythonhosted.org/ | KKKK | Python |

I corrected this by changing outlines from a dict to a OrderedDict: #474

sgpy commented

@jfroco PY3-fork takes care of this issue Python 3 support

Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 03:13:28) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
x = dict()
x['b'] = 1    
x['a'] = 2
x['d'] = 3
x['c'] = 4
from pprint import pprint
pprint(x)
{'a': 2, 'b': 1, 'c': 4, 'd': 3}
x.keys()
dict_keys(['b', 'a', 'd', 'c'])