Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

simple-module-test

Latest version: v0.0.51

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: antosubash
0 Stars
2 Forks
16 Versions
3.3K Downloads
Python Repo language

Scan summary

simple-module-test was last scanned on 29 Nov 2026 at version 0.0.51. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 16 versions; the latest 2 were published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 0.0.51.
  • Downloads: 3,303 downloads.

Versions

16 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.51 LATEST 29 Nov 2026 No rules fired
0.0.50 28 Nov 2026 No rules fired
0.0.49 20 Nov 2026 No rules fired
0.0.48 19 Nov 2026 Not shown
0.0.47 16 Nov 2026 Not shown

No rules fired in 0.0.51

Findings

Findings for v0.0.51. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.0.51; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

simple_module_test

Shared pytest fixtures and helpers for writing tests against simple_module apps and modules.

Fixtures are exposed via a pytest11 entry point, so installing the package is enough — no conftest.py import needed.

The plugin ignores the invoking project's .env before collection, while exported environment variables and temporary configuration-test files still work. Test imports default to importlib, allowing repeated basenames. Add support directories to pytest's pythonpath when using plain helper imports or pytest_plugins.

Install

pip install simple_module_test
# or, if you already pulled in the framework:
pip install "simple_module_hosting[dev]"

What it provides

All fixtures below are auto-registered via the pytest11 entry point — installing the package is enough.

  • fake_event_bus — a fresh recording EventBus per test that captures every publish/publish_nowait call.
  • build_test_app — callable returning a minimal FastAPI app that loads exactly one module.
  • settings — a ready-to-use Settings instance with an in-memory SQLite database and multi-tenancy enabled.
  • db_state, engine, db_session — fresh DatabaseState per test; db_session also creates all module tables and stamps alembic_version at head so the boot-time migration check passes.
  • app — a create_app(settings) instance with lifespan started and stopped.
  • client — an httpx.AsyncClient bound to the test app.
  • authenticated_client — same but with an admin user seeded and a forged session cookie attached. Requires the users module to be installed (it seeds the admin via users.core.bootstrap); apps scaffolded by smpy include it.
  • tenant_client — factory: async with tenant_client("member") as (client, tenant_id, user_id) signs in a fresh user who is an owner / admin / member (default owner) of a new tenant — or of tenant_id= when given — with that tenant active. Requires the users and tenants modules.
  • oidc_test_issuer — an in-process OpenID Connect issuer (OidcTestIssuer): an RSA signing key with jwks(), discovery() and sign(claims), for testing an OIDC sign-in through httpx_mock without an IdP.

Usage

In a module's tests/test_something.py:

import pytest

pytestmark = pytest.mark.asyncio


async def test_create_order(authenticated_client):
    resp = await authenticated_client.post(
        "/api/orders",
        json={"customer_id": 1, "total_cents": 9900},
    )
    assert resp.status_code == 201
    assert resp.json()["total_cents"] == 9900

No fixture imports, no conftest.py — the pytest11 entry point auto-loads them.

To enforce the standard package and test layout, call the public helper from a test:

from pathlib import Path

from simple_module_test import assert_module_layout


def test_orders_layout():
    assert_module_layout(Path("modules/orders"), "orders")

For standalone module projects use Path("."). Pass named domain directories with domain_areas={"fulfillment"} and temporary compatibility files with deprecated_root.

Depends on

  • simple_module_core, simple_module_db, simple_module_hosting
  • pytest, pytest-asyncio, httpx, sqlalchemy

License

MIT — see LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases simple-module-test

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229