Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test:
- test/data/**
commands:
- cd test
- pytest -v --ignore=test_stat.py
- pytest -v --ignore=test_stat.py --ignore=test_parsing_axialtree.py

about:
home: {{ home }}
Expand Down
14 changes: 12 additions & 2 deletions test/test_parsing_axialtree.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
from openalea.mtg.io import axialtree2mtg, mtg2mss , lpy2mtg, mtg2lpy
from openalea.lpy import AxialTree, generateScene, Lsystem
from openalea.plantgl.all import Scene, Viewer
from path import Path as path
from pathlib import Path as path

import pytest

try:
from openalea.lpy import AxialTree, generateScene, Lsystem
WITH_LPY = True
except ImportError:
WITH_LPY = False

if not WITH_LPY:
pytest.skip("openalea.lpy not available", allow_module_level=True)

def str2mtg(s):
#s = s.replace('N', 'F')
Expand Down
Loading