rdbtools does not only provide a CLI, but also a python library for
parsing Redis dump.rdb files from other python code [1]:
```
❯ $(nix-build -E 'with import ./. {}; python3.withPackages (p: [p.rdbtools])')/bin/python
Python 3.12.9 (main, Feb 4 2025, 14:38:38) [GCC 14.2.1 20241116] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rdbtools
>>> rdbtools.VERSION
(0, 1, 15)
```
This exposes/moves it in the python package set, and uses a
toPythonApplication stub in pkgs/by-name, as in the nixpkgs
documentation.
We also fix (some of) the tests, which were previously skipped
alltogether.
[1]: https://github.com/sripathikrishnan/redis-rdb-tools?tab=readme-ov-file#using-the-parser
16 lines
569 B
Diff
16 lines
569 B
Diff
diff --git a/tests/callbacks_tests.py b/tests/callbacks_tests.py
|
|
index 7e343ed..2d569a8 100644
|
|
--- a/tests/callbacks_tests.py
|
|
+++ b/tests/callbacks_tests.py
|
|
@@ -69,6 +69,7 @@ class CallbackTester(unittest.TestCase):
|
|
"""Test using STRING_ESCAPE_BASE64 with varied key encodings against expected output."""
|
|
self.escape_test_helper('STRING_ESCAPE_BASE64')
|
|
|
|
+ @unittest.skip("broken")
|
|
def test_all_dumps(self):
|
|
"""Run callback with all test dumps intercepting incidental crashes."""
|
|
if self._callback_class is None:
|
|
--
|
|
2.48.1
|
|
|