forked from compas-dev/compas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconftest.py
43 lines (28 loc) · 813 Bytes
/
conftest.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import pytest
import compas
import math
import numpy
from compas.geometry import allclose
def pytest_ignore_collect(path):
if "rhino" in str(path):
return True
if "blender" in str(path):
return True
if "ghpython" in str(path):
return True
if "matlab" in str(path):
return True
if str(path).endswith("_cli.py"):
return True
@pytest.fixture(autouse=True)
def add_compas(doctest_namespace):
doctest_namespace["compas"] = compas
@pytest.fixture(autouse=True)
def add_math(doctest_namespace):
doctest_namespace["math"] = math
@pytest.fixture(autouse=True)
def add_np(doctest_namespace):
doctest_namespace["np"] = numpy
@pytest.fixture(autouse=True)
def add_allclose(doctest_namespace):
doctest_namespace["allclose"] = allclose