Showing
2 changed files
with
5 additions
and
2 deletions
@@ -26,7 +26,7 @@ ${question_id} 0 | @@ -26,7 +26,7 @@ ${question_id} 0 | ||
26 | [Arguments] @{ARGUMENTS} | 26 | [Arguments] @{ARGUMENTS} |
27 | [Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо | 27 | [Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо |
28 | ${api_wrapper}= prepare_api_wrapper ${USERS.users['${ARGUMENTS[0]}'].api_key} ${API_HOST_URL} ${api_version} | 28 | ${api_wrapper}= prepare_api_wrapper ${USERS.users['${ARGUMENTS[0]}'].api_key} ${API_HOST_URL} ${api_version} |
29 | - ${creation_date} = get_now | 29 | + ${creation_date} = get_date |
30 | Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} creation_date ${creation_date} | 30 | Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} creation_date ${creation_date} |
31 | Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} client ${api_wrapper} | 31 | Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} client ${api_wrapper} |
32 | Log Variables | 32 | Log Variables |
@@ -24,7 +24,10 @@ from .initial_data import ( | @@ -24,7 +24,10 @@ from .initial_data import ( | ||
24 | TZ = timezone(os.environ['TZ'] if 'TZ' in os.environ else 'Europe/Kiev') | 24 | TZ = timezone(os.environ['TZ'] if 'TZ' in os.environ else 'Europe/Kiev') |
25 | 25 | ||
26 | def get_now(): | 26 | def get_now(): |
27 | - return datetime.now(TZ).isoformat() | 27 | + return datetime.now(TZ) |
28 | + | ||
29 | +def get_date(): | ||
30 | + return get_now().isoformat() | ||
28 | 31 | ||
29 | def get_file_contents(path): | 32 | def get_file_contents(path): |
30 | with open(path, 'r') as f: | 33 | with open(path, 'r') as f: |
Please
register
or
login
to post a comment