1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
--- tests/test.py.orig 2020-11-25 20:02:03.000000000 +0800
+++ tests/test.py 2020-11-25 20:04:45.000000000 +0800
@@ -231,10 +231,7 @@
else:
raise Exception("did not exit")
- @unittest.skipIf(
- os.getenv("CI") == "True" and os.getenv("APPVEYOR") == "True",
- "Skip AppVeyor CI test",
- )
+ @unittest.skip("Skip tests dependent on .git directory")
def test_returns_none(self):
with patch("requests.post") as post:
with patch("requests.put") as put:
@@ -251,10 +248,7 @@
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 tests dependent on .git directory")
def test_send(self):
with patch("requests.post") as post:
with patch("requests.put") as put:
@@ -294,10 +288,7 @@
else:
raise Exception("400 never raised")
- @unittest.skipIf(
- os.getenv("CI") == "True" and os.getenv("APPVEYOR") == "True",
- "Skip AppVeyor CI test",
- )
+ @unittest.skip("Skip tests dependent on .git directory")
def test_read_token_file(self):
with open(self.token, "w+") as f:
f.write("a")
@@ -306,6 +297,7 @@
res = self.run_cli(token="@" + self.token, commit="a", branch="b")
self.assertIn("token=a", res["urlargs"])
+ @unittest.skip("Skip tests dependent on .git directory")
def test_bowerrc(self):
with open(self.bowerrc, "w+") as f:
f.write('{"directory": "tests"}')
@@ -318,6 +310,7 @@
else:
raise Exception("Did not raise AssertionError")
+ @unittest.skip("Skip tests dependent on .git directory")
def test_disable_search(self):
self.fake_report()
try:
@@ -327,10 +320,7 @@
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 tests dependent on .git directory")
def test_prefix(self):
self.fake_report()
res = self.run_cli(
@@ -400,10 +390,7 @@
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 tests dependent on .git directory")
def test_bowerrc_none(self):
with open(self.bowerrc, "w+") as f:
f.write('{"other_key": "tests"}')
@@ -412,10 +399,7 @@
res = self.run_cli(**self.defaults)
self.assertIn("tests/test.py", res["reports"])
- @unittest.skipIf(
- os.getenv("CI") == "True" and os.getenv("APPVEYOR") == "True",
- "Skip AppVeyor CI test",
- )
+ @unittest.skip("Skip tests dependent on .git directory")
def test_discovers(self):
with open(self.jacoco, "w+") as f:
f.write("<jacoco></jacoco>")
@@ -427,6 +411,7 @@
self.assertIn("jacoco.xml", res["reports"])
self.assertIn("<jacoco></jacoco>", res["reports"])
+ @unittest.skip("Skip tests dependent on .git directory")
def test_not_jacoco(self):
with open(self.filepath, "w+") as f:
f.write("<data>")
@@ -442,6 +427,7 @@
res = self.run_cli(**self.defaults)
self.assertIn('<?xml version="1.0" ?>', res["reports"])
+ @unittest.skip("Skip tests dependent on .git directory")
def test_run_coverage_fails(self):
with open(self.coverage, "w+") as f:
f.write("bad data")
@@ -452,12 +438,14 @@
else:
raise Exception("Did not raise AssertionError")
+ @unittest.skip("Skip tests dependent on .git directory")
def test_include_env(self):
self.set_env(HELLO="WORLD")
self.fake_report()
res = self.run_cli(env="HELLO", file=self.filepath, **self.defaults)
self.assertIn("HELLO=WORLD", res["reports"])
+ @unittest.skip("Skip tests dependent on .git directory")
def test_none_found(self):
try:
self.run_cli(**self.defaults)
|