Skip to content

Commit e2dd896

Browse files
authored
Merge pull request #68 from openalea/release2025
test: disabled test with Lpy dependencies
2 parents 54049a8 + 7f2b22f commit e2dd896

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

conda/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test:
5050
- test/data/**
5151
commands:
5252
- cd test
53-
- pytest -v --ignore=test_stat.py
53+
- pytest -v --ignore=test_stat.py --ignore=test_parsing_axialtree.py
5454

5555
about:
5656
home: {{ home }}

test/test_parsing_axialtree.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
from openalea.mtg.io import axialtree2mtg, mtg2mss , lpy2mtg, mtg2lpy
2-
from openalea.lpy import AxialTree, generateScene, Lsystem
32
from openalea.plantgl.all import Scene, Viewer
4-
from path import Path as path
3+
from pathlib import Path as path
4+
5+
import pytest
6+
7+
try:
8+
from openalea.lpy import AxialTree, generateScene, Lsystem
9+
WITH_LPY = True
10+
except ImportError:
11+
WITH_LPY = False
12+
13+
if not WITH_LPY:
14+
pytest.skip("openalea.lpy not available", allow_module_level=True)
515

616
def str2mtg(s):
717
#s = s.replace('N', 'F')

0 commit comments

Comments
 (0)