Skip to content
Snippets Groups Projects
Forked from Arch Linux / aurweb
Source project has a limited visibility.
  • Kevin Morris's avatar
    9fb1fbe3
    feat(testing): add email testing utilities · 9fb1fbe3
    Kevin Morris authored
    
    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's avatarKevin Morris <kevr@0cost.org>
    Verified
    9fb1fbe3
    History
    feat(testing): add email testing utilities
    Kevin Morris authored
    
    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's avatarKevin Morris <kevr@0cost.org>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.