Defra-Data-Science-Centre-of-Excellence / pyspark-vector-files

Read vector files into a Spark DataFrame with geometry encoded as WKB.
https://defra-data-science-centre-of-excellence.github.io/pyspark-vector-files/
MIT License
5 stars 1 forks source link

Write tests for new version of `_get_paths` #1

Open EFT-Defra opened 2 years ago

EFT-Defra commented 2 years ago

We need to test that _get_paths:

The approach I've take so far is to generate the test data at runtime using pytest fixtures defined in a pytest conftest.py files. However, I don't think this is scalable, seeing as we need to create lots of different files to test various aspects of the module's functionality. It might be worth therefore looking at the pytest-datadir or pytest-cases plugins to see if there's a better way to generate and store our test data.

Resources: