mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	For most functions that we were using __Rewire__ for,
it's better to just use the override helper, which
use __Rewire__ under the hood, but also resets
the reference at the end of run_tests.
Another nice thing about override() is that it reports
when you never actually needed the mock, and this
commit fixes the instances found here.
I didn't replace every call to __Rewire__. The
remaining ones fall under these categories:
    * I looked for ") =>" in my code sweep,
      so I missed stuff like "noop" helpers.
    * Sometimes we directly update something
      in a module that's not a function. This
      is generally evil, and we should use setters.
    * Some tests have setup() helpers or similar
      that complicated this code sweep, so I
      simply punted.
    * Somes modules rely on intra-test leaks. We
      should fix those, but I just punted for the
      main code sweep.
		
	
		
			
				
	
	
	
		
			9.9 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			9.9 KiB