mirror of
https://github.com/dh1tw/pyhamtools.git
synced 2026-01-13 04:00:42 +01:00
create fixture for countryfileMapping as dict
This commit is contained in:
parent
0cfea2ec89
commit
098307308d
|
|
@ -1,7 +1,6 @@
|
|||
import pytest
|
||||
import tempfile
|
||||
import os
|
||||
import logging
|
||||
import pkgutil
|
||||
import json
|
||||
|
||||
from pyhamtools import LookupLib
|
||||
from pyhamtools import Callinfo
|
||||
|
|
@ -96,3 +95,7 @@ def fix_redis():
|
|||
@pytest.fixture(scope="module")
|
||||
def fix_qrz():
|
||||
return LookupLib(lookuptype="qrz", username=QRZ_USERNAME, pwd=QRZ_PWD)
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def fixCountryMapping():
|
||||
return json.loads(pkgutil.get_data("pyhamtools", "countryfilemapping.json"))
|
||||
Loading…
Reference in a new issue