aurweb/util
Kevin Morris 9fb1fbe32c
feat(testing): add email testing utilities
Changes:
- util/sendmail now populates email files in the 'test-emails' directory.
    - util/sendmail does this in a serialized fashion based off of
      the test suite and name retrieved from PYTEST_CURRENT_TEST
      in the format: `<test_suite>_<test_function>.n.txt` where n
      is increased by one every time sendmail is run.
- pytest conftest fixtures have been added for test email setup;
  it wipes out old emails for the particular test function being run.
- New aurweb.testing.email.Email class allows developers to test
  against emails stored by util/sendmail. Simple pass the serial
  you want to test against, starting at serial = 1; e.g. Email(serial).

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-11-28 19:55:10 -08:00
..
adduser.py fix: initialize engine and session in util/adduser.py 2021-11-15 00:01:13 -08:00
fix-coverage fix: util/fix-coverage sys.stderr typo 2021-09-09 16:21:11 -07:00
sendmail feat(testing): add email testing utilities 2021-11-28 19:55:10 -08:00