ports/devel/py-codecov/files/patch-tests_test.py

39 lines
1.4 KiB
Python

--- tests/test.py.orig 2018-01-29 15:52:17 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.skip('Skip AppVeyor test')
def test_send(self):
with patch('requests.post') as post:
with patch('requests.put') as put:
@@ -204,6 +204,7 @@ class TestUploader(unittest.TestCase):
else:
raise Exception("Did not raise AssertionError")
+ @unittest.skip('Skip test')
def test_prefix(self):
self.fake_report()
res = self.run_cli(prefix='/foo/bar/', dump=True, token='a', branch='b', commit='c')
@@ -254,7 +255,7 @@ class TestUploader(unittest.TestCase):
else:
raise Exception("Did not raise AssertionError")
- @unittest.skipIf(os.getenv('CI') == "True" and os.getenv('APPVEYOR') == 'True', 'Skip AppVeyor CI test')
+ @unittest.skip('Skip AppVeyor test')
def test_bowerrc_none(self):
with open(self.bowerrc, 'w+') as f:
f.write('{"other_key": "tests"}')