From: Waylan L. <wa...@gm...> - 2007-11-06 01:30:58
|
After working on safe_mode to add escaping, I realized that there's no way to test safe_mode in the testing framework. A few possibilities occurred to me. We could use the same approach as extensions (well the way they're supposed to work - currently they're ignored afaict) and have a separate directory for each state. Thing is, the same text files could easily work with each of the possible modes. So another option would be to include additional html files in the existing directories with a special name (ie, "escaped-somefile.html). If those files exist, then additional tests would be run in the appropriate mode. It also occurs to me that some unit tests may be helpful for testing the api. Maybe some simple tests of safe_mode there would be sufficient. The question is, should any unit tests be part of test-markdown.py or separate? Anyone have any thoughts? I'm thinking this is what I'm tackling after 1.7 is released. -- ---- Waylan Limberg wa...@gm... |