Skip to content

Commit ff026a3

Browse files
Replace path in test config with abstract path
1 parent e99c897 commit ff026a3

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

openprocurement/auction/tests/bridge_utils/auctions_data_bridge.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ main:
1313
texas_streams: 20
1414
plugins:
1515
english:
16-
auction_worker_config: /home/oleksiy.veretiuk/QuintaGroup/projects/kadastral/openprocurement.auction.buildout/etc/auction_worker_defaults.yaml
16+
auction_worker_config: /path/to/auction_worker_defaults.yaml
1717
procurement_method_types: [DGFOtherAssets, dgfFinancialAssets]
18-
auction_worker: /home/oleksiy.veretiuk/QuintaGroup/projects/kadastral/openprocurement.auction.buildout/bin/auction_worker
18+
auction_worker: /path/to/auction_worker
1919
dutch:
20-
auction_worker_config: /home/oleksiy.veretiuk/QuintaGroup/projects/kadastral/openprocurement.auction.buildout/etc/auction_worker_insider.yaml
20+
auction_worker_config: /path/to/auction_worker_insider.yaml
2121
procurement_method_types: [dgfInsider]
22-
auction_worker: /home/oleksiy.veretiuk/QuintaGroup/projects/kadastral/openprocurement.auction.buildout/bin/auction_insider
22+
auction_worker: /path/to/auction_insider
2323
texas:
24-
auction_worker_config: /home/oleksiy.veretiuk/QuintaGroup/projects/kadastral/openprocurement.auction.buildout/etc/auction_worker_texas.yaml
24+
auction_worker_config: /path/to/auction_worker_texas.yaml
2525
procurement_method_types: [landLease]
26-
auction_worker: /home/oleksiy.veretiuk/QuintaGroup/projects/kadastral/openprocurement.auction.buildout/bin/auction_texas
26+
auction_worker: /path/to/auction_texas
2727
retrievers_params:
2828
down_requests_sleep: 0.1
2929
up_requests_sleep: 0.1

openprocurement/auction/tests/bridge_utils/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from __future__ import print_function
33
import os
44
import unittest
5+
import mock
56

67
from yaml import load
78
from couchdb import Server
@@ -21,7 +22,8 @@ def setUp(self):
2122
with open(dir_path + '/auctions_data_bridge.yaml') as config_file_obj:
2223
config = load(config_file_obj.read())
2324

24-
bridge = AuctionsDataBridge(config)
25+
with mock.patch('openprocurement.auction.databridge.check_workers'):
26+
bridge = AuctionsDataBridge(config)
2527

2628
self.couchdb_server = Server(config['main'].get('couch_url'))
2729
self.db = bridge.stream_db

0 commit comments

Comments
 (0)