compliance-trestle icon indicating copy to clipboard operation
compliance-trestle copied to clipboard

Default value for allowed_sections causes TrestleError to be thrown

Open gvauter opened this issue 8 months ago • 1 comments

Describe the bug

Currently the allowed_section parameter passed to the assemble_profile_markdown method is being initialized as an empty string. This is causing unwanted behavior in compliance-trestle's ProfileAssemble class which performs an if is None check to validate the list of allowed sections. To resolve this issue, the default values should be set to None.

To Reproduce

Steps to reproduce the behavior:

Instantiate a new AgileAuthoring instance and call the assemble_profile_markdown() method using the default value for allowed_sections. A TrestleError will be thrown for invalid allowed_sections.

Expected behavior

If allowed_sections is not set then the should default to None.

Screenshots / Logs.

Example of error being thrown in Github action: https://github.com/gvauter/trestle-demo-03/actions/runs/9163997741/job/25244354141#step:4:26

Environment

  • OS: Fedora 39
  • Python version: 3.11.9

gvauter avatar May 30 '24 01:05 gvauter