adding documentation and final cleanup

This commit is contained in:
csine-nflx
2020-03-27 10:18:38 -07:00
parent 0149f8b0d3
commit 0e314d0028
2 changed files with 82 additions and 17 deletions

View File

@ -79,7 +79,7 @@ class TestPowerdns(unittest.TestCase):
change_id = (domain, token)
powerdns._check_conf = Mock()
cur_token = "123456"
cur_records = [powerdns.Record({'name': domain, 'content': cur_token, 'disabled': False})]
cur_records = [powerdns.Record({'name': domain, 'content': f"\"{cur_token}\"", 'disabled': False})]
powerdns._get_txt_records = Mock(return_value=cur_records)
powerdns._get_zone_name = Mock(return_value=zone)
mock_current_app.logger.debug = Mock()