byteface / domonic

Create HTML with python 3 using a standard DOM API. Includes a python port of JavaScript for interoperability and tons of other cool features. A fast prototyping library.
https://domonic.readthedocs.io/
MIT License
129 stars 13 forks source link

unit tests #27

Open byteface opened 2 years ago

byteface commented 2 years ago

I'm bad at these. so any help tightening them up is always appreciated. plus i learn seeing what people do. However be aware changing any prints to assertions you will find bugs.

byteface commented 2 years ago

I'm likely to migrate to pytest in the future. So anyone that wants to be involved in that can put hand up here. Turns out you can already run the existing unittests from pytest.

pytest tests

Next I want to investigate breaking the monolithic tests up a bit more. This efforst on this may start in 'htmlx' to not muddy the waters here.