Registry / testing / acid-xblock

acid-xblock

JSON →
library0.4.1pypypiunverified

Acid XBlock is a test XBlock for the Open edX platform that stresses the XBlock API. It provides a comprehensive test of XBlock functionality including various field types, scopes, and runtime interactions. Current version: 0.4.1, released September 2024. Releases are irregular.

pip install acid-xblock
INSTALL
IMPORT
SIG · ACID-XBLOCK
A
acid-xblock
testingpythonv0.4.1
Install
4.2s avg
Import
Disk
49MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.4.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 41.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.2s · import 0.000s · 43MB
49MB installed
● package 49MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AcidBlock
from acid import AcidBlock
from acid_xblock import AcidBlock

Get the AcidBlock class. For actual usage, install the package and add 'acid' to the Advanced Module list in Studio course settings.

# Add to your Open edX environment # Usually installed via requirements, then enabled in the advanced settings. # To test in a Python shell (if inside an XBlock runtime context): from acid_xblock import AcidBlock print(AcidBlock.__name__)
Debug
Known issues
breakingVersion 0.4.0 dropped support for Python 3.8. If your environment uses Python 3.8, upgrade Python or pin to acid-xblock<0.4.0.
fix
Upgrade to Python 3.9+ or use acid-xblock==0.3.1
affects: >=0.4.0
gotchaThe package name on PyPI is 'acid-xblock', but the Python module is 'acid_xblock'. Users often try to import 'acidxblock' or 'acid' directly.
fix
Use 'from acid_xblock import AcidBlock' or 'import acid_xblock'.
affects: all
deprecatedThe package 'acid-xblock' is a test XBlock and is not intended for production use. It may not receive security updates.
fix
Do not rely on this package in production courses. Use only for development or testing.
affects: all
Upgrade
Version history
0.4.1latest on PyPI · released Oct 1, 2024
Audit
Dependencies
XBlockrequiredAcid XBlock is an XBlock and requires the XBlock framework.
Agent activity
66 hits · last 30 days
node
56
OpenAI (training)
1
Resources