Commit graph

13 commits

Author SHA1 Message Date
Tiara Rodney
aa2540cf3f
refactor(testing.pytest): change mock_pkg interface
being more explicit about what the fixture provides as an output, instead of
solely describing the site effects.

Also the consumer is now responsible for the module directory layout.
2025-06-21 18:14:52 +02:00
Tiara Rodney
9abfabde00
chore: move testing utils out of utils 2025-06-21 01:41:47 +02:00
Tiara Rodney
59713aefb8
feat(urllib.request): add importlib resource handler 2025-06-21 00:34:29 +02:00
Tiara Rodney
24806959bb
feat(testing.pytest): add pkg mock fixture 2025-06-21 00:32:07 +02:00
Tiara Rodney
43cdf21d4b
feat(testing.pytest): add subprocess decorator 2025-06-20 23:36:56 +02:00
Tiara Rodney
1ea3b3a24d
feat(urllib): init PkgHandler 2025-06-20 21:49:28 +02:00
Tiara Rodney
644beb8696
feat(testing): init pytest fixtures
current_test fixture allows to retrieve the current test context, that is
exposed through the shell environment
2025-06-20 21:47:17 +02:00
Tiara Rodney
1fb1e0d0bf
chore: rename package 2025-06-20 20:33:37 +02:00
Tiara Rodney
dc69eea88a
chore(test): remove redundant module entrypoints
pytest compared to built-in unittest does not discover test suites based on a
directory being marked as a module, instead matching against the basename of a
file to determine whether it is a test suite or not.
2025-06-20 20:19:32 +02:00
Rodney, Tiara
e67a95f15a
feat(string): init Rabin-Karp rolling hash
Implemented Rabin-Karp rolling hash class abstraction.

After testing muliple algorithms for efficient substring searching in a stream
abstracted by a ring buffer, I've dropped the idea of using KMP in favor of
implementing my own algorithm based of the Rabin-Karp rolling hash algorithm.
2025-05-05 01:33:22 +02:00
Rodney, Tiara
ed4220c1f7
test(collections): init tests for CircularBuffer 2025-05-04 02:30:28 +02:00
Rodney, Tiara
bcc65f0a09
refactor(tests): move unit tests to subdirectory
this allows for future separation between unit tests and other test types
2025-05-04 01:38:42 +02:00
Rodney, Tiara
29c7308410
init 2025-05-03 19:28:01 +02:00