[CI] Refactor tests to reduce CI time. (#8312)

This commit is contained in:
Rory Mitchell
2022-10-12 11:32:06 +02:00
committed by GitHub
parent 39afdac3be
commit ce0382dcb0
19 changed files with 95 additions and 122 deletions

View File

@@ -15,6 +15,8 @@ import testing as tm
model_path = './model.pkl'
pytestmark = pytest.mark.timeout(30)
def build_dataset():
N = 10
x = np.linspace(0, N*N, N*N)
@@ -65,6 +67,7 @@ class TestPickling:
assert status == 0
os.remove(model_path)
# TODO: This test is too slow
@pytest.mark.skipif(**tm.no_sklearn())
def test_pickling(self):
x, y = build_dataset()