-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathconftest.py
More file actions
28 lines (21 loc) · 964 Bytes
/
conftest.py
File metadata and controls
28 lines (21 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ---------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in project root for information.
# ---------------------------------------------------------------------------------
"""
This is a configuration file for pytest containing customizations and fixtures.
In VSCode, Code Coverage is recorded in config.xml. Delete this file to reset reporting.
"""
from __future__ import annotations
import pytest
from _pytest.nodes import Item
def pytest_collection_modifyitems(items: list[Item]):
for item in items:
if "spark" in item.nodeid:
item.add_marker(pytest.mark.spark)
elif "_int_" in item.nodeid:
item.add_marker(pytest.mark.integration)
@pytest.fixture
def unit_test_mocks(monkeypatch: None):
"""Include Mocks here to execute all commands offline and fast."""
pass