Skip to content

Commit e7ac88e

Browse files
committed
Merge pull request #28 from DengYiping/master
Fixes breaking Travis CI Tests, Improved code quality
2 parents 9be3afe + 9fc577e commit e7ac88e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

test.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ def setUp(self):
99
"""test proper setup"""
1010
self.loklak = Loklak()
1111

12-
def tearDown(self):
13-
try:
14-
os.remove(self.map_file)
15-
except OSError as error:
16-
print(error)
17-
1812
def test_hello(self):
1913
"""test hello instance"""
2014
result = self.loklak.hello()
@@ -102,7 +96,10 @@ def test_get_map(self):
10296
file_contents = f.read()
10397
self.assertTrue(os.path.exists(self.map_file))
10498
self.assertEqual(data, file_contents)
105-
99+
try:
100+
os.remove(self.map_file)
101+
except OSError as error:
102+
print(error)
106103
def test_aggregations(self):
107104
"""test aggregations"""
108105
result = self.loklak.aggregations('sudheesh001','2015-01-10','2015-10-21',['mentions','hashtags'],10)
@@ -112,5 +109,7 @@ def test_aggregations(self):
112109
self.assertTrue('hashtags' in data['aggregations'])
113110
self.assertTrue('mentions' in data['aggregations'])
114111

112+
113+
115114
if __name__ == '__main__':
116115
unittest.main()

0 commit comments

Comments
 (0)