LukeCarrier / mkdocs-drawio-exporter

Exports your Draw.io diagrams at build time for easier embedding into your documentation
https://pypi.org/project/mkdocs-drawio-exporter/
MIT License
77 stars 8 forks source link

Split out plugin and exporter into separate modules, start testing #5

Closed LukeCarrier closed 4 years ago

LukeCarrier commented 4 years ago

I've been putting off unit testing this code because I've been struggling to isolate the MkDocs plugin from the rest of the code.

I think the best compromise would be to move the logic out of the plugin class and keep only the configuration schema and the handlers for MkDocs plugin events there. We could then leave this code untested, but test the logic.

LukeCarrier commented 4 years ago

This is now much better.