Commit graph

10 commits

Author SHA1 Message Date
4573e170ed
test suite: use match statement where practicable (21 files) 2025-09-23 09:20:53 +00:00
f9e6d994f0
whitespace: test/misc 2024-10-18 10:32:13 +00:00
9a8f6216f7
pylint (test suite) - f-strings 2023-10-11 12:58:52 +00:00
aff850d1c8
test suite: import cleanups 2023-10-03 14:27:57 +00:00
29ebec09c3
minor testing fixes 2023-06-13 18:32:20 +00:00
9e1935ad19
opts.init() -> Config() 2023-04-04 16:04:10 +00:00
3896293652
minor cleanups 2023-04-04 16:04:10 +00:00
c7adb56e38
Config API, Part I
This patch eliminates the global configuration variables `opt` and `g`, making
all functions and class instances locally configurable.  Configuration data is
passed to functions and constructors via the `cfg` parameter and made available
to methods in `self.cfg`.

Local configuration free from dependence on the command line will enable the
creation of multiple, independently configured instances of MMGen’s data
objects within a single process.

Potential applications include testing (tracking wallets configured to interact
with spawned processes, for example) and the use of MMGen as a library for
other projects.

This patch completes most of the work required to enable the API.  The full
implementation will appear in a forthcoming commit.
2023-03-28 18:14:37 +00:00
5682e7f74e
test suite: minor cleanups 2022-11-01 14:36:45 +00:00
2b74f41749
test.py input: add char and line subgroups
Testing:

    $ test/test.py --demo input.char
    $ test/test.py --demo input.line
2022-10-29 20:10:24 +00:00