Skip to content

Commit

Permalink
Add more environ vars
Browse files Browse the repository at this point in the history
  • Loading branch information
VDigitall committed Nov 1, 2018
1 parent bb76f12 commit 7063eee
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/openprocurement/api/tests/fixtures/config.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import os
import uuid


DB_HOST = os.environ.get('DB_HOST', 'localhost')
DB_PORT = os.environ.get('DB_PORT', '5984')
DB_USER = os.environ.get('DB_USER', 'op')
DB_PASS = os.environ.get('DB_PASS', 'op')
API_VERSION = os.environ.get('API_VERSION', '2.5')
PARTIAL_MOCK_CONFIG = {
"config":{
"db":{
"url":"{host}:5984".format(host=DB_HOST),
"db_name":"db_tests",
"url":"{host}:{port}".format(host=DB_HOST, port=DB_PORT),
"db_name":"db_tests_{}".format(uuid.uuid4().hex),
"writer":{
"password":"op",
"name":"op"
"password":DB_PASS,
"name":DB_USER
},
"type":"couchdb"
},
Expand All @@ -18,7 +23,7 @@
"type":"file"
},
"main":{
"api_version": "2.5"
"api_version": API_VERSION
}
},
"plugins":{
Expand Down

0 comments on commit 7063eee

Please sign in to comment.