Skip to content

Commit

Permalink
Added missing parameter in form composer examples
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-paul committed Jun 27, 2024
1 parent 0157a03 commit 555bbe5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def generate_data_json_config():
form_config_path=form_config_path,
token_sets_values_config_path=token_sets_values_config_path,
task_data_config_path=task_data_config_path,
data_path=data_path,
)

# Set env var for `custom_validators.js`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def generate_data_json_config():
form_config_path=form_config_path,
token_sets_values_config_path=token_sets_values_config_path,
task_data_config_path=task_data_config_path,
data_path=data_path,
)

# Set env var for `custom_validators.js`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def generate_data_json_config():
form_config_path=form_config_path,
token_sets_values_config_path=token_sets_values_config_path,
task_data_config_path=task_data_config_path,
data_path=data_path,
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,9 @@ def test__replace_html_paths_with_html_file_content_success(self, *args, **kwarg
token_sets_values_config_f.close()

create_extrapolated_config(
form_config_path,
token_sets_values_config_path,
task_data_config_path,
form_config_path=form_config_path,
token_sets_values_config_path=token_sets_values_config_path,
task_data_config_path=task_data_config_path,
data_path=self.data_dir,
)

Expand Down Expand Up @@ -670,9 +670,10 @@ def test_create_extrapolated_config_file_not_found(self, *args, **kwargs):

with self.assertRaises(FileNotFoundError) as cm:
create_extrapolated_config(
form_config_path,
token_sets_values_config_path,
task_data_config_path,
form_config_path=form_config_path,
token_sets_values_config_path=token_sets_values_config_path,
task_data_config_path=task_data_config_path,
data_path=self.data_dir,
)

self.assertEqual(
Expand Down Expand Up @@ -716,9 +717,10 @@ def test_create_extrapolated_config_success(self, *args, **kwargs):
token_sets_values_config_f.close()

create_extrapolated_config(
form_config_path,
token_sets_values_config_path,
task_data_config_path,
form_config_path=form_config_path,
token_sets_values_config_path=token_sets_values_config_path,
task_data_config_path=task_data_config_path,
data_path=self.data_dir,
)

f = open(task_data_config_path, "r")
Expand Down

0 comments on commit 555bbe5

Please sign in to comment.