Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Removing local paths
Browse files Browse the repository at this point in the history
  • Loading branch information
srh-sloan committed Oct 16, 2023
1 parent 53c24bd commit f91c4e8
Show file tree
Hide file tree
Showing 5 changed files with 1,172 additions and 15 deletions.
8 changes: 5 additions & 3 deletions scripts/all_questions/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# All Questions Generation
The scripts in this folder are used to generate the 'all questions' page for a fund. They take the section information from the fund-store database, combine it with the question flow from the form jsons, to generate a single HTML page containing all questions and all possible branches for a particular round.

Instructions on running the script and what to do with the outputs are in confluence: https://dluhcdigital.atlassian.net/wiki/spaces/FS/pages/45580513/Generating+the+All+Questions+page+and+Assessment+Field+Display+info


## Generating test data
This is for testing [generate_index](./metadata_utils.py).
This is for testing [build_hierarchy_levels_for_page](./metadata_utils.py), or anything that takes in the full form json. You can use the full form json, or if you want to use a subset of the form json to make debugging easier, these instructions allow you to extract a small portion of the form for easier testing.

These steps are to help with debugging by separating out the steps or just extracting a subset of the form.

Expand All @@ -23,5 +25,5 @@ If you are testing against metadata for the whole form, you don't need this bit,
1. Update the `files_to_generate` path to use the dict you defined above.
1. Execute this single test

### Testing generate_index
You can now write a test using `generate_index` with either a whole form of metadata, or just a subset. Use the output paths above as input to your test.
### Testing build_hierarchy_levels_for_page
You can now write a test using `build_hierarchy_levels_for_page` with either a whole form of metadata, or just a subset. Use the output paths above as input to your test.
Loading

0 comments on commit f91c4e8

Please sign in to comment.