fixed flake8, pycodestyle and pylint issues

This commit is contained in:
navjot 2020-05-13 21:31:22 +05:30
parent a8e1e7a760
commit b4a7bcc3b2
No known key found for this signature in database
GPG Key ID: 9EE70AFD71357F1C
2 changed files with 20 additions and 20 deletions

View File

@ -3,6 +3,7 @@ Bitmessage android(mobile) interface
"""
# pylint: disable=too-many-lines,import-error,no-name-in-module,unused-argument
# pylint: disable=too-many-ancestors,too-many-locals,useless-super-delegation
# pylint: disable=protected-access
import os
import time
from bitmessagekivy import identiconGeneration
@ -420,11 +421,11 @@ class MyAddress(Screen):
if state.association == item['secondary_text']:
badge_obj = BadgeText(
size_hint=(None, None),
size=[85 if platform == 'android' else 50, 60],
text='Active', halign='center',
# font_size = '50sp',
font_style='Body1', size=[85 if platform == 'android' else 50, 60],
theme_text_color='Custom',
text_color=NavigateApp().theme_cls.primary_color)
font_style='Body1', theme_text_color='Custom',
text_color=NavigateApp().theme_cls.primary_color
)
badge_obj.font_size = '13sp'
meny.add_widget(badge_obj)
else:

View File

@ -11,13 +11,12 @@ class TestCharMessage(unittest.TestCase):
"""
def test_decode(self):
"""Test various types of decode method"""
chat_obj = Chatmsg()
import messagetypes
result = messagetypes.constructObject({'': 'chatmsg', 'message': 'hello world'})
self.assertTrue(isinstance(result.message, str))
def test_encode(self):
"""Test various types of encode method"""
chat_obj = Chatmsg()
result = chat_obj.encode({'message': 'hello world'})
self.assertTrue(True if result['message'] else False)