Skip to content

Commit 99da596

Browse files
committed
Add requests-mock to CI files
1 parent fdfee4c commit 99da596

File tree

7 files changed

+8
-2
lines changed

7 files changed

+8
-2
lines changed

ci/azure/posix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
versionSpec: '$(python.version)'
2424

2525
- script: |
26-
pip install pytest pytest-cov pytest-mock pytest-timeout pytest-azurepipelines pytest-rerunfailures pytest-remotedata
26+
pip install pytest pytest-cov pytest-mock requests-mock pytest-timeout pytest-azurepipelines pytest-rerunfailures pytest-remotedata
2727
pip install -e .
2828
pytest pvlib --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
2929
displayName: 'Test with pytest'

ci/requirements-py36-min.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ dependencies:
1919
- scipy==1.2.0
2020
- pytest-rerunfailures # conda version is >3.6
2121
- pytest-remotedata # conda package is 0.3.0, needs > 0.3.1
22+
- requests-mock

ci/requirements-py36.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
- pytest
1717
- pytest-cov
1818
- pytest-mock
19+
- requests-mock
1920
- pytest-rerunfailures
2021
- pytest-remotedata
2122
- pytest-timeout

ci/requirements-py37.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
- pytest
1717
- pytest-cov
1818
- pytest-mock
19+
- requests-mock
1920
- pytest-timeout
2021
- pytest-rerunfailures
2122
- pytest-remotedata

ci/requirements-py38.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
- pytest
1717
- pytest-cov
1818
- pytest-mock
19+
- requests-mock
1920
- pytest-timeout
2021
- pytest-rerunfailures
2122
- pytest-remotedata

ci/requirements-py39.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
- pytest
1717
- pytest-cov
1818
- pytest-mock
19+
- requests-mock
1920
- pytest-timeout
2021
- pytest-rerunfailures
2122
- pytest-remotedata

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
INSTALL_REQUIRES.append('dataclasses')
5050

5151
TESTS_REQUIRE = ['nose', 'pytest', 'pytest-cov', 'pytest-mock',
52-
'pytest-timeout', 'pytest-rerunfailures', 'pytest-remotedata']
52+
'requests-mock', 'pytest-timeout', 'pytest-rerunfailures',
53+
'pytest-remotedata']
5354
EXTRAS_REQUIRE = {
5455
'optional': ['cython', 'ephem', 'netcdf4', 'nrel-pysam', 'numba',
5556
'pvfactors', 'siphon', 'statsmodels', 'tables',

0 commit comments

Comments
 (0)