Skip to content

ValueError when calling assert_lines_of_type() with line_types='regression' #238

@marty-larocque

Description

@marty-larocque

If base.assert_lines_of_type() is called with line_types='regression' on a plot without a regression line, we would expect it to raise an AssertionError.

However, if we do this on a plot with only a one-to-one line, base.assert_lines_of_type() will raise a ValueError. This is because the method for determining if a regression line exist uses the xy-data for each line. One-to-one lines do not necessarily have specific xy-data.

We should rewrite this function to account for this case.

Metadata

Metadata

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