Skip to content

Data in pytest tests #77

Closed Answered by dalonsoa
davidorme asked this question in Q&A
Sep 26, 2022 · 1 comments · 5 replies

You must be logged in to vote

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 inside tests, and create an associated feature in conftest.py so they can be used easily within any test.

Replies: 1 comment 5 replies

You must be logged in to vote
5 replies
@davidorme

davidorme Sep 26, 2022
Maintainer Author

@dalonsoa

@davidorme

davidorme Sep 26, 2022
Maintainer Author

@dalonsoa

@davidorme

davidorme Sep 26, 2022
Maintainer Author

Answer selected by davidorme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants