gorgeous-winter-99296
03/07/2023, 8:35 AMtests/fixtures in a separate subdir, but it doesn't seem like the "pants way" but putting a src/fixtures dir seems weird too.bitter-ability-32190
03/07/2023, 4:30 PMtests/fixtures?
FWIW we just use conftest.py files and Pants auto-picks those upbitter-ability-32190
03/07/2023, 4:31 PMconftest.py we have the "string imports" feature of Pants enabled, and use pytest_plugins = ["<http://path.to|path.to>.fixture"]gorgeous-winter-99296
03/07/2023, 4:31 PM__init__.py with a FIXTURES = Path(__file__).parent / 'fixtures' and then various helpers to load from that. Maybe this is super-wrong from pytest too. But I imagined I'd need some way of explicitly telling pants these are resources for the tests?bitter-ability-32190
03/07/2023, 4:33 PMhappy-kitchen-89482
03/07/2023, 6:37 PMsrc/python/foo/bar.py, src/python/foo/bar_test.py) and having src/python/foo/fixtures seems fine to me!happy-kitchen-89482
03/07/2023, 6:38 PMtest/ and fixtures/ dirs separate from src/ is that they don't know how to not bundle those along with the source at packaging time. But pants does know that.gorgeous-winter-99296
03/08/2023, 9:55 AMhappy-kitchen-89482
03/08/2023, 6:27 PM