Skip to content

Update test suite PVGIS copyright check for new year #1121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/sphinx/source/whatsnew/v0.8.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~~
Expand Down
3 changes: 2 additions & 1 deletion pvlib/tests/iotools/test_pvgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down