I'm developing a ML/AI solution and I'm looking to write some unit tests.
I end up with large objects with a lot of data. These come from a data source which is built at runtime. The data created as a composition of information retrieved directly from an API - I have mocked that response into a simpler result, but in order for any test to be meaningful, the full dataset needs to be included.
How do I mock the resultant data source that gets hydrated? Do I have to create a class with static data? That doesn't seem right- it'd be huge, and I'd have to do a lot of it manually. I have sample data, but I'd still have to hydrate it at runtime.
What's a better way to do this?