Compare commits
17 Commits
Author | SHA1 | Date |
---|---|---|
Jürgen Edelbluth | 4767491b33 | |
Jürgen Edelbluth | 4ec8b0f1ed | |
Jürgen Edelbluth | 68ee89f065 | |
Jürgen Edelbluth | 9c5d28a58c | |
Jürgen Edelbluth | fcea9e7349 | |
Jürgen Edelbluth | 0f3c7b26b3 | |
Jürgen Edelbluth | f1a1155d9d | |
Jürgen Edelbluth | 7774992eae | |
Jürgen Edelbluth | bef3987479 | |
Jürgen Edelbluth | 5b4b62139f | |
Jürgen Edelbluth | 5d5441c3ee | |
Jürgen Edelbluth | 3c0892d8ee | |
Jürgen Edelbluth | 8a55418bb3 | |
Jürgen Edelbluth | 82584ab395 | |
Jürgen Edelbluth | 755d8f9276 | |
Jürgen Edelbluth | 725dc359c7 | |
Jürgen Edelbluth | de8cb8f858 |
|
@ -0,0 +1,53 @@
|
|||
pipeline {
|
||||
|
||||
environment {
|
||||
TOX_PARALLEL_NO_SPINNER = "1"
|
||||
PY_COLORS = "0"
|
||||
}
|
||||
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Prepare') {
|
||||
steps {
|
||||
sh 'poetry install --remove-untracked --no-root'
|
||||
}
|
||||
}
|
||||
stage('Tox') {
|
||||
matrix {
|
||||
axes {
|
||||
axis {
|
||||
name 'PYTHON_VERSION'
|
||||
values 'py38', 'py39', 'py310', 'py311'
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage('Tox Test') {
|
||||
options {
|
||||
lock('single-tox-build')
|
||||
}
|
||||
steps {
|
||||
sh 'poetry run tox -r -e ${PYTHON_VERSION}'
|
||||
xunit checksName: "Tests ${PYTHON_VERSION}", tools: [JUnit(excludesPattern: '', pattern: 'test-reports/*.xml', stopProcessingIfError: true)]
|
||||
cobertura autoUpdateStability: false, coberturaReportFile: 'coverage.xml', conditionalCoverageTargets: '70, 0, 0', failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0', maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
success {
|
||||
deleteDir()
|
||||
}
|
||||
always {
|
||||
withCredentials([string(credentialsId: 'jed-notification-email', variable: 'EMAIL')]) {
|
||||
mail to: '$EMAIL',
|
||||
subject: "[${currentBuild.fullDisplayName}] ${currentBuild.currentResult}",
|
||||
body: "Duration: ${currentBuild.durationString} / Jenkins URL: ${env.BUILD_URL}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -389,8 +389,8 @@ preferred-modules=
|
|||
[EXCEPTIONS]
|
||||
|
||||
# Exceptions that will emit a warning when caught.
|
||||
overgeneral-exceptions=BaseException,
|
||||
Exception
|
||||
overgeneral-exceptions=builtins.BaseException,
|
||||
builtins.Exception
|
||||
|
||||
|
||||
[REFACTORING]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
3.10.6
|
||||
3.9.13
|
||||
3.8.13
|
||||
3.11-dev
|
||||
3.11.4
|
||||
3.10.12
|
||||
3.9.17
|
||||
3.8.17
|
||||
|
|
15
README.md
15
README.md
|
@ -1,18 +1,19 @@
|
|||
![pytest-csv-params](docs/icon/pytest-csv-params.png)
|
||||
![pytest-csv-params](https://docs.codebau.dev/pytest-plugins/pytest-csv-params/_images/pytest-csv-params.png)
|
||||
|
||||
# pytest-csv-params
|
||||
|
||||
A pytest plugin to parametrize data-driven tests by CSV files.
|
||||
|
||||
[![PyPI - Downloads](https://img.shields.io/pypi/dw/pytest-csv-params?label=PyPI%20downloads&style=for-the-badge)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Version](https://img.shields.io/pypi/v/pytest-csv-params?label=PyPI%20version&style=for-the-badge)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Status](https://img.shields.io/pypi/status/pytest-csv-params?label=PyPI%20status&style=for-the-badge)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Format](https://img.shields.io/pypi/format/pytest-csv-params?label=PyPI%20format&style=for-the-badge)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![Build Status](https://build.codebau.dev/buildStatus/icon?job=pytest-csv-params&style=flat)](https://git.codebau.dev/pytest-plugins/pytest-csv-params)
|
||||
[![PyPI - Downloads](https://img.shields.io/pypi/dw/pytest-csv-params?label=PyPI%20downloads&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Version](https://img.shields.io/pypi/v/pytest-csv-params?label=PyPI%20version&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Status](https://img.shields.io/pypi/status/pytest-csv-params?label=PyPI%20status&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Format](https://img.shields.io/pypi/format/pytest-csv-params?label=PyPI%20format&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
|
||||
|
||||
## Requirements
|
||||
|
||||
- Python 3.8, 3.9 or 3.10
|
||||
- pytest >= 7.1
|
||||
- Python 3.8, 3.9, 3.10, 3.11
|
||||
- pytest >= 7.4
|
||||
|
||||
There's no operating system dependent code in this plugin, so it should run anywhere where pytest runs.
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ def pytest_configure(config: Config, plugin_name: str = "csv_params") -> None:
|
|||
:param config: Pytets configuration class
|
||||
:param plugin_name: The name of the pytest plugin, with default value
|
||||
"""
|
||||
config.pluginmanager.register(Plugin(config), f"{plugin_name}_plugin")
|
||||
config.pluginmanager.register(Plugin(config), name=f"{plugin_name}_plugin")
|
||||
|
||||
|
||||
def pytest_unconfigure(config: Config, plugin_name: str = "csv_params") -> None:
|
||||
|
@ -25,4 +25,4 @@ def pytest_unconfigure(config: Config, plugin_name: str = "csv_params") -> None:
|
|||
:param config: Pytest configuration class
|
||||
:param plugin_name: The name of the pytest plgin, with default value
|
||||
"""
|
||||
config.pluginmanager.unregister(f"{plugin_name}_plugin")
|
||||
config.pluginmanager.unregister(name=f"{plugin_name}_plugin")
|
||||
|
|
|
@ -23,11 +23,11 @@ def check_python_version(min_version: Tuple[int, int] = (3, 8)) -> None:
|
|||
raise PythonTooOldError(f"At least Python {'.'.join(map(str, min_version))} required")
|
||||
|
||||
|
||||
def check_pytest_version(min_version: Tuple[int, int] = (7, 1)) -> None:
|
||||
def check_pytest_version(min_version: Tuple[int, int] = (7, 4)) -> None:
|
||||
"""
|
||||
Check if the current version is at least 7.1
|
||||
Check if the current version is at least 7.4
|
||||
|
||||
:param min_version: The minimum version required, as tuple, default is 7.1
|
||||
:param min_version: The minimum version required, as tuple, default is 7.4
|
||||
:raises RuntimeError: When the pytest version is too old/unsupported
|
||||
"""
|
||||
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
@font-face {
|
||||
font-family: 'Fira Code';
|
||||
src: url('woff2/FiraCode-Light.woff2') format('woff2'),
|
||||
url("woff/FiraCode-Light.woff") format("woff");
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Fira Code';
|
||||
src: url('woff2/FiraCode-Regular.woff2') format('woff2'),
|
||||
url("woff/FiraCode-Regular.woff") format("woff");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Fira Code';
|
||||
src: url('woff2/FiraCode-Medium.woff2') format('woff2'),
|
||||
url("woff/FiraCode-Medium.woff") format("woff");
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Fira Code';
|
||||
src: url('woff2/FiraCode-SemiBold.woff2') format('woff2'),
|
||||
url("woff/FiraCode-SemiBold.woff") format("woff");
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Fira Code';
|
||||
src: url('woff2/FiraCode-Bold.woff2') format('woff2'),
|
||||
url("woff/FiraCode-Bold.woff") format("woff");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Fira Code VF';
|
||||
src: url('woff2/FiraCode-VF.woff2') format('woff2-variations'),
|
||||
url('woff/FiraCode-VF.woff') format('woff-variations');
|
||||
/* font-weight requires a range: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide#Using_a_variable_font_font-face_changes */
|
||||
font-weight: 300 700;
|
||||
font-style: normal;
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,16 @@
|
|||
/* #### Generated By: http://www.cufonfonts.com #### */
|
||||
|
||||
@font-face {
|
||||
font-family: 'Vollkorn Regular';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: local('Vollkorn Regular'), url('Vollkorn-Regular.woff') format('woff');
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'Vollkorn Bold';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: local('Vollkorn Bold'), url('Vollkorn-Bold.woff') format('woff');
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
{% extends '!layout.html' %}
|
||||
|
||||
{%- block font %}
|
||||
<!-- Fully omitting Google Fonts from Remote -->
|
||||
<link href="{{ pathto('_static/font/vollkorn/style.css', 1) }}" rel="stylesheet">
|
||||
<link href="{{ pathto('_static/font/fira/style.css', 1) }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body,
|
||||
input {
|
||||
font-family: "Vollkorn Regular", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre {
|
||||
font-family: "Fira Code VF", "Fira Code", "Courier New", Courier, monospace !important;
|
||||
font-variant-ligatures: none;
|
||||
}
|
||||
</style>
|
||||
{%- endblock %}
|
|
@ -36,5 +36,6 @@ Sitemap
|
|||
:caption: Meta
|
||||
|
||||
genindex
|
||||
py-modindex
|
||||
🌍 Project Page <https://git.codebau.dev/pytest-plugins/pytest-csv-params>
|
||||
🌍 juergen.rocks <https://juergen.rocks/>
|
||||
|
|
|
@ -12,9 +12,6 @@ from os.path import abspath, dirname, join
|
|||
import tomli
|
||||
|
||||
sys.path.insert(0, abspath(join(dirname(__file__), "..")))
|
||||
# sys.path.insert(0, abspath(join(dirname(__file__), "..", "tests")))
|
||||
# sys.path.insert(0, abspath(join(dirname(__file__), "..", "_ptcsvp")))
|
||||
# sys.path.insert(0, abspath(join(dirname(__file__), "..", "pytest_csv_params")))
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
||||
|
@ -93,6 +90,7 @@ html_theme_options = {
|
|||
"css_minify": True,
|
||||
"html_minify": True,
|
||||
"master_doc": True,
|
||||
"theme_color": "#008080",
|
||||
}
|
||||
|
||||
myst_enable_extensions = [
|
||||
|
|
|
@ -9,10 +9,11 @@
|
|||
|
||||
# Data-driven test parametrization für pytest with CSV files
|
||||
|
||||
[![PyPI - Downloads](https://img.shields.io/pypi/dw/pytest-csv-params?label=PyPI%20downloads&style=for-the-badge)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Version](https://img.shields.io/pypi/v/pytest-csv-params?label=PyPI%20version&style=for-the-badge)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Status](https://img.shields.io/pypi/status/pytest-csv-params?label=PyPI%20status&style=for-the-badge)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Format](https://img.shields.io/pypi/format/pytest-csv-params?label=PyPI%20format&style=for-the-badge)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![Build Status](https://build.codebau.dev/buildStatus/icon?job=pytest-csv-params&style=flat)](https://git.codebau.dev/pytest-plugins/pytest-csv-params)
|
||||
[![PyPI - Downloads](https://img.shields.io/pypi/dw/pytest-csv-params?label=PyPI%20downloads&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Version](https://img.shields.io/pypi/v/pytest-csv-params?label=PyPI%20version&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Status](https://img.shields.io/pypi/status/pytest-csv-params?label=PyPI%20status&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
|
||||
[![PyPI - Format](https://img.shields.io/pypi/format/pytest-csv-params?label=PyPI%20format&style=flat&logo=pypi)](https://pypi.org/project/pytest-csv-params/)
|
||||
|
||||
This pytest plugin allows you to parametrize your pytest tests by CSV files. Manage your test data independently of
|
||||
your tests. This site guides you through [installation](pages/install) and [usage](pages/guide).
|
||||
|
|
|
@ -1,5 +1,43 @@
|
|||
# Changelog
|
||||
|
||||
## Version 1.1.0
|
||||
|
||||
<u>Special Announcement:</u>
|
||||
|
||||
- This is the last version that supports Python 3.8
|
||||
|
||||
<u>Breaking Changes:</u>
|
||||
|
||||
- Pytest >= 7.4 is required (was >= 7.1 before)
|
||||
|
||||
<u>Changes:</u>
|
||||
|
||||
- Maintenance: Dependency versions
|
||||
- Maintenance: Support for Python 3.11
|
||||
- Maintenance: CI Configuration cleanup
|
||||
- Maintenance: Project Configuration cleanup (supported versions etc.)
|
||||
- Changed Pytest plugin hook
|
||||
- Tests: Changed version interpretation tests, as the standard lib has a better interpretation now
|
||||
- Coding conventions: Black and isort updated, changed things accordingly
|
||||
|
||||
[Downloads](https://git.codebau.dev/pytest-plugins/pytest-csv-params/releases/tag/v1.1.0) |
|
||||
[Technical Changelog](https://git.codebau.dev/pytest-plugins/pytest-csv-params/compare/v1.0.0...v1.1.0)
|
||||
|
||||
## Version 1.0.0
|
||||
|
||||
<u>Breaking Changes:</u> ✓ None
|
||||
|
||||
<u>Changes:</u>
|
||||
|
||||
- Cleanup of codebase for the big step of going to version 1.0
|
||||
- Project marked as "stable"
|
||||
- Some minor documentation changes
|
||||
- Dependencies updated
|
||||
- Fine-tuning of the tox/test configuration for running on CI
|
||||
|
||||
[Downloads](https://git.codebau.dev/pytest-plugins/pytest-csv-params/releases/tag/v1.0.0) |
|
||||
[Technical Changelog](https://git.codebau.dev/pytest-plugins/pytest-csv-params/compare/v0.4.0...v1.0.0)
|
||||
|
||||
## Version 0.4.0
|
||||
|
||||
<u>Breaking Changes:</u> ✓ None
|
||||
|
|
|
@ -93,7 +93,7 @@ and the **documentation**.
|
|||
|
||||
### Code
|
||||
|
||||
The publishing is done managed with `poetry`. The complete build and deploy configuration takes place in the
|
||||
The building and deployment is managed by `poetry`. The complete build and deploy configuration takes place in the
|
||||
`pyproject.toml`. Besides the standard configuration in section `[tool.poetry]`, additional URLs are defined in section
|
||||
`[tool.poetry.urls]`. As a speciality for this plugin, an entry point is defined in section
|
||||
`[tool.poetry.plugins."pytest11"]`.
|
||||
|
|
|
@ -5,8 +5,8 @@ recommended.
|
|||
|
||||
The minimum requirements are:
|
||||
|
||||
- Python >= 3.8
|
||||
- Pytest >= 7.1
|
||||
- Python >= 3.8, < 3.12
|
||||
- Pytest >= 7.4
|
||||
|
||||
The plugin should run anywhere where these two things can be used.
|
||||
|
||||
|
@ -25,9 +25,21 @@ pip install --extra-index-url https://git.codebau.dev/api/packages/pytest-plugin
|
|||
## Install via `poetry`
|
||||
|
||||
```bash
|
||||
poetry add --dev pytest_csv_params
|
||||
poetry add --group dev pytest_csv_params
|
||||
```
|
||||
|
||||
Alternatively, you can use the codebau.dev package repository with `poetry` also:
|
||||
|
||||
- Enable the repository as an explicit source (you should only need to do this once):
|
||||
```bash
|
||||
poetry source add --priority=explicit codebau_pytest_plugins https://git.codebau.dev/api/packages/pytest-plugins/pypi/simple
|
||||
```
|
||||
|
||||
- Install the package:
|
||||
```bash
|
||||
poetry add --source codebau_pytest_plugins --group dev pytest_csv_params
|
||||
```
|
||||
|
||||
For more information about `poetry`, visit [python-poetry.org](https://python-poetry.org/)
|
||||
|
||||
## For development
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Python Module Index
|
||||
===================
|
|
@ -7,7 +7,6 @@ from os.path import dirname, join
|
|||
from livereload import Server, shell
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
cmd = "make html"
|
||||
if "win32" in sys.platform.lower():
|
||||
cmd = "make.bat html"
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "pytest-csv-params"
|
||||
version = "0.4.0"
|
||||
version = "1.1.0"
|
||||
description = "Pytest plugin for Test Case Parametrization with CSV files"
|
||||
authors = ["Juergen Edelbluth <csv_params@jued.de>"]
|
||||
license = "MIT"
|
||||
|
@ -8,11 +8,12 @@ repository = "https://git.codebau.dev/pytest-plugins/pytest-csv-params"
|
|||
homepage = "https://git.codebau.dev/pytest-plugins/pytest-csv-params"
|
||||
readme = "README.md"
|
||||
keywords = [
|
||||
"py.test", "pytest", "csv", "params", "parametrize", "pytest-plugin",
|
||||
"py.test", "pytest", "csv", "params", "parametrize", "pytest-plugin", "ddt", "data-driven"
|
||||
]
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Environment :: Plugins",
|
||||
"Environment :: Console",
|
||||
"Framework :: Pytest",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
|
@ -41,8 +42,9 @@ packages = [
|
|||
[tool.poetry.plugins."pytest11"]
|
||||
"pytest-csv-params" = "pytest_csv_params.plugin"
|
||||
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
addopts = "--mypy --black --isort --pylint --pylint-rcfile=.pylintrc --cov --cov-report=term-missing --junitxml=test-reports/pytest_csv_params.xml"
|
||||
addopts = "--mypy --black --isort --pylint --pylint-rcfile=.pylintrc --cov --cov-report=term-missing --cov-report=xml --junitxml=test-reports/pytest_csv_params.xml"
|
||||
filterwarnings=[
|
||||
"ignore:.*BlackItem.*:_pytest.warning_types.PytestDeprecationWarning",
|
||||
"ignore:.*BlackItem.*:_pytest.warning_types.PytestRemovedIn8Warning",
|
||||
|
@ -102,12 +104,14 @@ exclude_lines = [
|
|||
[tool.mypy]
|
||||
python_version = "3.8"
|
||||
strict = true
|
||||
ignore_missing_imports = true
|
||||
|
||||
[tool.tox]
|
||||
legacy_tox_ini = """
|
||||
[tox]
|
||||
minversion = 3.25.0
|
||||
envlist = clean,py38,py39,py310
|
||||
envlist = clean,py38,py39,py310,py311
|
||||
isolated_build = True
|
||||
|
||||
[testenv]
|
||||
commands =
|
||||
|
@ -121,7 +125,7 @@ commands =
|
|||
|
||||
[tool.black]
|
||||
line-length = 120
|
||||
target-version = ['py38', 'py39', 'py310']
|
||||
target-version = ['py38', 'py39', 'py310', 'py311']
|
||||
include = '\.pyi?$'
|
||||
|
||||
[tool.isort]
|
||||
|
@ -131,14 +135,14 @@ multi_line_output = 3
|
|||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8"
|
||||
pytest = "^7.1.2"
|
||||
pytest = "^7.4.0"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
tox = "^3.25.1"
|
||||
tox-poetry = "^0.4.1"
|
||||
pytest-black = "^0.3.12"
|
||||
pytest-isort = "^3.0.0"
|
||||
pytest-cov = "^3.0.0"
|
||||
pytest-cov = "^4.1.0"
|
||||
pytest-pylint = "^0.18.0"
|
||||
pytest-mock = "^3.8.2"
|
||||
pytest-clarity = "^1.0.1"
|
||||
|
|
|
@ -16,16 +16,16 @@ check_pytest_version()
|
|||
# Basic config
|
||||
pytest_configure = _pytest_configure
|
||||
"""
|
||||
Hook in our :meth:`_ptcsvp.configure.pytest_configure` method to setup the plugin setup
|
||||
Hook our :meth:`_ptcsvp.configure.pytest_configure` method to setup the plugin setup
|
||||
"""
|
||||
|
||||
pytest_unconfigure = _pytest_unconfigure
|
||||
"""
|
||||
Hook in our :meth:`_ptcsvp.configure.pytest_unconfigure` method to setup the plugin teardown
|
||||
Hook our :meth:`_ptcsvp.configure.pytest_unconfigure` method to setup the plugin teardown
|
||||
"""
|
||||
|
||||
# Command Line Arguments
|
||||
pytest_addoption = _pytest_addoption
|
||||
"""
|
||||
Hook in our :meth:`_ptcsvp.cmdline.pytest_addoption` method to setup our command line arguments
|
||||
Hook our :meth:`_ptcsvp.cmdline.pytest_addoption` method to setup our command line arguments
|
||||
"""
|
||||
|
|
|
@ -95,34 +95,39 @@ def test_python_version(
|
|||
@pytest.mark.parametrize(
|
||||
["p_version", "expect_error"],
|
||||
[
|
||||
("7.1", None),
|
||||
("7.1.1", None),
|
||||
("7.1.1.2", None),
|
||||
("7.1.1.2.3", None),
|
||||
("7.1.1.455555", None),
|
||||
("7.1.1.2-145", None),
|
||||
("7.1.1.090909090990", None),
|
||||
("7.2", None),
|
||||
("7.2.5", None),
|
||||
("7.2.5.6", None),
|
||||
("7.2.5.6.3333333", None),
|
||||
("7.2.5.6.333333333.4", None),
|
||||
("7.4", None),
|
||||
("7.4.1", None),
|
||||
("7.4.1.2", None),
|
||||
("7.4.1.2.3", None),
|
||||
("7.4.1.455555", None),
|
||||
("7.4.1.2-145", None),
|
||||
("7.4.1.090909090990", None),
|
||||
("7.5", None),
|
||||
("7.5.5", None),
|
||||
("7.5.5.6", None),
|
||||
("7.5.5.6.3333333", None),
|
||||
("7.5.5.6.333333333.4", None),
|
||||
("8.0", None),
|
||||
("8.0.1", None),
|
||||
("8.0.beta", None),
|
||||
("8.0.beta.3", None),
|
||||
("8.0.2.3", None),
|
||||
("7.0", (RuntimeError, "At least Pytest 7.1 required")),
|
||||
("7.0.1", (RuntimeError, "At least Pytest 7.1 required")),
|
||||
("7.0.111111", (RuntimeError, "At least Pytest 7.1 required")),
|
||||
("7.0.111111.extra", (RuntimeError, "At least Pytest 7.1 required")),
|
||||
("7.0.111111.extra.git-22", (RuntimeError, "At least Pytest 7.1 required")),
|
||||
("7", (RuntimeError, "At least Pytest 7.1 required")),
|
||||
("6", (RuntimeError, "At least Pytest 7.1 required")),
|
||||
("6.1", (RuntimeError, "At least Pytest 7.1 required")),
|
||||
("6.1.2", (RuntimeError, "At least Pytest 7.1 required")),
|
||||
("6.1.2.final", (RuntimeError, "At least Pytest 7.1 required")),
|
||||
("6.1.2.final.3", (RuntimeError, "At least Pytest 7.1 required")),
|
||||
("7.0", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7.0.1", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7.0.111111", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7.1", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7.1.1", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7.1.111111", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7.2", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7.2.1", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7.2.111111", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7.3", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7.3.1", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7.3.111111", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("7", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("6", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("6.1", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
("6.1.2", (RuntimeError, "At least Pytest 7.4 required")),
|
||||
],
|
||||
)
|
||||
def test_pytest_version(
|
||||
|
|
Loading…
Reference in New Issue