Skip to content

Commit b267940

Browse files
author
Tomasz Latkowski
committed
added tests and travis
1 parent d905265 commit b267940

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,6 @@ ENV/
9999

100100
# mypy
101101
.mypy_cache/
102+
103+
logs
104+
.idea/

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: python
2+
python:
3+
- "3.5"
4+
script:
5+
- pytest

tests/fisher.py renamed to tests/test_fisher.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import numpy as np
12
import tensorflow as tf
3+
24
from methods.selection import fisher
3-
import numpy as np
45

56

6-
class FisherSelectionTest(tf.test.TestCase):
7+
class TestFisherSelection(tf.test.TestCase):
78

89
def testFisherCorrectScore(self):
910
with self.test_session() as test_session:

tests/pearson.py renamed to tests/test_pearson.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import numpy as np
44

55

6-
class PearsonTest(tf.test.TestCase):
6+
class TestPearson(tf.test.TestCase):
77

88
def testPearsonCoefficientValueForTwoVectors(self):
99
with self.test_session() as test_session:

0 commit comments

Comments
 (0)