Code AnalysisIntermediate 45s
patch decorator
What happens?
Starter code
from unittest.mock import patch
@patch('os.getcwd', return_value='/fake')
def test(mock_gc):
import os
return os.getcwd()
print(test())Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.