This will be in regards to Unit Testing, just grabbing lab screen snips for now
This showing no result is correct because we don’t want a JSON value returned, so time to write some actual unittest for python!
Note below the unittest is using data “from” other scripts in the same directory!
As seen below this script test has failed as indicated by the highlighted output:
A new hopefully working test here:
At first it fails, but then a “-m unittest” get its to work and check in OK!
In conclusion, there is a URL that should be well know for Python Script testing:
https://docs.python.org/3/library/unittest.html
I will work with that a bit more to understand, but not sure when I will circle back around to that, as I have so much labbing to catch up on here so I may point code / unit testing to this article.
Think I am done dumping posts for this AM, until next time š