-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtests.py
executable file
·40 lines (27 loc) · 881 Bytes
/
tests.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
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import pytest
from treecut.treecut import main
def test_flowering():
""" Flowering time experiment
"""
main(["data/flowering.nwk", "data/flowering.assoc"])
def test_flowering_discrete():
""" Discrete version for flowering time experiment
"""
main(["data/flowering.nwk", "data/flowering_discrete.assoc",
"flowering_discrete.png", "--discrete"])
@pytest.mark.skip(reason="Too slow")
def test_microarray():
""" Microarray experiment
"""
main(["data/microarray.nwk", "data/microarray.assoc", "--discrete"])
def test_simple():
""" Web demo
"""
main(["data/simple.nwk", "data/simple.assoc", "simple.pdf"])
@pytest.mark.skip(reason="Missing input data")
def test_ayten():
""" Test data from Ayten
"""
main(["data/ayten.nwk", "data/ayten.assoc", "ayten.png"])