Fix python test suite
This commit is contained in:
parent
abde237ddf
commit
c18b66a9cb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458927
1 changed files with 14 additions and 3 deletions
|
@ -1,11 +1,22 @@
|
|||
--- tests/test.py.orig 2018-01-08 10:57:15 UTC
|
||||
--- tests/test.py.orig 2018-01-13 11:23:57 UTC
|
||||
+++ tests/test.py
|
||||
@@ -2,9 +2,9 @@ import os
|
||||
import sys
|
||||
import pickle
|
||||
import itertools
|
||||
+import unittest
|
||||
from ddt import ddt, data
|
||||
from mock import patch, Mock
|
||||
-import unittest2 as unittest
|
||||
|
||||
import subprocess
|
||||
|
||||
@@ -134,7 +134,7 @@ class TestUploader(unittest.TestCase):
|
||||
self.assertEqual(codecov.main(), None)
|
||||
assert post.called and put.called
|
||||
|
||||
- @unittest.skipIf(os.getenv('CI') == "True" and os.getenv('APPVEYOR') == 'True', 'Skip AppVeyor CI test')
|
||||
+ @unittest.skipIf(sys.platform.startswith('freebsd'),'Skip test')
|
||||
+ @unittest.skip('Skip AppVeyor test')
|
||||
def test_send(self):
|
||||
with patch('requests.post') as post:
|
||||
with patch('requests.put') as put:
|
||||
|
@ -14,7 +25,7 @@
|
|||
raise Exception("Did not raise AssertionError")
|
||||
|
||||
- @unittest.skipIf(os.getenv('CI') == "True" and os.getenv('APPVEYOR') == 'True', 'Skip AppVeyor CI test')
|
||||
+ @unittest.skipIf(sys.platform.startswith('freebsd'),'Skip test')
|
||||
+ @unittest.skip('Skip AppVeyor test')
|
||||
def test_bowerrc_none(self):
|
||||
with open(self.bowerrc, 'w+') as f:
|
||||
f.write('{"other_key": "tests"}')
|
||||
|
|
Loading…
Reference in a new issue