mirror of
https://github.com/Nebucatnetzer/todoist_interface.git
synced 2024-06-28 05:10:50 +02:00
13 lines
238 B
Python
13 lines
238 B
Python
import json
|
|
|
|
|
|
class MockResponse:
|
|
|
|
def __init__(self, data):
|
|
self.data = data
|
|
|
|
# mock json() method always returns a specific testing dictionary
|
|
# @staticmethod
|
|
def json(self):
|
|
return json.loads(self.data)
|