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