Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

Tests depend on deterministic ordering of attributes #2

@rowanseymour

Description

@rowanseymour

attributes_dict = eval(attribute_dict_string)
evaluates a parsed attribute dictionary as a Python dict, but that means attribute ordering is non-deterministic.

This leads to tests sometimes failing which depend on order, e.g.

eq_(sut.attributes, "a='something' c='2' b")

Question is whether html attribute order should match haml attribute order?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions