Replies: 1 comment 4 replies
-
Yes, Definitely open to hearing alternative approaches. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now, that the dust is settling with converting the
tests
folder for both flake8 and pylint (a few PRs still outstanding). I have started to look on adding some tests, and I was a bit curious on theassertFileCollected
functionNow, in one of the code pieces I am writing, I added the following to the
tests/report_tests/plugin_tests/networking.py
however the file was not actually collected by the sosreport, but the
stageone
tests still passes. Looking at the code, to me this seems like, if the file does not exist, it will just PASS. It would be good clarify on this, as both me and David are planning to write many more tests, but want to make sure we do this correctly.At the moment, to me, this test just seems a bit redundant if the file doesn't exist. Shouldn't we assert False here?
Beta Was this translation helpful? Give feedback.
All reactions