File tree Expand file tree Collapse file tree
openprocurement/auction/tests/bridge_utils Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 22from __future__ import print_function
33import os
44import unittest
5+ import mock
56
67from yaml import load
78from 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
You can’t perform that action at this time.
0 commit comments