2018-04-06 11:58:07 +00:00
|
|
|
import configparser, time, datetime, os
|
2017-12-03 15:02:14 +00:00
|
|
|
|
2018-04-09 10:07:41 +00:00
|
|
|
|
2017-12-03 15:02:14 +00:00
|
|
|
class TestData(object):
|
|
|
|
|
|
|
|
def __init__(self):
|
2018-02-05 14:14:28 +00:00
|
|
|
self.test_name = None
|
2018-01-24 10:58:58 +00:00
|
|
|
self.config = configparser.ConfigParser()
|
|
|
|
|
2018-04-06 11:58:07 +00:00
|
|
|
# put config.ini to /test/end-to-end/tests folder (same directory where config_example.ini is placed
|
|
|
|
self.tests_path = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
self.config.read(os.path.join(self.tests_path, 'config.ini'))
|
2018-01-24 10:58:58 +00:00
|
|
|
|
2018-04-09 10:07:41 +00:00
|
|
|
# create unique identificator for PRs, issues ect
|
2018-04-06 11:58:07 +00:00
|
|
|
ts = time.time()
|
|
|
|
st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S')
|
|
|
|
self.date_time = st
|
2018-01-26 18:12:58 +00:00
|
|
|
|
|
|
|
# self.issue['title'] is set in GithubPage::create_new_bounty
|
|
|
|
# self.issue['id'] is set in GithubPage::create_new_bounty
|
2018-04-06 11:58:07 +00:00
|
|
|
|
2018-01-26 18:12:58 +00:00
|
|
|
|
2017-12-03 15:02:14 +00:00
|
|
|
test_data = TestData()
|