A test tool for the Lemmy API written in Python
https://github.com/dessalines/lemmy
As of right now this tool only runs expected behavior tests for regular users and non-users. As further test sets are built this README will be updated.
To run:
- Update conf.conf file with the API address under the "server" field,
- create unique username, admin_username (and passwords if you prefer), community_name and post_title in conf.conf
- run test.py
Logs are saved in raw_log.txt, each line corresponds to a request and response in the format of timestamp;request;response additionally an error line is logged for easy searching of errors. This is a rough logging method and will be improved in the future.
Other options in the configuration file do not currently work, but will work soon.