Skip to content

Tests for the Chuangmi IR controller#184

Merged
syssi merged 13 commits intorytilahti:masterfrom
syssi:feature/pytests-chuangmi-ir
Jan 28, 2018
Merged

Tests for the Chuangmi IR controller#184
syssi merged 13 commits intorytilahti:masterfrom
syssi:feature/pytests-chuangmi-ir

Conversation

@syssi
Copy link
Copy Markdown
Collaborator

@syssi syssi commented Jan 27, 2018

No description provided.

@coveralls
Copy link
Copy Markdown

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")
Copy link
Copy Markdown

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
"""Main class representing Chuangmi IR Remote Controller."""

def learn(self, key: int):
def learn(self, key: int = 1):
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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):
Copy link
Copy Markdown

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.

4 participants