Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

572 B
Raw Blame
"""
©AngelaMos | 2026
conftest.py
"""

from pathlib import Path

import pytest

FIXTURES = Path(__file__).parent / "fixtures"


@pytest.fixture(scope="session")
def gate_path() -> Path:
    return FIXTURES / "gate"


@pytest.fixture(scope="session")
def gate_bytes(gate_path: Path) -> bytes:
    return gate_path.read_bytes()


@pytest.fixture(scope="session")
def gate_stripped_path() -> Path:
    return FIXTURES / "gate_stripped"


@pytest.fixture(scope="session")
def gate_stripped_bytes(gate_stripped_path: Path) -> bytes:
    return gate_stripped_path.read_bytes()