22
620hun
3y

Oh god, I'm rewriting an old Python script we use at work and I had a look at the original tests for inspiration... There are 600 lines of "passes", #TODOs, assertions that can never fail, and tests of imported packages. Basically none of it is testing the actual script 🙃

Comments
  • 3
    Looks like someone was forced to write "unit tests" while having absolutely no clue about, what unit tests actually are expected to achieve or how to get them doing that...
  • 1
    Testing of imported package, I can gag just by reading this 🤮
  • 1
    @DEVil666 might be worth doing. Pip is a cess pool and lots of packages on it aren't tested with modern tools
Add Comment