moto/tests/test_sesv2/test_server.py
rafcio19 6f170410e8
SES v2 (#6259)
* feat: add ses v2

* feat: move wrap v1 logic into v2 api

* feat: v2 api on v2 url

* chore: types

* chore: linting

* feat: raw emails

* chore: linting

* feat: add list_contacts

* fix: urls need to be explicit for this to work with moto server

* chore: linting

* chore: remodel

* chore: rework

* chore: cleanup

* chore: fix test

* chore: sort out mypy

* feat: add contact lists

* fix: new url for server mode

* feat: create and delete

* chore: linting

* chore: linting

* chore: refactor

* chore: match errors with real responses

* chore: linting

* chore: run implementation coverage script

* refactor: easier, faster look ups with dicts

* refactor: contact is now a child of contactlist

* tests: contactlists return 200 if empty, contacts do not

* chore: update botocore and run implementation coverage script

* refactor: add matching *_contact methods to backend model so coverage script can detect them
2023-05-01 18:15:29 +00:00

14 lines
322 B
Python

"""Test different server responses."""
import moto.server as server
def test_sesv2_list():
backend = server.create_backend_app("sesv2")
test_client = backend.test_client()
resp = test_client.get("/v2/email/contact-lists")
assert resp.status_code == 200
assert resp.data == b'{"ContactLists": []}'