Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
S2-group
GitHub Repository: S2-group/android-runner
Path: blob/master/tests/unit/fixtures/FakeDevice.py
908 views
1
# noinspection PyMethodMayBeStatic,PyMethodMayBeStatic,PyMethodMayBeStatic
2
class FakeDevice(object):
3
def __init__(self, device_id):
4
self.id = device_id
5
6
@staticmethod
7
def current_activity():
8
return {"type": "standard", "name": 'fake.activity'}
9
10
def logcat_regex(self, regex):
11
return regex
12
13
def launch_activity(self, package, activity, action='', data_uri='', from_scratch=False, force_stop=False):
14
print(("{},{},{},{},{}".format(package, activity, action, data_uri, from_scratch, force_stop)))
15
16