ambitious-actor-36781
06/21/2022, 2:47 AM.feature files w/ pytest-bdd in 2.11.x
everything works as intended when we do file(source='test.feature')
But when doing
class GherkinSourceField(SingleSourceField):
expected_file_extensions = (".feature",)
class GherkinSourceTarget(Target):
alias = "gherkin_source"
core_fields = (*COMMON_TARGET_FIELDS, GherkinSourceField,)
and changing file to gherkin_source it stops working, and the .feature file is no longer included.
Feels like file and gherkin_source are functionally identical? Am I missing something?fast-nail-55400
06/21/2022, 3:21 AMFileSourceField.fast-nail-55400
06/21/2022, 3:22 AMFileFieldSet is what is used to see if something is a file target and it has a FileSourceField, so only that class or a subclass will match that FieldSet.fast-nail-55400
06/21/2022, 3:25 AMFileSourceField and ResourceSourceField both inherit from AssetSourceField, and there seems to be some rules like _hydrate_asset_source, so could some API in play that you could hook into.ambitious-actor-36781
06/21/2022, 3:26 AMmain in 2.11 it's differentambitious-actor-36781
06/21/2022, 3:26 AMbitter-ability-32190
06/21/2022, 10:22 AMambitious-actor-36781
06/22/2022, 5:07 AM