Pytest failures due to duplicated test file names #263
Labels
generator
Bugs, features, and so forth pertaining to the generated client surface
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I generated text-to-speech, which has two versions (v1 and v1beta1). The
tests
directory looks like this:The tests run fine with the noxfile provided by the generator
--cov={{ api.naming.module_namespace|join("/") }}/{{ api.naming.versioned_module_name }}/
, but fail with a less specific invocation like--cov=tests.unit
.According to pytest-dev/pytest#3151, every test file name should be distinct name or there should be
__init__.py
files. The monolith seems to go the route of having distinct names for every file.The text was updated successfully, but these errors were encountered: