We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05cf879 commit a80ae30Copy full SHA for a80ae30
pvlib/test/conftest.py
@@ -94,6 +94,10 @@ def pandas_0_22():
94
return parse_version(pd.__version__) >= parse_version('0.22.0')
95
96
97
+needs_pandas_0_22 = pytest.mark.skipif(
98
+ not pandas_0_22(), reason='requires pandas 0.22 or greater')
99
+
100
101
def has_spa_c():
102
try:
103
from pvlib.spa_c_files.spa_py import spa_calc
pvlib/test/test_psm3.py
@@ -4,6 +4,7 @@
4
5
import os
6
from pvlib.iotools import psm3
7
+from pvlib.test.conftest import needs_pandas_0_22
8
import numpy as np
9
import pandas as pd
10
import pytest
@@ -22,6 +23,7 @@
22
23
'Wind Speed', 'Surface Albedo Units', 'Version']
24
25
26
+@needs_pandas_0_22
27
def test_get_psm3():
28
"""test get_psm3"""
29
header, data = psm3.get_psm3(LATITUDE, LONGITUDE)
0 commit comments