summaryrefslogtreecommitdiff
path: root/tests/test_resolver.py
Commit message (Collapse)AuthorAgeFilesLines
* switch to relative import for nanonameservernanonameserverBob Halley2020-06-011-1/+1
|
* add nanonamserver, a handy testing toolBob Halley2020-05-311-4/+49
|
* test cache hit with live resolverBob Halley2020-05-291-0/+10
|
* a bit more cache coverageBob Halley2020-05-281-0/+55
|
* only do multiple I/O backend testing for live tests, as testing everything 3 ↵Bob Halley2020-05-281-67/+71
| | | | times is pointless work
* add one more live resolver test (for NXDOMAIN)Bob Halley2020-05-281-0/+9
|
* tests: resolver Nodata answersPetr Špaček2020-05-281-0/+18
|
* further tighten resolve() default settingsBob Halley2020-05-271-2/+2
|
* add some basic resolution testingBob Halley2020-05-211-0/+13
|
* move raise_on_no_error out of AnswerBob Halley2020-05-191-1/+1
|
* Allow resolver-level control over the defaulting of search (default False).Bob Halley2020-05-151-1/+17
|
* Add resolver resolve(), deprecate query().Bob Halley2020-05-151-0/+19
|
* tests for reading resolvconf optionskimbo2020-04-021-0/+15
|
* Improve assertion checking.Brian Wellington2020-03-181-27/+28
| | | | | This replaces lots of self.assertTrue() assertions with more specific assertions, such as replacing assertTrue(x == y) with assertEqual(x, y).
* only allow Resolver.nameservers to be a listkimbo2020-01-061-11/+1
|
* change nameserver to nameserverskimbo2019-12-301-4/+4
|
* added empty list nameservers assignment testkimbo2019-12-301-0/+5
|
* make sure Resolver.nameservers is a list or strkimbo2019-12-261-0/+23
| | | | | validate if assignment of Resolver.nameservers is a list, a str (in which case it will be converted to a list), or None
* TST: fix failUnlessRaises -> assertRaises deprecationThomas A Caswell2019-10-301-3/+3
| | | | failUnlessRaises was deprecated in py31
* TST: fix unittest deprecationThomas A Caswell2019-10-301-11/+11
| | | | failUnless was deprecated in py31
* Remove _compat module.Bob Halley2018-12-091-25/+6
|
* update copyrightBob Halley2018-12-011-0/+2
|
* Initial type signaturesJanus2018-07-311-6/+3
|
* Unify PY2/3 detectionMartin2017-07-191-8/+7
| | | | | | dns._compat module contains constants PY2 and PY3 which should be used for detection of python version, to have only one method and avoid duplications
* pylint disable: keep disabled block as small as possibleMartin2017-07-151-1/+7
|
* Fix more latest pylint warnings.Bob Halley2017-05-301-1/+1
|
* bump copyrightBob Halley2017-01-091-1/+1
|
* Raise IndexError in Answer get and delete if rrset is None.Bob Halley2017-01-091-0/+20
| | | | | Thanks to mschwager for reporting this. [Issue #226].
* Merge pull request #202 from m3047/masterBob Halley2016-09-191-0/+17
|\ | | | | DWIMmmy
| * Try to shut up Travis.Fred Morris2016-09-181-1/+1
| |
| * Tests for empty answersFred Morris2016-09-171-0/+17
| |
* | Pylint: remove unused variablesMartin2016-08-311-2/+1
|/ | | | This commit removes some unused variables (except those in iterations, list comprehensions and used for unpacking)
* Pylint: make pylint happy with exceptionsMartin2016-08-031-4/+4
|
* Fix parent definition of BaseResolverTests classMartin2016-08-031-1/+2
| | | | | | This class needs to have parent 'unittest.TestCase' otherwise test is not executed. With this commit, BaseResolverTests are executed (number of tests increased, yay)
* Pylint: tests: disable check broad-except locally in resolver testMartin2016-07-021-0/+3
|
* Pylint: tests: fix multiple statements on lineMartin2016-07-021-6/+12
|
* Pylint: tests: Fix whitespace errorsMartin2016-07-021-5/+5
|
* Pylint: tests: fix reimportsMartin2016-07-021-1/+0
|
* Pass partial answer when raising DNSException, added unit testsClaudio Luck2016-06-131-0/+178
|
* Automatically skip tests that require Internet access if it is not availableScott Kitterman2016-05-281-0/+12
| | | | | Add code in tests/test_resolver.py to check if dnspython.org can be looked up by socket.gethostbyname as a test of Internet reachability Skip tests requiring Internet access (testZoneForName1, testZoneForName2, and testZoneForName3) if it is not available
* python3 supportArthur Gautier2016-04-211-3/+4
| | | | Signed-off-by: Arthur Gautier <baloo@gandi.net>
* Adds tox and coverage.pyArthur Gautier2016-04-211-1/+4
| | | | Signed-off-by: Arthur Gautier <baloo@gandi.net>
* overhaul test systemBob Halley2014-05-311-0/+184