blob: 446b9442a22af5c2a7d1a3dfdf569a75ac55d3bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import os
from opnfv_testapi.common import config
def test_config_success():
config_file = os.path.join(os.path.dirname(__file__),
'../../../../etc/config.ini')
config.Config.CONFIG = config_file
conf = config.Config()
assert conf.mongo_url == 'mongodb://127.0.0.1:27017/'
assert conf.mongo_dbname == 'test_results_collection'
assert conf.api_port == 8000
assert conf.api_debug is True
assert conf.api_authenticate is False
assert conf.swagger_base_url == 'http://localhost:8000'
|