refactor dnscrypt parse
add test
This commit is contained in:
parent
ee37b9e95e
commit
a53b9c7a8e
10 changed files with 608 additions and 540 deletions
14
testing/test_dnscrypt_to_smartdns.py
Normal file
14
testing/test_dnscrypt_to_smartdns.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import unittest
|
||||
|
||||
from dnscrypt_to_smartdns import get_smartdns_config
|
||||
|
||||
|
||||
class MyTestCase(unittest.TestCase):
|
||||
def test_get_smartdns_config(self):
|
||||
conf_text = get_smartdns_config()
|
||||
# print(conf_text)
|
||||
self.assertIsInstance(conf_text, str)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue