Python package structure, setup.py for running unit tests

后端 未结 1 1491
轮回少年
轮回少年 2021-01-31 01:56

I\'m not sure I\'m organizing my package structure correctly or am using the right options in setup.py because I\'m getting errors when I try to run unit tests.

I have a

相关标签:
1条回答
  • 2021-01-31 02:10

    Through some trial and error, I found the cause of this problem. Test names should match module names. If there is a "foo_test.py" test, there needs to be a corresponding module foo.py.

    I found some guidelines on organizing package structure, which helped me reorganize my package into a structure I was confident in.

    0 讨论(0)
提交回复
热议问题