Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "prototypes: xci: scripts: Add update-osa-version-files.sh script"
[releng.git]
/
utils
/
test
/
testapi
/
opnfv_testapi
/
common
/
config.py
diff --git
a/utils/test/testapi/opnfv_testapi/common/config.py
b/utils/test/testapi/opnfv_testapi/common/config.py
index
46765ff
..
f73c0ab
100644
(file)
--- a/
utils/test/testapi/opnfv_testapi/common/config.py
+++ b/
utils/test/testapi/opnfv_testapi/common/config.py
@@
-17,6
+17,7
@@
class Config(object):
def __init__(self):
self.file = self.CONFIG if self.CONFIG else self._default_config()
self._parse()
def __init__(self):
self.file = self.CONFIG if self.CONFIG else self._default_config()
self._parse()
+ self._parse_per_page()
self.static_path = os.path.join(
os.path.dirname(os.path.normpath(__file__)),
os.pardir,
self.static_path = os.path.join(
os.path.dirname(os.path.normpath(__file__)),
os.pardir,
@@
-37,6
+38,10
@@
class Config(object):
[setattr(self, '{}_{}'.format(section, k), self._parse_value(v))
for k, v in config.items(section)]
[setattr(self, '{}_{}'.format(section, k), self._parse_value(v))
for k, v in config.items(section)]
+ def _parse_per_page(self):
+ if not hasattr(self, 'api_results_per_page'):
+ self.api_results_per_page = 20
+
@staticmethod
def _parse_value(value):
try:
@staticmethod
def _parse_value(value):
try: