23 lines
660 B
Python
23 lines
660 B
Python
# pyright: reportCallIssue=false
|
|
|
|
from __future__ import annotations
|
|
|
|
from behave import when
|
|
|
|
from KVSTest.testdata.kvs_test_data import KVSTestData
|
|
|
|
|
|
@when("create place for kvs") # pyright: ignore[reportGeneralTypeIssues]
|
|
def step_create_place_for_kvs(context) -> None:
|
|
td = KVSTestData.from_behave_context(context)
|
|
td.ensure_place()
|
|
context.kvs_place_id = td.place_id
|
|
|
|
|
|
@when("create user for kvs") # pyright: ignore[reportGeneralTypeIssues]
|
|
def step_create_user_for_kvs(context) -> None:
|
|
td = KVSTestData.from_behave_context(context)
|
|
td.create_user()
|
|
context.kvs_account_id = td.account_id
|
|
context.kvs_username = td.username
|