My dear friends in Fedi:

I'm in a situation where I'd need to test a function that calls a 3rd party function that uses django.contrib.gis.gdal.DataSource to load data.

My problem is, the data is massive and from the live internet.

I want to mock what is returned when it gets the data from the URL but I can't figure out how to mock it.

Does anyone have experience with this?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.world/users/hamatti/statuses/116216603602254181 on your instance and quote it. (Note that quoting is not supported in Mastodon.)