Repository Public
1# =============================================================================2# SP BOUCHER | SOFTWARE & RESEARCH3# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4# =============================================================================5#6# Project : SPIDER7# File : tests/security/conftest.py8# Module : Tests9# Repository : https://git.spboucher.ai/spider10# Project Website : Not specified11# Created : 2026-12-0412# Last Modified : 2026-12-0413#14# Author : Simon-Pierre Boucher15# Position : Professor of Finance16# Institution : Université du Québec en Outaouais (UQO)17# Organization : SP Boucher18# Website : https://spboucher.ai19# Git : https://git.spboucher.ai20#21# Preferred Contact: contact@spboucher.ai22# Development : dev@spboucher.ai23# Support : support@spboucher.ai24# Security/Admin : admin@spboucher.ai25#26# Copyright (c) 202627# Simon-Pierre Boucher28# All rights reserved where applicable. This file is governed by the29# applicable project license, copyright notices and relevant law.30# Existing third-party rights and notices remain unaffected.31#32# License : ISC33#34# Do not embed credentials, private keys, access tokens,35# certificates or confidential personal information.36#37# =============================================================================38# END OF SP BOUCHER SOURCE HEADER39# =============================================================================4041"""Security tests that need the running stack reuse the integration harness (`stack` fixture)."""42import importlib.util43import sys44from pathlib import Path4546_INTEGRATION = Path(__file__).resolve().parents[1] / "integration"47if str(_INTEGRATION) not in sys.path:48 sys.path.insert(0, str(_INTEGRATION)) # apihelpers49_spec = importlib.util.spec_from_file_location("spider_integration_harness", _INTEGRATION / "conftest.py")50_harness = importlib.util.module_from_spec(_spec)51sys.modules[_spec.name] = _harness52_spec.loader.exec_module(_harness)5354stack = _harness.stack55FakeWorker = _harness.FakeWorker56