is called upon the file instantiation, so it's not possible to mock the partition or the underlying external resource. Thoughts?
01/24/2023, 5:26 PM
Hi Juan - that’s accurate. Building a PartitionsDefinition using resources isn’t a typical Dagster pattern. If you want to be able to mock this out, you’d need to create a function that returns your PartitionsDefinition and asset. Or you could use mock.patch.