You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rytilahti Did I do this correct? Could you provide what else I must change? Maybe move test some how.
Looking good, but yeah, the test should also be moved under tests/ inside the integration directory. Could you try if it still get executed fine after moving it? I think pytest should find it still just fine, and If not, we'll need to figure out how to adjust the test collection. The test itself should probably use a relative import for the module under test, and absolute imports just for modules that are contained under miio or miio.tests.
@rytilahti Look to new commit please. Locally test start pytest miio integrations and pytest --cov miio --cov integrations but i`m not shore that this is correct. Could you help me with pytest configuration? Its out of my understanding.
@Kirmas the integrations should be inside the miio package so that it will be accessible so I changed that. Now running pytest miio works and it's finding the test file just fine :-)
@Kirmas the integrations should be inside the miio package so that it will be accessible so I changed that. Now running pytest miio works and it's finding the test file just fine :-)
Funny misunderstanding. Is this PR is Ok now? I really want add spec file in the new one. To do this step by step.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on #1094 (review) but I believe the "moving" PR could be separate. This PR only move the yeelight code to the folder. Next PR will be soon.
@rytilahti could you merge this one?