fixed flake8, pycodestyle and pylint issues
This commit is contained in:
parent
a8e1e7a760
commit
b4a7bcc3b2
|
@ -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-lines,import-error,no-name-in-module,unused-argument
|
||||||
# pylint: disable=too-many-ancestors,too-many-locals,useless-super-delegation
|
# pylint: disable=too-many-ancestors,too-many-locals,useless-super-delegation
|
||||||
|
# pylint: disable=protected-access
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
from bitmessagekivy import identiconGeneration
|
from bitmessagekivy import identiconGeneration
|
||||||
|
@ -420,11 +421,11 @@ class MyAddress(Screen):
|
||||||
if state.association == item['secondary_text']:
|
if state.association == item['secondary_text']:
|
||||||
badge_obj = BadgeText(
|
badge_obj = BadgeText(
|
||||||
size_hint=(None, None),
|
size_hint=(None, None),
|
||||||
|
size=[85 if platform == 'android' else 50, 60],
|
||||||
text='Active', halign='center',
|
text='Active', halign='center',
|
||||||
# font_size = '50sp',
|
font_style='Body1', theme_text_color='Custom',
|
||||||
font_style='Body1', size=[85 if platform == 'android' else 50, 60],
|
text_color=NavigateApp().theme_cls.primary_color
|
||||||
theme_text_color='Custom',
|
)
|
||||||
text_color=NavigateApp().theme_cls.primary_color)
|
|
||||||
badge_obj.font_size = '13sp'
|
badge_obj.font_size = '13sp'
|
||||||
meny.add_widget(badge_obj)
|
meny.add_widget(badge_obj)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -11,13 +11,12 @@ class TestCharMessage(unittest.TestCase):
|
||||||
"""
|
"""
|
||||||
def test_decode(self):
|
def test_decode(self):
|
||||||
"""Test various types of decode method"""
|
"""Test various types of decode method"""
|
||||||
chat_obj = Chatmsg()
|
|
||||||
import messagetypes
|
import messagetypes
|
||||||
result = messagetypes.constructObject({'': 'chatmsg', 'message': 'hello world'})
|
result = messagetypes.constructObject({'': 'chatmsg', 'message': 'hello world'})
|
||||||
self.assertTrue(isinstance(result.message, str))
|
self.assertTrue(isinstance(result.message, str))
|
||||||
|
|
||||||
|
|
||||||
def test_encode(self):
|
def test_encode(self):
|
||||||
|
"""Test various types of encode method"""
|
||||||
chat_obj = Chatmsg()
|
chat_obj = Chatmsg()
|
||||||
result = chat_obj.encode({'message': 'hello world'})
|
result = chat_obj.encode({'message': 'hello world'})
|
||||||
self.assertTrue(True if result['message'] else False)
|
self.assertTrue(True if result['message'] else False)
|
||||||
|
|
Reference in New Issue
Block a user