def test__check_compatible_scale_and_ranges_compat_numeric() -> None: plot = Plot(x_scale=LinearScale(), x_range=Range1d()) check = plot._check_compatible_scale_and_ranges() assert check == [] plot = Plot(y_scale=LogScale(), y_range=DataRange1d()) check = plot._check_compatible_scale_and_ranges() assert check == []
def test__check_compatible_scale_and_ranges_compat_numeric(): plot = Plot(x_scale=LinearScale(), x_range=Range1d()) check = plot._check_compatible_scale_and_ranges() assert check == [] plot = Plot(y_scale=LogScale(), y_range=DataRange1d()) check = plot._check_compatible_scale_and_ranges() assert check == []
def test__check_compatible_scale_and_ranges_incompat_factor_scale_and_numeric_range(): plot = Plot(x_scale=CategoricalScale(), x_range=DataRange1d()) check = plot._check_compatible_scale_and_ranges() assert check != []
def test__check_compatible_scale_and_ranges_incompat_numeric_scale_and_factor_range(): plot = Plot(x_scale=LinearScale(), x_range=FactorRange()) check = plot._check_compatible_scale_and_ranges() assert check != []
def test__check_compatible_scale_and_ranges_compat_factor(): plot = Plot(x_scale=CategoricalScale(), x_range=FactorRange()) check = plot._check_compatible_scale_and_ranges() assert check == []
def test__check_compatible_scale_and_ranges_incompat_factor_scale_and_numeric_range( ) -> None: plot = Plot(x_scale=CategoricalScale(), x_range=DataRange1d()) check = plot._check_compatible_scale_and_ranges() assert check != []
def test__check_compatible_scale_and_ranges_incompat_numeric_scale_and_factor_range( ) -> None: plot = Plot(x_scale=LinearScale(), x_range=FactorRange()) check = plot._check_compatible_scale_and_ranges() assert check != []
def test__check_compatible_scale_and_ranges_compat_factor() -> None: plot = Plot(x_scale=CategoricalScale(), x_range=FactorRange()) check = plot._check_compatible_scale_and_ranges() assert check == []