Skip to content

Commit 6108043

Browse files
authored
Add coverage exclusion comments to certain test suite functions (#993)
* add coverage exclusion comments * rename .codecov.yml -> codecov.yml * switch up order of codecov.yml entries * simplify path regex; codecov validator doesn't like the existing one * Revert "switch up order of codecov.yml entries" This reverts commit c65209a. * exclude __name__ __main__
1 parent a1e8134 commit 6108043

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.codecov.yml renamed to codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ coverage:
1818
if_not_found: success
1919
if_ci_failed: failure
2020
paths:
21-
- "pvlib/(\w+/)?[^/]+\.py$"
21+
- "pvlib/.*"
2222
tests:
2323
target: 95%
2424
paths:

pvlib/tests/iotools/test_ecmwf_macc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_read_ecmwf_macc(expected_test_data):
7676

7777

7878
def _create_test_data(datafile=DATAFILE, testfile=TESTDATA, start=START,
79-
end=END, resize=RESIZE):
79+
end=END, resize=RESIZE): # pragma: no cover
8080
"""
8181
Create test data from downloaded data.
8282

pvlib/tests/test_numerical_precision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
sy_exp = NotImplemented
5656

5757

58-
def generate_numerical_precision():
58+
def generate_numerical_precision(): # pragma: no cover
5959
"""
6060
Generate expected data with infinite numerical precision using SymPy.
6161
:return: dataframe of expected values
@@ -118,7 +118,7 @@ def test_numerical_precision():
118118
assert np.allclose(expected['grad2p'], results[7])
119119

120120

121-
if __name__ == '__main__':
121+
if __name__ == '__main__': # pragma: no cover
122122
expected = generate_numerical_precision()
123123
expected.to_csv(DATA_PATH)
124124
test_numerical_precision()

0 commit comments

Comments
 (0)