File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
from gdsctools .anova import ANOVA
2
2
from gdsctools import gdsctools_data
3
3
import pandas as pd
4
- from easydev import assert_list_almost_equal
5
4
from gdsctools import ic50_test
5
+ import pytest
6
6
7
7
import warnings
8
8
warnings .filterwarnings (action = "ignore" )
@@ -127,6 +127,11 @@ def test_odof_with_without_media():
127
127
assert_almost_equal (dd2 ['tissue' ]- 1.5729157319290974e-44 , delta = 1e-50 )
128
128
129
129
130
+ def assert_list_almost_equal (x , y , deltas = 1e-10 ):
131
+ for a ,b in zip (x ,y ):
132
+ assert pytest .approx (a - b , deltas )
133
+
134
+
130
135
def test_anova_summary ():
131
136
an = ANOVA (ic50_test )
132
137
# by default regression includes + msi + feature
Original file line number Diff line number Diff line change 2
2
from gdsctools .datasets import cosmic_builder_test
3
3
import pytest
4
4
5
+ import os
6
+ skiptravis = pytest .mark .skipif ( "TRAVIS_PYTHON_VERSION" in os .environ ,
7
+ reason = "On travis" )
8
+
9
+
5
10
6
11
def test_cosmic_info ():
7
12
c = COSMICInfo ()
@@ -20,7 +25,7 @@ def test_cosmic():
20
25
r .get (1000000000 )
21
26
22
27
23
- @attr ( "onweb" )
28
+ @skiptravis
24
29
def test_onweb ():
25
30
r = COSMICInfo ()
26
31
r .on_web (924100 )
You can’t perform that action at this time.
0 commit comments