-
I'm starting to play around with data loading code, and that involves providing data to load in tests. One option is provide data in the test files themselves - and for simple text/JSON objects that is probably easiest. However, for more complex files such as NetCDF, creating I've had a look at a couple of options: Both of those are currently 2.7 and then 3.8 or lower, but But - any other options or thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I'm not sure I understand the issue here. Is there any problem on having real files for tests, JSON, NetCDF or anything else? Unless they have sensitive data or are huge files (>50 Mb), that's what we have done in other projects, just putting them within a subfolder |
Beta Was this translation helpful? Give feedback.
I'm not sure I understand the issue here. Is there any problem on having real files for tests, JSON, NetCDF or anything else? Unless they have sensitive data or are huge files (>50 Mb), that's what we have done in other projects, just putting them within a subfolder
data
insidetests
, and create an associated feature inconftest.py
so they can be used easily within any test.