Skip to content
Snippets Groups Projects
Commit d46f2e54 authored by Joseph Weston's avatar Joseph Weston Committed by Bas Nijholt
Browse files

make tests a proper package and add pytest config

parent 45f10db5
No related branches found
No related tags found
1 merge request!3setup CI and tests
# -*- coding: utf-8 -*-
import adaptive
def test_neigbors():
learner = adaptive.learner.Learner1D(lambda x: x, bounds=(-1.0, 1.0))
from ..learner import Learner1D
def test_neighbors():
learner = Learner1D(lambda x: x, bounds=(-1.0, 1.0))
learner.add_data([-1, 1], [-1, 1])
assert learner.neighbors == {-1: [None, 1], 1: [-1, None]}
learner.choose_points(1, False)
......
[pytest]
testpaths = adaptive
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment