Commit cf7836adcb4596a47b419cb306ba37ecaf7ea2c5

Authored by selurvedu
1 parent 0af6eac0

Remove trailing whitespace in two more files

@@ -21,7 +21,7 @@ def test_tender_data(period_interval=2): @@ -21,7 +21,7 @@ def test_tender_data(period_interval=2):
21 "title": u"[ТЕСТУВАННЯ] " + fake.catch_phrase(), 21 "title": u"[ТЕСТУВАННЯ] " + fake.catch_phrase(),
22 "mode": "test", 22 "mode": "test",
23 "submissionMethodDetails": "quick", 23 "submissionMethodDetails": "quick",
24 - "description": "Test tender1", #Error @prom when 'Тестовый тендер' 24 + "description": "Test tender1", #Error @prom when 'Тестовый тендер'
25 "description_en": "Test tender", 25 "description_en": "Test tender",
26 "description_ru": "Тестовый тендер", 26 "description_ru": "Тестовый тендер",
27 "procuringEntity": { 27 "procuringEntity": {
@@ -46,11 +46,11 @@ def test_tender_data(period_interval=2): @@ -46,11 +46,11 @@ def test_tender_data(period_interval=2):
46 } 46 }
47 }, 47 },
48 "value": { 48 "value": {
49 - "amount": 50000, #Error @prom when float '50000.99' 49 + "amount": 50000, #Error @prom when float '50000.99'
50 "currency": u"UAH" 50 "currency": u"UAH"
51 }, 51 },
52 "minimalStep": { 52 "minimalStep": {
53 - "amount": 100, #Error @prom when float '100.1' 53 + "amount": 100, #Error @prom when float '100.1'
54 "currency": u"UAH" 54 "currency": u"UAH"
55 }, 55 },
56 "items": [ 56 "items": [
@@ -98,14 +98,14 @@ def test_tender_data(period_interval=2): @@ -98,14 +98,14 @@ def test_tender_data(period_interval=2):
98 "endDate": (now + timedelta(minutes=(2+period_interval))).isoformat() 98 "endDate": (now + timedelta(minutes=(2+period_interval))).isoformat()
99 } 99 }
100 } 100 }
101 - 101 +
102 def prom_test_tender_data(): 102 def prom_test_tender_data():
103 now = datetime.now() 103 now = datetime.now()
104 return { 104 return {
105 "title": fake.catch_phrase(), 105 "title": fake.catch_phrase(),
106 "mode": "test", 106 "mode": "test",
107 "submissionMethodDetails": "quick", 107 "submissionMethodDetails": "quick",
108 - "description": "Test tender1", #Error @prom when 'Тестовый тендер' 108 + "description": "Test tender1", #Error @prom when 'Тестовый тендер'
109 "description_en": "Test tender", 109 "description_en": "Test tender",
110 "description_ru": "Тестовый тендер", 110 "description_ru": "Тестовый тендер",
111 "procuringEntity": { 111 "procuringEntity": {
@@ -130,11 +130,11 @@ def prom_test_tender_data(): @@ -130,11 +130,11 @@ def prom_test_tender_data():
130 } 130 }
131 }, 131 },
132 "value": { 132 "value": {
133 - "amount": 50000, #Error @prom when float '50000.99' 133 + "amount": 50000, #Error @prom when float '50000.99'
134 "currency": u"UAH" 134 "currency": u"UAH"
135 }, 135 },
136 "minimalStep": { 136 "minimalStep": {
137 - "amount": 100, #Error @prom when float '100.1' 137 + "amount": 100, #Error @prom when float '100.1'
138 "currency": u"UAH" 138 "currency": u"UAH"
139 }, 139 },
140 "items": [ 140 "items": [
@@ -184,7 +184,7 @@ def prom_test_tender_data(): @@ -184,7 +184,7 @@ def prom_test_tender_data():
184 } 184 }
185 } 185 }
186 186
187 -def test_tender_data_multiple_lots(period_interval=2): 187 +def test_tender_data_multiple_lots(period_interval=2):
188 now = datetime.now() 188 now = datetime.now()
189 return { 189 return {
190 "title": fake.catch_phrase(), 190 "title": fake.catch_phrase(),
@@ -368,7 +368,7 @@ def test_tender_data_multiple_lots(period_interval=2): @@ -368,7 +368,7 @@ def test_tender_data_multiple_lots(period_interval=2):
368 "startDate": (now + timedelta(minutes=2)).isoformat(), 368 "startDate": (now + timedelta(minutes=2)).isoformat(),
369 "endDate": (now + timedelta(minutes=(2+period_interval))).isoformat() 369 "endDate": (now + timedelta(minutes=(2+period_interval))).isoformat()
370 } 370 }
371 -} 371 +}
372 372
373 def test_question_data(): 373 def test_question_data():
374 return munchify({ 374 return munchify({
@@ -468,7 +468,7 @@ def test_bid_data(): @@ -468,7 +468,7 @@ def test_bid_data():
468 } 468 }
469 } 469 }
470 }) 470 })
471 - 471 +
472 def auction_bid(): 472 def auction_bid():
473 return munchify({ 473 return munchify({
474 "data": {"value": { 474 "data": {"value": {
@@ -481,4 +481,4 @@ def auction_bid(): @@ -481,4 +481,4 @@ def auction_bid():
481 481
482 482
483 def test_award_data(): 483 def test_award_data():
484 - return munchify({'data': {}})  
  484 + return munchify({'data': {}})
@@ -42,7 +42,7 @@ def prepare_prom_test_tender_data(): @@ -42,7 +42,7 @@ def prepare_prom_test_tender_data():
42 return munchify({'data': prom_test_tender_data()}) 42 return munchify({'data': prom_test_tender_data()})
43 43
44 def compare_date(data1, data2): 44 def compare_date(data1, data2):
45 - data1=parse(data1) 45 + data1=parse(data1)
46 data2=parse(data2) 46 data2=parse(data2)
47 if data1.tzinfo is None: 47 if data1.tzinfo is None:
48 data1 = TIMEZONE.localize(data1) 48 data1 = TIMEZONE.localize(data1)
@@ -52,7 +52,7 @@ def compare_date(data1, data2): @@ -52,7 +52,7 @@ def compare_date(data1, data2):
52 delta = (data1-data2).total_seconds() 52 delta = (data1-data2).total_seconds()
53 if abs(delta) > 60: 53 if abs(delta) > 60:
54 return False 54 return False
55 - return True 55 + return True
56 56
57 def log_object_data(data, file_name="", format="yaml"): 57 def log_object_data(data, file_name="", format="yaml"):
58 if not isinstance(data, Munch): 58 if not isinstance(data, Munch):
@@ -88,7 +88,7 @@ def prepare_test_tender_data(period_interval=2, mode='single'): @@ -88,7 +88,7 @@ def prepare_test_tender_data(period_interval=2, mode='single'):
88 return munchify({'data': test_tender_data(period_interval=period_interval)}) 88 return munchify({'data': test_tender_data(period_interval=period_interval)})
89 elif mode == 'multi': 89 elif mode == 'multi':
90 return munchify({'data': test_tender_data_multiple_lots(period_interval=period_interval)}) 90 return munchify({'data': test_tender_data_multiple_lots(period_interval=period_interval)})
91 - raise ValueError('A very specific bad thing happened') 91 + raise ValueError('A very specific bad thing happened')
92 92
93 93
94 def run_keyword_and_ignore_keyword_definations(name, *args): 94 def run_keyword_and_ignore_keyword_definations(name, *args):
@@ -151,4 +151,4 @@ def wait_to_date(date_stamp): @@ -151,4 +151,4 @@ def wait_to_date(date_stamp):
151 wait_seconds += 2 151 wait_seconds += 2
152 if wait_seconds < 0: 152 if wait_seconds < 0:
153 return 0 153 return 0
154 - return wait_seconds  
  154 + return wait_seconds
Please register or login to post a comment