Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

RhoSocial ActiveRecord Test Suite

⚠️ Development Stage Notice: This project is currently under development. Features may be added or removed at any time, and there may be defects or inconsistencies with actual implementations. Therefore, the documentation content is subject to change at any time and is for reference only.

PyPI version Python License: Apache 2.0

Overview

This package contains the standardized test suite for the RhoSocial ActiveRecord library. Its primary purpose is to provide a consistent set of test contracts that all official and third-party database backends must implement to ensure compatibility and reliability.

By separating the test definitions from the backend implementations, we can guarantee that all backends adhere to the same core functionalities and behaviors expected by the ActiveRecord interface.

Testing Philosophy

Our testing strategy is built on three core pillars:

  1. Feature Tests: Validate individual functionality points (e.g., where queries, save methods, BelongsTo relationships).
  2. Real-world Scenarios: Simulate actual business scenarios to verify complex interactions and data integrity.
  3. Performance Benchmarks: Measure and compare backend performance under standardized loads.

Structure

The test suite is organized into the following main categories, located in src/rhosocial/activerecord/testsuite/:

  • /feature: Core feature tests.
  • /realworld: Complex, real-world application scenarios.
  • /benchmark: Performance and load tests.

Capability-based Testing

The test suite includes an integrated pytest plugin that automatically checks if the current backend supports required capabilities. Tests using the @requires_capability decorator will be automatically skipped if the backend doesn't support the required features.

The plugin is registered automatically and available when the package is installed.

Usage for Backend Developers

If you are developing a database backend for RhoSocial ActiveRecord, you should include this test suite as a development dependency. Your backend's test runner will execute these tests against your implementation, using your provided database schema fixtures.

A typical workflow involves:

  1. Adding rhosocial-activerecord-testsuite to your pyproject.toml.
  2. Creating database schema fixtures that match the structure required by the tests.
  3. Running the test suite against your backend to identify and fix compatibility issues.
  4. Generating a compatibility report to document your backend's compliance level.

For detailed instructions, please refer to the main project's testing documentation.

Contributing

Contributions are welcome! Please refer to the main repository's contribution guidelines.

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

Metadata

Release files for rhosocial-activerecord-testsuite 1.0.0.dev16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rhosocial-activerecord-testsuite 1.0.0.dev16
File Size Uploaded
rhosocial_activerecord_testsuite-1.0.0.dev16.tar.gz 394.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rhosocial-activerecord-testsuite 1.0.0.dev16
File Interpreter ABI Platform
rhosocial_activerecord_testsuite-1.0.0.dev16-py3-none-any.whl Python 3 none any Details

Total release size: 940.7 kB

Release files / rhosocial_activerecord_testsuite-1.0.0.dev16.tar.gz

Download URL rhosocial_activerecord_testsuite-1.0.0.dev16.tar.gz
Size 394.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f4765ac739135dd5802c8c0fc3615d1714dee5d05e652841519b59fd6792a4fb
BLAKE2b-256 checksum
How to use checksums
0e85bf98a88ea56b35bcee6f0c7c8f6f2b7ed1b711ece23aaaf2ea340b21b249
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.

Transparency log

Release files / rhosocial_activerecord_testsuite-1.0.0.dev16-py3-none-any.whl

Download URL rhosocial_activerecord_testsuite-1.0.0.dev16-py3-none-any.whl
Size 546.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d1f343887cfe30ee0478643daee54a17501119a36956f9bf36078a4e86fb42a
BLAKE2b-256 checksum
How to use checksums
da9f0d9b79839a67bcf9befafda35ab01df4523df3a70f339715e57caa842d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page