mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	billing: Make mock_stripe handle calls which dont return object.
This commit is contained in:
		@@ -123,7 +123,10 @@ def generate_and_save_stripe_fixture(decorated_function_name: str, mocked_functi
 | 
			
		||||
                f.write(json.dumps(error_dict, indent=2, separators=(',', ': '), sort_keys=True) + "\n")
 | 
			
		||||
            raise e
 | 
			
		||||
        with open(fixture_path, 'w') as f:
 | 
			
		||||
            if stripe_object is not None:
 | 
			
		||||
                f.write(str(stripe_object) + "\n")
 | 
			
		||||
            else:
 | 
			
		||||
                f.write("{}\n")
 | 
			
		||||
        return stripe_object
 | 
			
		||||
    return _generate_and_save_stripe_fixture
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user