This repository has been archived by the owner on Aug 17, 2023. It is now read-only.
forked from jessemiller/HamlPy
-
Notifications
You must be signed in to change notification settings - Fork 14
Tests depend on deterministic ordering of attributes #2
Comments
I think that we should try to finish this other branch https://github.com/Psycojoker/django-hamlpy/tree/element_parser that, apparently, uses a real parser. This will solve this issue and avoid potential other ones generated by using regex to transform the attributes into a python dict. |
Merged
Yeah the regex approach is certainly fragile... do you know how close to finished that branch is? |
Sadly no, I've only saw it since someone proposed it to be merged jessemiller#147 so I guess it's at least close to being ready. |
Looks like it has diverged quite a bit from master and doesn't run on Python 2.7. How would you feel about this as temporary workaround 9e53689 ? |
This fix seems totally acceptable in this situation for me. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
django-hamlpy/hamlpy/elements.py
Line 137 in 9224b44
This leads to tests sometimes failing which depend on order, e.g.
django-hamlpy/hamlpy/test/test_elements.py
Line 52 in 37d63ad
Question is whether html attribute order should match haml attribute order?
The text was updated successfully, but these errors were encountered: