Skip to content

Commit

Permalink
Rename Sendgrid email and expose directly under protean package
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashb committed Sep 28, 2020
1 parent d263789 commit fe96bdf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ DEV
* Remove `bounded_context` definition everywhere
* Rename `dict_repo` to `memory`
* Remove `*_repo` from DB adapter module names
* Rename `celery` and `inline` broker module names
* Rename `sendgrid` email module name

0.5.4 (2020-09-22)
------------------
Expand Down
9 changes: 8 additions & 1 deletion src/protean/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@
# Adapters
from .adapters.broker.celery import CeleryBroker, ProteanTask
from .adapters.broker.inline import InlineBroker
from .adapters.email.sendgrid import SendgridEmailProvider

__all__ = ("Domain", "CeleryBroker", "ProteanTask", "InlineBroker")
__all__ = (
"Domain",
"CeleryBroker",
"ProteanTask",
"InlineBroker",
"SendgridEmailProvider",
)
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/adapters/email/sendgrid_email/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

EMAIL_PROVIDERS = {
"default": {
"PROVIDER": "protean.adapters.email.sendgrid_email.SendgridEmailProvider",
"PROVIDER": "protean.SendgridEmailProvider",
"DEFAULT_FROM_EMAIL": "[email protected]",
"API_KEY": "this-is-a-fake-key",
},
Expand Down
2 changes: 1 addition & 1 deletion tests/adapters/email/sendgrid_email/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pytest

from mock import patch
from protean.adapters.email.sendgrid_email import SendgridEmailProvider
from protean import SendgridEmailProvider

# Local/Relative Imports
from .elements import Person, PersonAdded, WelcomeEmail, WelcomeNewPerson
Expand Down

0 comments on commit fe96bdf

Please sign in to comment.