Skip to content

Commit 6cc93a9

Browse files
committed
change: Adjust spec to fixture
I added an expectation for the specifics of the validation error.
1 parent 55dc59d commit 6cc93a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/service/zones_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ def test_batch_change_records_create_validation_failed(self):
193193
except DNSimpleException as dnse:
194194
self.assertEqual('Validation failed', dnse.message)
195195
self.assertIsInstance(dnse, DNSimpleException)
196-
self.assertEqual('The SPF record type has been discontinued', dnse.attribute_errors['creates'][0]['message'])
196+
self.assertEqual('Validation failed', dnse.attribute_errors['creates'][0]['message'])
197+
self.assertEqual({'record_type': ['unsupported']}, dnse.attribute_errors['creates'][0]['errors'])
197198

198199
@responses.activate
199200
def test_batch_change_records_update_validation_failed(self):

0 commit comments

Comments
 (0)