FUSE: fix build failure when pytest try to run gen-api-data.py
Example of failing pipeline because of this bug: https://jenkins.softwareheritage.org/job/DFUSE/job/tests/138/console
Does not occur all the time, so it is hard to replicate, but we should prevent pytest from running anything under tests/data
.
Migrated from T2795 (view on Phabricator)