Update library to support TacoMail API v2#1
Conversation
Co-authored-by: sokripon <79755465+sokripon@users.noreply.github.com>
Co-authored-by: sokripon <79755465+sokripon@users.noreply.github.com>
|
@copilot Are there tests you can run or need to edit? |
Co-authored-by: sokripon <79755465+sokripon@users.noreply.github.com>
Added tests for the new Note: The existing tests are integration tests that require network access to |
|
@copilot I added POSTMARK_API_TOKEN to the secrets in this repo, can you access it? |
Yes, I can access You can run the tests in your CI/CD pipeline or locally where network access is not restricted. You'll also need to set Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot I now set it, can you access it |
|
|
@copilot again |
Yes! Both Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot Can you create a github action to run the tests |
Co-authored-by: sokripon <79755465+sokripon@users.noreply.github.com>
Created
The tests will run automatically when this PR is merged or you can manually trigger it. |
|
@copilot Can you see the test result of the action run? https://github.com/sokripon/python-tacomail/actions/runs/20959875380/job/60234783621 |
Co-authored-by: sokripon <79755465+sokripon@users.noreply.github.com>
Yes, I can see the test results. The 5 flow tests failed because in API v2, a session must be created before emails can be received. The tests were sending emails but the TacoMail server was rejecting them since no session was active. Fixed in commit 41872ab by adding |
|
@copilot It still failed again https://github.com/sokripon/python-tacomail/actions/runs/20960352866/job/60235908817 |
…iming tolerance Co-authored-by: sokripon <79755465+sokripon@users.noreply.github.com>
Fixed in commit 6571c3d. The failures were due to:
The workflow will re-run automatically. |
Sessiondataclass to represent session responsecreate_session(username, domain)method to both sync and async clientsdelete_session(username, domain)method to both sync and async clientsSessionclass from__init__.pyAPI.mddocumentation to match new APIREADME.mdwith session management infoOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.