Test Failed
Push — master ( 5b4ca1...cebbe9 )
by Chad
20:33 queued 05:07
created

test_imagej   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 18
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_run_tracking() 0 9 3
1
import os
2
import pytest
3
import sys
4
import diff_classifier.imagej as ij
5
import os.path as op
6
import tempfile
7
from diff_classifier.utils import csv_to_pd
8
9
is_travis = "CI" in os.environ.keys()
10
is_mac = sys.platform == "darwin"
11
12
13
@pytest.mark.skipif(is_travis, reason="We're running this on Travis")
14
@pytest.mark.skipif(is_mac, reason="This doesn't work on Macs yet")
15
def test_run_tracking():
16
    tf  = tempfile.NamedTemporaryFile(suffix='.csv')
17
    ij.track('http://fiji.sc/samples/FakeTracks.tif', tf.name)
18
    assert op.exists(tf.name)
19
20
    df = csv_to_pd(tf.name)
21
    assert df.shape == (84, 8)
22