File: conftest.py

package info (click to toggle)
bqplot 0.12.32-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,072 kB
  • sloc: python: 2,573; makefile: 162; javascript: 150
file content (27 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import pytest
import bqplot

@pytest.fixture
def scale_x():
    return bqplot.LinearScale(min=0, max=1, allow_padding=False)

@pytest.fixture
def scale_ordinal():
    return bqplot.OrdinalScale(allow_padding=False)

@pytest.fixture
def scale_y():
    return bqplot.LinearScale(min=2, max=3, allow_padding=False)

@pytest.fixture
def scales(scale_x, scale_y):
    return {'x': scale_x, 'y': scale_y}

@pytest.fixture
def figure(scale_x, scale_y):
    return bqplot.Figure(scale_x=scale_x, scale_y=scale_y)

# @pytest.fixture
# def scatter(scale_x, scale_y):
#     bqplot.Scatter(scale_x=scale_x, scale_y=scale_y)