From 60110e000e9e706339de6e036ef474da5662257b Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Fri, 1 Jan 2021 13:46:01 -0700 Subject: [PATCH] fix pvgis test --- docs/sphinx/source/whatsnew/v0.8.1.rst | 2 ++ pvlib/tests/iotools/test_pvgis.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/sphinx/source/whatsnew/v0.8.1.rst b/docs/sphinx/source/whatsnew/v0.8.1.rst index df2835226f..e765d200f2 100644 --- a/docs/sphinx/source/whatsnew/v0.8.1.rst +++ b/docs/sphinx/source/whatsnew/v0.8.1.rst @@ -42,6 +42,8 @@ Testing * Add airspeed velocity performance testing configuration and a few benchmarks. (:issue:`419`, :pull:`1049`, :pull:`1059`) * Add Python 3.9 CI configurations. (:issue:`1102`, :pull:`1112`) +* Update ``test_pvgis.py`` to be more flexible about the PVGIS copyright notice + (:pull:`1121`) Documentation ~~~~~~~~~~~~~ diff --git a/pvlib/tests/iotools/test_pvgis.py b/pvlib/tests/iotools/test_pvgis.py index 1957639939..0dce09328c 100644 --- a/pvlib/tests/iotools/test_pvgis.py +++ b/pvlib/tests/iotools/test_pvgis.py @@ -159,7 +159,8 @@ def _compare_pvgis_tmy_csv(expected, month_year_expected, inputs_expected, for meta_value in meta: if not meta_value: continue - if meta_value == 'PVGIS (c) European Communities, 2001-2020': + # don't check end year because it changes every year + if meta_value[:-4] == 'PVGIS (c) European Communities, 2001-': continue assert meta_value in csv_meta