aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* add support for other file types (to be improved)la-ninpre2021-07-145-0/+662
| | | | | | | | currently images that were sent as files are supported, but their files land in `files` directory. text file and additional image used for test are stored as symlinks now, because i don't want them to consume too much space.
* add testcase for utf-8 stringsla-ninpre2021-07-121-14/+22
|
* remove generated filesla-ninpre2020-12-1012-132/+0
|
* fix formatted text parsingla-ninpre2020-11-1612-0/+132
| | | | | | | | | earlier, situations when there were strings like 'bold\ntext\n' that needed to be treated as bold text were converted in a wrong way (e.g. like '**bold\ntext\n**', which is breaking markup because of newline characters before closing asterisks), but now it's kind of fixed. also there's now support for emails and <pre> blocks.
* add testsla-ninpre2020-11-124-0/+214
i've found some issues with formatted text, this could be seen in output (which is not included now). there are some complications with parsing newline characters, but i'll fix it later. also script is now usable like command-line application. you can specify the directory in which source files are located. to make some tests you need to run $ python parse.py tests this will create directory tests/formatted_posts, where markdown posts will be populated. if directory is not specified, it assumes that script is in the source folder. if needed json file could not be found, it exits with code 1.