|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /proc/17567/root/usr/src/cloud-init/tests/ |
Upload File : |
try:
from hypothesis import given
HAS_HYPOTHESIS = True
except ImportError:
HAS_HYPOTHESIS = False
from unittest import mock
def given(*_, **__): # type: ignore
"""Dummy implementation to make pytest collection pass"""
@mock.Mock # Add mock to fulfill the expected hypothesis value
def run_test(item):
return item
return run_test
__all__ = ["given", "HAS_HYPOTHESIS"]