浏览代码

fix(api): improve accuracy of test_bulk_post_missing_fields

Peter Thomassen 4 年之前
父节点
当前提交
bb3fe3a08e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/desecapi/tests/test_rrsets_bulk.py

+ 1 - 1
api/desecapi/tests/test_rrsets_bulk.py

@@ -131,7 +131,7 @@ class AuthenticatedRRSetBulkTestCase(AuthenticatedRRSetBaseTestCase):
             status.HTTP_400_BAD_REQUEST,
             [
                 {'type': ['This field is required.']},
-                {'ttl': [f'Ensure this value is greater than or equal to {settings.MINIMUM_TTL_DEFAULT}.']},
+                {'ttl': [f'Ensure this value is greater than or equal to {self.my_empty_domain.minimum_ttl}.']},
                 {'subname': ['This field is required.']},
                 {},
                 {'ttl': ['This field is required.']},