Skip to content

Commit

Permalink
test: fix imports in multivariate analysis (#211)
Browse files Browse the repository at this point in the history
- Fix umap being imported when the extras is not installed, causing the
test to fail
- Remove unused imports
  • Loading branch information
mbelak-dtml authored Mar 1, 2024
1 parent f5cd4ad commit 367e917
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test_multivariate_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@
pio.renderers.default = "json"

from edvart import utils
from edvart.report_sections import multivariate_analysis, umap
from edvart.report_sections import multivariate_analysis
from edvart.report_sections.code_string_formatting import code_dedent, get_code
from edvart.report_sections.multivariate_analysis import (
UMAP_AVAILABLE,
MultivariateAnalysis,
MultivariateAnalysisSubsection,
)
from edvart.report_sections.section_base import Verbosity
from edvart.utils import (
get_default_discrete_colorscale,
make_discrete_colorscale,
select_numeric_columns,
)
from edvart.utils import select_numeric_columns

if UMAP_AVAILABLE:
from edvart.report_sections import umap

from .execution_utils import check_section_executes
from .pyarrow_utils import pyarrow_parameterize
Expand Down

0 comments on commit 367e917

Please sign in to comment.