fix: Only skip test for 3.0->3.5

pull/186/head
Raphaël Vinot 2018-01-28 20:40:09 +01:00
parent ab9e6aabf5
commit bdf1dfe63c
1 changed files with 3 additions and 2 deletions

View File

@ -444,11 +444,11 @@ class TestOffline(unittest.TestCase):
self.assertEqual((False, None), pymisp.download_samples()) self.assertEqual((False, None), pymisp.download_samples())
def test_sample_upload(self, m): def test_sample_upload(self, m):
if sys.version_info <= (3, 4): if (3, 0) < sys.version_info < (3, 5):
return unittest.SkipTest() return unittest.SkipTest()
self.initURI(m) self.initURI(m)
pymisp = PyMISP(self.domain, self.key) pymisp = PyMISP(self.domain, self.key)
upload = pymisp.upload_sample("tmux", "tests/viper-test-files/test_files/tmux" , 1) upload = pymisp.upload_sample("tmux", "tests/viper-test-files/test_files/tmux", 1)
def test_get_all_tags(self, m): def test_get_all_tags(self, m):
self.initURI(m) self.initURI(m)
@ -470,5 +470,6 @@ class TestOffline(unittest.TestCase):
uuid = self.event["Event"]["uuid"] uuid = self.event["Event"]["uuid"]
pymisp.untag(uuid, "foo") pymisp.untag(uuid, "foo")
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()