Пример #1
0
    def test_view(self, chart, _chart):
        bnac = BaseAggregateChart(x="test_x", add_interaction=False)
        bnac.chart = chart
        bnac.width = 400

        assert str(bnac.view()) == str(
            chart_view(_chart, width=bnac.width, title=bnac.title))
    def test_view(self, chart, _chart):
        bdsi = BaseDataSizeIndicator()
        dashboard = self.cux_df.dashboard(charts=[])
        bdsi.initiate_chart(dashboard)
        bdsi.chart = chart

        assert str(bdsi.view()) == str(
            chart_view(_chart, css_classes=["non-handle-temp"]))
Пример #3
0
    def test_view(self, chart, _chart):
        bnc = BaseNumberChart()
        dashboard = self.cux_df.dashboard(charts=[])
        bnc.initiate_chart(dashboard)
        bnc.chart = chart
        bnc.title = "title"

        assert str(bnc.view()) == str(chart_view(_chart, title="title"))
Пример #4
0
    def test_view(self, chart, _chart):
        bnac = BaseNonAggregate()
        bnac.chart = mock.Mock(**{"view.return_value": chart})
        bnac.width = 400
        bnac.title = "test_title"

        assert str(bnac.view()) == str(
            chart_view(_chart, width=bnac.width, title=bnac.title))
    def test_view(self, chart, _chart):
        bc = BaseChoropleth(x="key",
                            geoJSONSource=self.geoJSONSource,
                            nan_color="white")
        bc.chart = chart
        bc.width = 400

        assert str(bc.view()) == str(chart_view(_chart, width=bc.width))
Пример #6
0
    def test_view(self, chart, _chart):
        bnac = BaseNonAggregate()
        bnac.chart = chart
        bnac.width = 400
        bnac.title = "test_title"

        assert str(bnac.view()) == str(
            chart_view(_chart, width=bnac.width, title=bnac.title))
Пример #7
0
    def test_view(self, chart, _chart):
        bg = BaseGraph()
        bg.chart = mock.Mock(**{"view.return_value": chart})
        bg.width = 400
        bg.title = "test"

        assert str(bg.view()) == str(
            chart_view(_chart, width=bg.width, title=bg.title)
        )
Пример #8
0
    def test_view(self, chart, _chart):
        bl = BaseLine(x="test_x", y="test_y")
        bl.chart = chart
        bl.width = 400

        assert str(bl.view()) == str(chart_view(_chart, width=bl.width))
Пример #9
0
    def test_view(self, chart, _chart):
        bw = BaseWidget("test_x")
        bw.chart = chart

        assert str(bw.view()) == str(chart_view(_chart, width=bw.width))
Пример #10
0
    def test_view(self, chart, _chart):
        bnac = BaseBar(x="test_x")
        bnac.chart = chart
        bnac.width = 400

        assert str(bnac.view()) == str(chart_view(_chart, width=bnac.width))
Пример #11
0
    def test_view(self, chart, _chart):
        vd = ViewDataFrame()
        vd.chart = chart

        assert str(vd.view()) == str(chart_view(_chart, width=vd.width))
Пример #12
0
    def test_view(self, chart, _chart):
        bg = BaseGraph()
        bg.chart = chart
        bg.width = 400

        assert str(bg.view()) == str(chart_view(_chart, width=bg.width))
Пример #13
0
    def test_view(self, chart, _chart):
        bsl = BaseStackedLine(x="key", y=["val"])
        bsl.chart = chart
        bsl.width = 400

        assert str(bsl.view()) == str(chart_view(_chart, width=bsl.width))
Пример #14
0
    def test_view(self, chart, _chart):
        bsl = BaseStackedLine(x="key", y=["val"])
        bsl.chart = mock.Mock(**{"view.return_value": chart})
        bsl.width = 400

        assert str(bsl.view()) == str(chart_view(_chart, width=bsl.width))
Пример #15
0
    def test_view(self, chart, _chart):
        bnac = BaseNonAggregate()
        bnac.chart = chart
        bnac.width = 400

        assert str(bnac.view()) == str(chart_view(_chart, width=bnac.width))
    def test_view(self, chart, _chart):
        bl = BaseLine(x="test_x", y="test_y")
        bl.chart = mock.Mock(**{"view.return_value": chart})
        bl.width = 400

        assert str(bl.view()) == str(chart_view(_chart, width=bl.width))