{"id":17044767,"url":"https://github.com/keredson/mailtest","last_synced_at":"2025-04-12T15:20:46.964Z","repository":{"id":57439380,"uuid":"99261082","full_name":"keredson/mailtest","owner":"keredson","description":"A tool to unit test code that sends email.","archived":false,"fork":false,"pushed_at":"2018-05-21T16:28:58.000Z","size":15,"stargazers_count":2,"open_issues_count":3,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T09:51:10.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keredson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-03T18:01:09.000Z","updated_at":"2019-12-29T20:19:55.000Z","dependencies_parsed_at":"2022-09-26T17:11:36.625Z","dependency_job_id":null,"html_url":"https://github.com/keredson/mailtest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keredson%2Fmailtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keredson%2Fmailtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keredson%2Fmailtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keredson%2Fmailtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keredson","download_url":"https://codeload.github.com/keredson/mailtest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248244881,"owners_count":21071352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T09:35:27.641Z","updated_at":"2025-04-12T15:20:46.942Z","avatar_url":"https://github.com/keredson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MailTest\nMailTest is a Python unittesting library that for code that sends email.  It starts a local SMTP server inside a Python `with` block, and captures all the email sent to it.  These emails can then be read within the block.\n\nExample:\n\n```\nwith mailtest.Server() as mt:\n    send_welcome_email()\n    assert len(mt.emails) == 1\n```\n\n## Install\n```\npip3 install mailtest\n```\n\n## Configuration\nConfiguration is done via kwargs to `mailtest.Server()`.  Options:\n- `smtp_port` (default: 1025)\n- `sendgrid_port` (default: `None`)\n\n## Speed\nMailTest can test receive approx. 4000 emails/second on an Intel(R) Core(TM) i5-7260U CPU @ 2.20GHz.\n\n## Testing\n```\n$ python2 test.py \n..\n----------------------------------------------------------------------\nRan 2 tests in 0.269s\n\nOK\n```\n```\n$ python3 test.py \n..\n----------------------------------------------------------------------\nRan 2 tests in 0.543s\n\nOK\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeredson%2Fmailtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeredson%2Fmailtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeredson%2Fmailtest/lists"}