mirror of
https://github.com/Paillat-dev/pycord-reactive-views.git
synced 2026-01-02 09:06:21 +00:00
31 lines
989 B
Python
31 lines
989 B
Python
# ---------------------------------------------------------------------------------
|
|
# 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
|
|
|
|
from typing import List
|
|
|
|
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
|