Factories for randomised AFL data sets, selling candy to your unit tests.
The shape and content of the data is based on what's returned by the R package fitzRoy
, which gets most of its data from the sites Footywire and AFLTables. The column names are converted to snake_case
for convenience.
pip3 install candystore
from candystore import CandyStore
candy = CandyStore()
candy.fixtures()
More-detailed documentation can be found at https://candystore.readthedocs.io/en/latest/
- Install Docker
- Build Docker image for integration tests:
docker build -t candystore_tests .
-
pip3 install -r requirements.txt
- Run tests with the script file
./scripts/tests.sh