From c52bd544bf977b4835ee74fd4170947ae0883725 Mon Sep 17 00:00:00 2001 From: "Tobias Wellnitz, DH1TW" Date: Sun, 20 May 2018 17:24:51 +0200 Subject: [PATCH] removed XX1XX test due to too frequent changes --- test/test_lookuplib_qrz.py | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/test/test_lookuplib_qrz.py b/test/test_lookuplib_qrz.py index 8c3e269..e965b8b 100644 --- a/test/test_lookuplib_qrz.py +++ b/test/test_lookuplib_qrz.py @@ -19,28 +19,6 @@ except Exception: #Fixtures #=========================================================== -response_XX1XX = { - # u'addr2': u'Not QSL', - u'adif': 0, - u'bio': u'0', - u'biodate': datetime(2017, 7, 21, 0, 47, 25, tzinfo=UTC), - u'callsign': u'XX1XX', - u'ccode': 10, - u'country': u'Antarctica', -# u'eqsl': True, - # u'fname': u'Test page', - # u'geoloc': u'dxcc', - u'land': u'NON-DXCC', -# u'latitude': 23.644524, -# u'locator': u'LL73ep', -# u'longitude': 54.382324, -# u'lotw': True, - u'moddate': datetime(2017, 7, 21, 0, 56, 15, tzinfo=UTC), -# u'mqsl': True, - # u'name': u'~', -# u'user': u'XX1XX', - u'license_class': u'1', - } response_XX2XX = { u'adif': 446, @@ -71,7 +49,7 @@ response_XX2XX = { u'name': u'Blufferd', u'qslmgr': u'nobody here. gone fishing, permanently', u'state': u'mt', - # u'user': u'XX2XX', + u'user': u'XX1XX', u'zipcode': u'112233' } @@ -147,14 +125,6 @@ class TestQrzConstructur: class TestQrz_Callsign_Lookup: def test_lookup_callsign(self, fix_qrz): - data = fix_qrz._lookup_qrz_callsign("xx1xx", fix_qrz._apikey) - data.pop('u_views', None) - assert data == response_XX1XX #check content - assert len(data) == len(response_XX1XX) #ensure all fields are included - - data = fix_qrz._lookup_qrz_callsign("XX1XX", fix_qrz._apikey) - data.pop('u_views', None) - assert data == response_XX1XX data = fix_qrz._lookup_qrz_callsign("XX2XX", fix_qrz._apikey) data.pop('u_views', None)