Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for the Chuangmi IR controller #184

Merged
merged 13 commits into from Jan 28, 2018

Conversation

syssi
Copy link
Collaborator

@syssi syssi commented Jan 27, 2018

No description provided.

@coveralls
Copy link

coveralls commented Jan 27, 2018

Coverage Status

Coverage increased (+1.05%) to 66.233% when pulling db383a9 on syssi:feature/pytests-chuangmi-ir into ff11aed on rytilahti:master.

except TypeError:
return False

@pytest.fixture(scope="class")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected 2 blank lines, found 1

@syssi syssi force-pushed the feature/pytests-chuangmi-ir branch from 5d7c5d2 to 5557f99 Compare January 27, 2018 17:11
@@ -13,7 +13,7 @@ class ChuangmiIrException(DeviceException):
class ChuangmiIr(Device):
"""Main class representing Chuangmi IR Remote Controller."""

def learn(self, key: int):
def learn(self, key: int = 1):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have here whitespaces around = while none for frequency in play, looks fine otherwise so ship it!

rytilahti
rytilahti previously approved these changes Jan 27, 2018
@rytilahti rytilahti dismissed their stale review January 27, 2018 21:33

Oops, looks like the tests are failing!

@syssi
Copy link
Collaborator Author

syssi commented Jan 28, 2018

@rytilahti Could you check the travis log for an advice? I'm blind and out of ideas.

super().__init__(args, kwargs)

@staticmethod
def _ir_play_input_validation(self, payload):
Copy link
Owner

@rytilahti rytilahti Jan 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this definition is wrong for a staticmethod, if you remove self it should start working :-)

'001600160016004100160041001600410016004100160623' \
'015B005700160E6E'

class DummyChuangmiIr(DummyDevice, ChuangmiIr):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected 2 blank lines, found 1

@syssi syssi merged commit e861c3a into rytilahti:master Jan 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants