Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ABSLord committed Mar 29, 2019
1 parent c1ee6fe commit 33b2a3b
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions rc_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ def __init__(self, addr, username, password, **kwargs):

self._non_unique_channel_name = 'test_channel'

self._default_media_types = 'image/*,audio/*,video/*,' \
'application/zip,' \
'application/x-rar-compressed,' \
'application/pdf,text/plain,' \
'application/msword,' \
'application/vnd.openxmlformats-' \
'officedocument.wordprocessingml.document'

self._default_media_types = ('image/*,audio/*,video/*,'
'application/zip,'
'application/x-rar-compressed,'
'application/pdf,text/plain,'
'application/msword,'
'application/vnd.openxmlformats-'
'officedocument.wordprocessingml.document'
)
self.wait_filling = 7

self.schedule_test_case('_delete_channels')
Expand Down Expand Up @@ -201,6 +201,7 @@ def _copy_image_to_clipboard(self):
#
# Public methods
#

def test_starring_messages(self):
"""Tests if it's possible to star messages.
See https://rocket.chat/docs/user-guides/messaging/#starring-messages.
Expand Down Expand Up @@ -1067,9 +1068,7 @@ def test_attaching_file(self):
self.check_latest_response_with_retries(expected_message, match=True)

def test_changing_accepted_media_types(self):
"""Tests the case when a accepted media types
was correctly changed.
"""
"""Tests the case when a accepted media types was correctly changed."""

WebDriverWait(self.browser.driver, 10).until(
lambda _: self._check_hiding_toast_message())
Expand Down Expand Up @@ -1120,9 +1119,7 @@ def test_changing_accepted_media_types(self):
close_btn[0])

def test_trying_to_attach_unaccepted_file_type(self):
"""Tests the case when a unaccepted media types was not correctly
attached.
"""
"""Tests the case when a unaccepted media types was not correctly attached."""
self.choose_general_channel()
plus_msg_btn = self.find_by_css('svg.rc-icon.rc-input__icon-svg.'
'rc-input__icon-svg--plus')
Expand Down

0 comments on commit 33b2a3b

Please sign in to comment.