Module: src/init_migration/generate_pipeline.py
Write an integration tests that passes a GenerateReq object to GeneratePipeline and tests the pipeline returns the expected output.
Use the test cases stored in the sample_data directory: https://github.com/openstates/jurisdictions/blob/main/tests/sample_data/testing_creyton_sample.csv and insure
Ensure that the output of genearte_pipeline.py outputs data that matches the test cases in the sample_output directory:
tests/sample_output which contains the expected output for these five test cases as jurisdiction/local/.yaml and division/local/.yaml files.
The test should output correctly structure .yaml files.
Note: We will use this test to resolve the inner methods of the pipeline such that ultimately the test produces correctly structured .yaml files and the values stored in the .yaml file also match the expected output files. At this point the test will likely not produce the expected output with all of the data included. However, creating this test will help us identify the areas of the pipeline that need additional work.
Module: src/init_migration/generate_pipeline.py
Write an integration tests that passes a GenerateReq object to GeneratePipeline and tests the pipeline returns the expected output.
Use the test cases stored in the sample_data directory: https://github.com/openstates/jurisdictions/blob/main/tests/sample_data/testing_creyton_sample.csv and insure
Ensure that the output of genearte_pipeline.py outputs data that matches the test cases in the sample_output directory:
tests/sample_output which contains the expected output for these five test cases as jurisdiction/local/.yaml and division/local/.yaml files.
The test should output correctly structure .yaml files.
Note: We will use this test to resolve the inner methods of the pipeline such that ultimately the test produces correctly structured .yaml files and the values stored in the .yaml file also match the expected output files. At this point the test will likely not produce the expected output with all of the data included. However, creating this test will help us identify the areas of the pipeline that need additional work.