| 1 |
import pytest |
| 2 |
import bqplot |
| 3 |
|
| 4 |
@pytest.fixture |
| 5 |
def scale_x(): |
| 6 |
return bqplot.LinearScale(min=0, max=1, allow_padding=False) |
| 7 |
|
| 8 |
@pytest.fixture |
| 9 |
def scale_ordinal(): |
| 10 |
return bqplot.OrdinalScale(allow_padding=False) |
| 11 |
|
| 12 |
@pytest.fixture |
| 13 |
def scale_y(): |
| 14 |
return bqplot.LinearScale(min=2, max=3, allow_padding=False) |
| 15 |
|
| 16 |
@pytest.fixture |
| 17 |
def scales(scale_x, scale_y): |
| 18 |
return {'x': scale_x, 'y': scale_y} |
| 19 |
|
| 20 |
@pytest.fixture |
| 21 |
def figure(scale_x, scale_y): |
| 22 |
return bqplot.Figure(scale_x=scale_x, scale_y=scale_y) |
| 23 |
|
| 24 |
# @pytest.fixture |
| 25 |
# def scatter(scale_x, scale_y): |
| 26 |
# bqplot.Scatter(scale_x=scale_x, scale_y=scale_y) |
| 27 |
|