From abee27ab85e938a18eacbd4396808530cb60355c Mon Sep 17 00:00:00 2001 From: Michael Boulton Date: Sun, 29 Oct 2023 13:21:49 +0000 Subject: [PATCH] Add warning --- scripts/smoke.bash | 8 +------- tavern/_core/pytest/item.py | 7 +++++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/scripts/smoke.bash b/scripts/smoke.bash index ea4be2e4..b702447e 100755 --- a/scripts/smoke.bash +++ b/scripts/smoke.bash @@ -14,10 +14,4 @@ tox --parallel -c tox.ini \ -e py3mypy tox -c tox-integration.ini \ - -e py3-generic \ - -e py3-mqtt \ - -e py3-grpc \ - -e py3-advanced \ - -e py3-cookies \ - -e py3-components \ - -e py3-hooks + -e py3-generic,py3-grpc,py3-mqtt diff --git a/tavern/_core/pytest/item.py b/tavern/_core/pytest/item.py index 314bace3..7db3f01e 100644 --- a/tavern/_core/pytest/item.py +++ b/tavern/_core/pytest/item.py @@ -1,6 +1,6 @@ import logging import pathlib -from typing import Optional, Tuple +from typing import MutableMapping, Optional, Tuple import attr import yaml @@ -39,8 +39,11 @@ class YamlItem(pytest.Item): _patched_yaml = False def __init__( - self, *, name: str, parent, spec, path: pathlib.Path, **kwargs + self, *, name: str, parent, spec: MutableMapping, path: pathlib.Path, **kwargs ) -> None: + if "grpc" in spec: + logger.warning("Tavern grpc support is in an experimental stage") + super().__init__(name, parent, **kwargs) self.path = path self.spec = spec