Skip to content

Assert and validate Dash component functionality #3

@rpkyle

Description

@rpkyle

Both the R and Python implementations of the Dash backend perform various tests for component functionality, in R, these occur within assert_valid_callbacks. We should implement the following tests within Dash.jl in similar fashion:

  • Verify that no output arguments are duplicated
  • Verify that parameters contain only input or state arguments
  • Verify that all input arguments precede state arguments, when latter are present
  • Verify that input arguments are a nested list of dictionaries (or whatever data structure makes the most sense in Julia)
  • Verify that state arguments are a nested list of dictionaries, if they exist
  • Verify that at least one valid input has been provided
  • Verify that no callback input arguments are identical to output arguments (in Dash, we call these "circular callbacks" and they are not allowed)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions