From 2880c6ae3a82a992a7199fa8d0e593f0ac993b6a Mon Sep 17 00:00:00 2001 From: Babak Farrokhi Date: Tue, 3 May 2016 19:53:37 +0430 Subject: [PATCH 1/2] add basic unit test for nose --- dnstraceroute.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dnstraceroute.py b/dnstraceroute.py index e1df297..486635a 100755 --- a/dnstraceroute.py +++ b/dnstraceroute.py @@ -41,6 +41,9 @@ __author__ = 'Babak Farrokhi (babak@farrokhi.net)' __license__ = 'BSD' __version__ = 1.3 +def test_import(): + pass + # http://pythonhosted.org/cymruwhois/ try: import cymruwhois From ca969e4d5803a3902fb021aa6e3fd65e490f25f5 Mon Sep 17 00:00:00 2001 From: Babak Farrokhi Date: Tue, 3 May 2016 19:54:56 +0430 Subject: [PATCH 2/2] instruct nose to test dnstracerotue.py --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4c271f1..7c7df19 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: python python: "3.4" install: pip install --process-dependency-links dnsdiag -script: nosetests +script: nosetests dnstraceroute.py