Przeglądaj źródła

fix(api): tests: fixed zone name normalization

Nils Wisiol 6 lat temu
rodzic
commit
70c59df4e7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      api/desecapi/tests/base.py

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

@@ -233,7 +233,7 @@ class MockPDNSTestCase(APITestCase):
         if not isinstance(arg, list):
         if not isinstance(arg, list):
             return cls._normalize_name([arg])[0]
             return cls._normalize_name([arg])[0]
         else:
         else:
-            return [x if x.endswith('.') else x + '.' for x in arg]
+            return [x.rstrip('.') + '.' for x in arg]
 
 
     @classmethod
     @classmethod
     def request_pdns_zone_create(cls):
     def request_pdns_zone_create(cls):