-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconftest.py
More file actions
38 lines (26 loc) · 755 Bytes
/
Copy pathconftest.py
File metadata and controls
38 lines (26 loc) · 755 Bytes
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
import pytest
import compas
import compas_robots
import math
import numpy
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 "viewer" in str(path):
return True
@pytest.fixture(autouse=True)
def add_compas(doctest_namespace):
doctest_namespace["compas"] = compas
@pytest.fixture(autouse=True)
def add_compas_robots(doctest_namespace):
doctest_namespace["compas_robots"] = compas_robots
@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