Showing
1 changed file
with
1 additions
and
8 deletions
| 1 | 1 | # -*- coding: utf-8 - |
| 2 | 2 | import os |
| 3 | -from tempfile import NamedTemporaryFile | |
| 4 | 3 | from munch import munchify, Munch, fromYAML |
| 5 | 4 | from json import load |
| 6 | 5 | from iso8601 import parse_date |
| ... | ... | @@ -18,17 +17,11 @@ import time |
| 18 | 17 | from .initial_data import ( |
| 19 | 18 | test_tender_data, test_question_data, test_question_answer_data, |
| 20 | 19 | test_bid_data, test_award_data, test_complaint_data, test_complaint_reply_data, test_tender_data_multiple_lots, |
| 21 | - auction_bid, prom_test_tender_data | |
| 20 | + auction_bid, prom_test_tender_data, create_fake_doc | |
| 22 | 21 | ) |
| 23 | 22 | |
| 24 | 23 | TIMEZONE = timezone('Europe/Kiev') |
| 25 | 24 | |
| 26 | -def create_file(content): | |
| 27 | - tf = NamedTemporaryFile(delete=False) | |
| 28 | - tf.write(content) | |
| 29 | - tf.close() | |
| 30 | - return tf.name | |
| 31 | - | |
| 32 | 25 | def get_date(): |
| 33 | 26 | return datetime.now().isoformat() |
| 34 | 27 | ... | ... |
Please
register
or
login
to post a comment