Visitar URL original
Update conftest.py · feast-dev/feast@06b64f4 · GitHub
Skip to content

Commit 06b64f4

Browse files
committed
Update conftest.py
Signed-off-by: Anthonette Adanyin <106275232+antznette1@users.noreply.github.com> Signed-off-by: antznette1 <Ochiezeanthonette@gmail.com>
1 parent 4b8b232 commit 06b64f4

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

‎sdk/python/tests/conftest.py‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@
7878
from tests.utils.auth_permissions_util import default_store
7979
except ModuleNotFoundError:
8080
default_store = None # type: ignore[assignment]
81+
8182
from tests.utils.http_server import check_port_open, free_port # noqa: E402
83+
8284
try:
8385
from tests.utils.ssl_certifcates_util import (
8486
combine_trust_stores,
@@ -276,6 +278,27 @@ def pytest_generate_tests(metafunc: pytest.Metafunc):
276278
parameter should point to the same Python object (hence, we use _config_cache dict to store those objects).
277279
"""
278280
if "environment" in metafunc.fixturenames:
281+
if (
282+
IntegrationTestRepoConfig is None
283+
or AVAILABLE_OFFLINE_STORES is None
284+
or AVAILABLE_ONLINE_STORES is None
285+
or OFFLINE_STORE_TO_PROVIDER_CONFIG is None
286+
or FileDataSourceCreator is None
287+
):
288+
metafunc.parametrize(
289+
"environment",
290+
[
291+
pytest.param(
292+
None,
293+
marks=pytest.mark.skip(
294+
reason="Optional integration test dependencies are not installed"
295+
),
296+
)
297+
],
298+
indirect=True,
299+
ids=["missing_optional_integration_deps"],
300+
)
301+
return
279302
markers = {m.name: m for m in metafunc.definition.own_markers}
280303
offline_stores = None
281304
if "universal_offline_stores" in markers:

0 commit comments

Comments
 (0)