Download source/tests/test_compact_compatibility.py from PureOne/Qyxo-Zhaenivoth-Guard: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/datasets/PureOne/Qyxo-Zhaenivoth-Guard/resolve/main/source/tests/test_compact_compatibility.py
- Command line
-
hf download hf://datasets/PureOne/Qyxo-Zhaenivoth-Guard/source/tests/test_compact_compatibility.py
-
curl -L -o test_compact_compatibility.py https://huggingface.co/datasets/PureOne/Qyxo-Zhaenivoth-Guard/resolve/main/source/tests/test_compact_compatibility.py
1.54 kB
| """Execute existing independent model/transaction oracles on the compact index. | |
| These are additional backend executions of existing oracle methods, not new | |
| independent oracle designs. Distinct test IDs keep qualification accounting | |
| explicit. The runner is sequential; each class restores its module binding. | |
| """ | |
| from qzguard import CompactDynamicBank | |
| import test_dynamic as basic | |
| import test_dynamic_fixed_total as fixed | |
| import test_dynamic_hostile as hostile | |
| class _CompactConstructor: | |
| def setUpClass(cls): | |
| super().setUpClass() | |
| cls._saved_constructor = cls._module.DynamicBank | |
| cls._module.DynamicBank = CompactDynamicBank | |
| def tearDownClass(cls): | |
| cls._module.DynamicBank = cls._saved_constructor | |
| super().tearDownClass() | |
| class CompactBasicCompatibilityTests(_CompactConstructor, basic.DynamicBankTests): | |
| _module = basic | |
| class CompactFixedTotalCompatibilityTests(_CompactConstructor, fixed.FixedTotalDynamicTests): | |
| _module = fixed | |
| class CompactHostileOracleCompatibilityTests(_CompactConstructor, hostile.DynamicHostileOracleTests): | |
| _module = hostile | |
| class CompactTransactionCompatibilityTests(_CompactConstructor, hostile.DynamicHostileTransactionTests): | |
| _module = hostile | |
| class CompactComplexityCompatibilityTests(_CompactConstructor, hostile.DynamicHostileComplexityTests): | |
| _module = hostile | |
| class CompactNumpyCompatibilityTests(_CompactConstructor, hostile.DynamicHostileNumpyBoundaryTests): | |
| _module = hostile | |