Add devtools script to create module fixtures#404
Add devtools script to create module fixtures#404rytilahti merged 2 commits intopython-kasa:masterfrom
Conversation
|
Dumb question: Where does the data come from for the fixtures being generated? Is this tool extracting it from larger fixture files, pulling it from actual devices or generating it from code or other data? |
|
They are being pulled from the device, the script just makes an update for the given device (or all discovered devices, if using |
Codecov ReportPatch coverage has no change and project coverage change:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #404 +/- ##
==========================================
+ Coverage 79.02% 79.34% +0.32%
==========================================
Files 24 26 +2
Lines 1821 1980 +159
Branches 266 613 +347
==========================================
+ Hits 1439 1571 +132
- Misses 348 367 +19
- Partials 34 42 +8 ☔ View full report in Codecov by Sentry. |
|
I think there is no harm merging this as it may be useful for someone even when there are currently no tests for individual modules. |
I created this script earlier to test the idea of having module-specific fixture files for testing, but never had time to finish working on that. This draft is created just to not forget about it completely.
for example:
will create files from the given network under
/tmp/testfix/: