Some of the older (very old) code in the test files was relying on global variables defined in other files. A bad decision from many years ago I have been meaning to rectify. Removed the global assert function (it is still monkey patched in ./test-helper but that's not as bad) and also removed the global test function, global instances of Client and the few places global MemoryStream was used. Now everything is imported/required within the file(s) its used.
Some of the older (very old) code in the test files was relying on global variables defined in other files. A bad decision from many years ago I have been meaning to rectify. Removed the global
assert
function (it is still monkey patched in./test-helper
but that's not as bad) and also removed the globaltest
function, global instances ofClient
and the few places globalMemoryStream
was used. Now everything is imported/required within the file(s) its used.