mirror of
				https://github.com/Eledio/superfaktura-client.git
				synced 2025-10-31 16:11:20 +01:00 
			
		
		
		
	test_superfaktura_api: fix unnecessary mock file open
This commit is contained in:
		| @@ -84,6 +84,5 @@ def test_download_not_writable_descriptor(api): | ||||
|         mock_get.return_value.content = b"test_content" | ||||
|         mock_descriptor = MagicMock() | ||||
|         mock_descriptor.writable.return_value = False | ||||
|         with patch("builtins.open", mock_open()) as mock_file: | ||||
|         with pytest.raises(SuperFakturaAPIException, match=" is not writable"): | ||||
|             api.download("test_endpoint", mock_descriptor) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user