chore: remove parametrization where it is not in use in fact
This commit is contained in:
parent
33251f2bfe
commit
65dd9c542f
|
@ -35,7 +35,7 @@ def test_join_community_and_pin_unpin_message(multiple_instances, user_data_one,
|
||||||
community_params['name'] = f'{datetime.now():%d%m%Y_%H%M%S}'
|
community_params['name'] = f'{datetime.now():%d%m%Y_%H%M%S}'
|
||||||
main_screen = MainWindow()
|
main_screen = MainWindow()
|
||||||
|
|
||||||
with multiple_instances(user_data_one) as aut_one, multiple_instances(user_data_two) as aut_two:
|
with multiple_instances(user_data=user_data_one) as aut_one, multiple_instances(user_data=user_data_two) as aut_two:
|
||||||
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
||||||
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
||||||
aut.attach()
|
aut.attach()
|
||||||
|
|
|
@ -20,17 +20,14 @@ pytestmark = marks
|
||||||
|
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703087', '1-1 Chat')
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703087', '1-1 Chat')
|
||||||
@pytest.mark.case(703087)
|
@pytest.mark.case(703087)
|
||||||
@pytest.mark.parametrize('user_data_one, user_data_two', [
|
def test_1x1_chat(multiple_instances):
|
||||||
(configs.testpath.TEST_USER_DATA / 'user_account_one', configs.testpath.TEST_USER_DATA / 'user_account_two')
|
|
||||||
])
|
|
||||||
def test_1x1_chat(multiple_instances, user_data_one, user_data_two):
|
|
||||||
user_one: UserAccount = constants.user_account_one
|
user_one: UserAccount = constants.user_account_one
|
||||||
user_two: UserAccount = constants.user_account_two
|
user_two: UserAccount = constants.user_account_two
|
||||||
main_window = MainWindow()
|
main_window = MainWindow()
|
||||||
messages_screen = MessagesScreen()
|
messages_screen = MessagesScreen()
|
||||||
emoji = 'sunglasses'
|
emoji = 'sunglasses'
|
||||||
|
|
||||||
with (multiple_instances() as aut_one, multiple_instances() as aut_two):
|
with multiple_instances(user_data=None) as aut_one, multiple_instances(user_data=None) as aut_two:
|
||||||
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
||||||
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
||||||
aut.attach()
|
aut.attach()
|
||||||
|
|
|
@ -37,8 +37,8 @@ def test_group_chat(multiple_instances, user_data_one, user_data_two, user_data_
|
||||||
main_window = MainWindow()
|
main_window = MainWindow()
|
||||||
messages_screen = MessagesScreen()
|
messages_screen = MessagesScreen()
|
||||||
|
|
||||||
with multiple_instances(user_data_one) as aut_one, multiple_instances(user_data_two) as aut_two, multiple_instances(
|
with multiple_instances(user_data=user_data_one) as aut_one, multiple_instances(user_data=user_data_two) as aut_two, multiple_instances(
|
||||||
user_data_three) as aut_three:
|
user_data=user_data_three) as aut_three:
|
||||||
with step(f'Launch multiple instances with authorized users {user_one.name}, {user_two.name}, {user_three}'):
|
with step(f'Launch multiple instances with authorized users {user_one.name}, {user_two.name}, {user_three}'):
|
||||||
for aut, account in zip([aut_one, aut_two, aut_three], [user_one, user_two, user_three]):
|
for aut, account in zip([aut_one, aut_two, aut_three], [user_one, user_two, user_three]):
|
||||||
aut.attach()
|
aut.attach()
|
||||||
|
|
|
@ -41,17 +41,14 @@ def test_change_own_display_name(main_screen: MainWindow, user_account, new_name
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703003', 'Switch state to online')
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703003', 'Switch state to online')
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703004', 'Switch state to automatic')
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703004', 'Switch state to automatic')
|
||||||
@pytest.mark.case(703002, 703003, 703004)
|
@pytest.mark.case(703002, 703003, 703004)
|
||||||
@pytest.mark.parametrize('user_data_one, user_data_two', [
|
def test_switch_state_to_offline_online_automatic(multiple_instances):
|
||||||
(configs.testpath.TEST_USER_DATA / 'user_account_one', configs.testpath.TEST_USER_DATA / 'user_account_two')
|
|
||||||
])
|
|
||||||
def test_switch_state_to_offline_online_automatic(multiple_instances, user_data_one, user_data_two):
|
|
||||||
user_one: UserAccount = constants.user_account_one
|
user_one: UserAccount = constants.user_account_one
|
||||||
user_two: UserAccount = constants.user_account_two
|
user_two: UserAccount = constants.user_account_two
|
||||||
community_params = deepcopy(constants.community_params)
|
community_params = deepcopy(constants.community_params)
|
||||||
community_params['name'] = f'{datetime.now():%d%m%Y_%H%M%S}'
|
community_params['name'] = f'{datetime.now():%d%m%Y_%H%M%S}'
|
||||||
main_screen = MainWindow()
|
main_screen = MainWindow()
|
||||||
|
|
||||||
with multiple_instances() as aut_one, multiple_instances() as aut_two:
|
with multiple_instances(user_data=None) as aut_one, multiple_instances(user_data=None) as aut_two:
|
||||||
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
||||||
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
||||||
aut.attach()
|
aut.attach()
|
||||||
|
|
|
@ -15,16 +15,13 @@ pytestmark = marks
|
||||||
|
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703011', 'Add a contact with a chat key')
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703011', 'Add a contact with a chat key')
|
||||||
@pytest.mark.case(703011)
|
@pytest.mark.case(703011)
|
||||||
@pytest.mark.parametrize('user_data_one, user_data_two', [
|
|
||||||
(configs.testpath.TEST_USER_DATA / 'user_account_one', configs.testpath.TEST_USER_DATA / 'user_account_two')
|
|
||||||
])
|
|
||||||
# TODO: reason='https://github.com/status-im/desktop-qa-automation/issues/346'
|
# TODO: reason='https://github.com/status-im/desktop-qa-automation/issues/346'
|
||||||
def test_messaging_settings_accepting_request(multiple_instances, user_data_one, user_data_two):
|
def test_messaging_settings_accepting_request(multiple_instances):
|
||||||
user_one: UserAccount = constants.user_account_one
|
user_one: UserAccount = constants.user_account_one
|
||||||
user_two: UserAccount = constants.user_account_two
|
user_two: UserAccount = constants.user_account_two
|
||||||
main_window = MainWindow()
|
main_window = MainWindow()
|
||||||
|
|
||||||
with (multiple_instances() as aut_one, multiple_instances() as aut_two):
|
with (multiple_instances(user_data=None) as aut_one, multiple_instances(user_data=None) as aut_two):
|
||||||
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
||||||
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
||||||
aut.attach()
|
aut.attach()
|
||||||
|
|
|
@ -16,15 +16,12 @@ pytestmark = marks
|
||||||
|
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/704611', 'Reply to identity request')
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/704611', 'Reply to identity request')
|
||||||
@pytest.mark.case(704611)
|
@pytest.mark.case(704611)
|
||||||
@pytest.mark.parametrize('user_data_one, user_data_two', [
|
def test_messaging_settings_identity_verification(multiple_instances):
|
||||||
(configs.testpath.TEST_USER_DATA / 'user_account_one', configs.testpath.TEST_USER_DATA / 'user_account_two')
|
|
||||||
])
|
|
||||||
def test_messaging_settings_identity_verification(multiple_instances, user_data_one, user_data_two):
|
|
||||||
user_one: UserAccount = constants.user_account_one
|
user_one: UserAccount = constants.user_account_one
|
||||||
user_two: UserAccount = constants.user_account_two
|
user_two: UserAccount = constants.user_account_two
|
||||||
main_window = MainWindow()
|
main_window = MainWindow()
|
||||||
|
|
||||||
with multiple_instances() as aut_one, multiple_instances() as aut_two:
|
with multiple_instances(user_data=None) as aut_one, multiple_instances(user_data=None) as aut_two:
|
||||||
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
||||||
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
||||||
aut.attach()
|
aut.attach()
|
||||||
|
|
|
@ -13,15 +13,12 @@ pytestmark = marks
|
||||||
|
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/704610', 'Reject a contact request with a chat key')
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/704610', 'Reject a contact request with a chat key')
|
||||||
@pytest.mark.case(704610)
|
@pytest.mark.case(704610)
|
||||||
@pytest.mark.parametrize('user_data_one, user_data_two', [
|
def test_messaging_settings_rejecting_request(multiple_instances):
|
||||||
(configs.testpath.TEST_USER_DATA / 'user_account_one', configs.testpath.TEST_USER_DATA / 'user_account_two')
|
|
||||||
])
|
|
||||||
def test_messaging_settings_rejecting_request(multiple_instances, user_data_one, user_data_two):
|
|
||||||
user_one: UserAccount = constants.user_account_one
|
user_one: UserAccount = constants.user_account_one
|
||||||
user_two: UserAccount = constants.user_account_two
|
user_two: UserAccount = constants.user_account_two
|
||||||
main_window = MainWindow()
|
main_window = MainWindow()
|
||||||
|
|
||||||
with multiple_instances() as aut_one, multiple_instances() as aut_two:
|
with multiple_instances(user_data=None) as aut_one, multiple_instances(user_data=None) as aut_two:
|
||||||
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
with step(f'Launch multiple instances with authorized users {user_one.name} and {user_two.name}'):
|
||||||
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
for aut, account in zip([aut_one, aut_two], [user_one, user_two]):
|
||||||
aut.attach()
|
aut.attach()
|
||||||
|
|
Loading…
Reference in New Issue