Skip to content

Commit 0bd9346

Browse files
author
Karlo Soriano
authored
Remove from and to from EmailForwards (#471)
1 parent 91ad9bf commit 0bd9346

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

dnsimple/struct/email_forward.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ class EmailForward(Struct):
99
"""The email forward ID in DNSimple"""
1010
domain_id = None
1111
"""The associated domain ID"""
12-
email_from = None
13-
"""DEPRECATED: The "local part" of the originating email address. Anything to the left of the @ symbol"""
14-
email_to = None
15-
"""DEPRECATED: The full email address to forward to"""
1612
alias_email = None
1713
destination_email = None
1814
active = None

tests/service/domains_email_forwards_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ def test_create_email_forward(self):
5454
EmailForwardInput('example@dnsimple.xyz', 'example@example.com')).data
5555
self.assertIsInstance(email_forward.id, int)
5656
self.assertIsInstance(email_forward.domain_id, int)
57-
self.assertEqual('example@dnsimple.xyz', email_forward.email_from)
58-
self.assertEqual('example@example.com', email_forward.email_to)
5957
self.assertEqual('example@dnsimple.xyz', email_forward.alias_email)
6058
self.assertEqual('example@example.com', email_forward.destination_email)
6159
self.assertIsInstance(datetime.datetime.strptime(email_forward.created_at, '%Y-%m-%dT%H:%M:%SZ'), datetime.datetime)

0 commit comments

Comments
 (0)