Python Plugin how to use pytest
Posted: Monday 22 March 2021 21:33
I have written 2 plugins for Domoticz. I am using github.com for my code.
Now I want to be able to run some tests on my plugins.
I want to start with flake8, this is a test that check if your code is with "correct" design, like 4 space indent.
The problem that I have is that flake8 is also checking that a variable is defined, which Parameters[""] isn't, because that variable is coming from Domoticz.
Anyone that have written a plugin and have a working workflow for Github?
Now I want to be able to run some tests on my plugins.
I want to start with flake8, this is a test that check if your code is with "correct" design, like 4 space indent.
The problem that I have is that flake8 is also checking that a variable is defined, which Parameters[""] isn't, because that variable is coming from Domoticz.
Anyone that have written a plugin and have a working workflow for Github?