You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
627 B

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