Skip to content

Commit 6334e7f

Browse files
authored
Merge pull request #1677 from hashtopolis/fix-tests
Fixed error in tests by removing deprecated {extension} from new conf…
2 parents 97e0e46 + e27c7a3 commit 6334e7f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ci/apiv2/hashtopolis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def __init__(self, *args, **kwargs):
5252
class HashtopolisConfig(object):
5353
def __init__(self):
5454
# Request access TOKEN, used throughout the test
55-
load_order = (str(Path(__file__).parent.joinpath('{name}-defaults.{extension}')),) \
55+
load_order = (str(Path(__file__).parent.joinpath('{name}-defaults{suffix}')),) \
5656
+ confidence.DEFAULT_LOAD_ORDER
57-
self._cfg = confidence.load_name('hashtopolis-test', load_order=load_order)
57+
self._cfg = confidence.load_name('hashtopolis-test', load_order=load_order, format=confidence.YAML())
5858
self._hashtopolis_uri = self._cfg['hashtopolis_uri']
5959
self._api_endpoint = self._hashtopolis_uri + '/api/v2'
6060
self.username = self._cfg['username']

ci/apiv2/hashtopolis_agent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class ProcessState(enum.IntEnum):
4646
class HashtopolisConfig(object):
4747
def __init__(self):
4848
# Request access TOKEN, used throughout the test
49-
load_order = (str(Path(__file__).parent.joinpath('{name}-defaults.{extension}')),) \
49+
load_order = (str(Path(__file__).parent.joinpath('{name}-defaults{suffix}')),) \
5050
+ confidence.DEFAULT_LOAD_ORDER
51-
self._cfg = confidence.load_name('hashtopolis-test', load_order=load_order)
51+
self._cfg = confidence.load_name('hashtopolis-test', load_order=load_order, format=confidence.YAML())
5252
self._hashtopolis_uri = self._cfg['hashtopolis_uri']
5353
self._api_endpoint = self._hashtopolis_uri + '/api/v2'
5454
self.username = self._cfg['username']
@@ -60,9 +60,9 @@ class DummyAgent(object):
6060
# State: Early Alpha
6161
def __init__(self, token=None, voucher=None):
6262
# Request access TOKEN, used throughout the test
63-
load_order = (str(Path(__file__).parent.joinpath('{name}-defaults.{extension}')),) \
63+
load_order = (str(Path(__file__).parent.joinpath('{name}-defaults{suffix}')),) \
6464
+ confidence.DEFAULT_LOAD_ORDER
65-
self._cfg = confidence.load_name('hashtopolis-test', load_order=load_order)
65+
self._cfg = confidence.load_name('hashtopolis-test', load_order=load_order, format=confidence.YAML())
6666
self._hashtopolis_uri = self._cfg['hashtopolis_uri']
6767
self._api_endpoint = self._hashtopolis_uri + '/api/server.php'
6868

0 commit comments

Comments
 (0)