NEW284070
Unable to reasonably test AutoInstaller (because it is a singleton)
https://bugs.webkit.org/show_bug.cgi?id=284070
Summary Unable to reasonably test AutoInstaller (because it is a singleton)
Sam Sneddon [:gsnedders]
Reported 2024-12-04 15:19:41 PST
At the moment, writing any sort of unit tests for the AutoInstaller is very difficult — because it's a singleton, and thus changing any state changes behaviour for everything. There's no strong reason for it to be a singleton — one could imagine multiple active AutoInstaller on the meta search path, each with different packages registered. We should make it into a normal class, with webkitcorepy.AutoInstaller a "default" instance.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-12-04 15:19:51 PST
Note You need to log in before you can comment on or make changes to this bug.