ufal / neuralmonkey

An open-source tool for sequence learning in NLP built on TensorFlow.
BSD 3-Clause "New" or "Revised" License
410 stars 104 forks source link

Use unittest discover instead of for loop #760

Closed jindrahelcl closed 5 years ago

jindrahelcl commented 5 years ago
  1. This is slightly faster
  2. We can now use test*.py files anywhere in the package which is perhaps a better practice anyway.

I would either have a test_MODULE.py for each MODULE in the same direktorář as the module, or have a subdirectory PACKAGE/tests for each PACKAGE which would contain unit tests for modules in the package.