| 1 |
# Copyright 2024 Facundo Batista, Nicolás Demarchi |
| 2 |
# |
| 3 |
# This program is free software: you can redistribute it and/or modify it |
| 4 |
# under the terms of the GNU General Public License version 3, as published |
| 5 |
# by the Free Software Foundation. |
| 6 |
# |
| 7 |
# This program is distributed in the hope that it will be useful, but |
| 8 |
# WITHOUT ANY WARRANTY; without even the implied warranties of |
| 9 |
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 10 |
# PURPOSE. See the GNU General Public License for more details. |
| 11 |
# |
| 12 |
# You should have received a copy of the GNU General Public License along |
| 13 |
# with this program. If not, see <http://www.gnu.org/licenses/>. |
| 14 |
# |
| 15 |
# For further info, check https://github.com/PyAr/fades |
| 16 |
|
| 17 |
"""Helper to run integration tests. |
| 18 |
|
| 19 |
This is not part of the regular test suite, but a test that is used in a very specific |
| 20 |
way from the integration tests defined in the Github CI infrastructure. |
| 21 |
""" |
| 22 |
|
| 23 |
import sys |
| 24 |
|
| 25 |
|
| 26 |
def test_assert_python_version(pytestconfig): |
| 27 |
expected = pytestconfig.getoption("integtest_pyversion") |
| 28 |
vi = sys.version_info |
| 29 |
current = f"{vi.major}.{vi.minor}" |
| 30 |
assert current == expected |