The plotly tests needs restructuring for easier maintenance. Instead of directly importing stuff it may be better to use pytest.mark.parametrize
to leverage different possibilities.
-
here for details about documentation
-
here for parametrize suggestion
-
here for related discussion