MCPcopy Index your code
hub / github.com/appium/python-client / test_get_log

Function test_get_log

test/unit/webdriver/log_test.py:35–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34@httpretty.activate
35def test_get_log():
36 driver = ios_w3c_driver()
37 httpretty.register_uri(
38 httpretty.POST,
39 appium_command('/session/1234567890/se/log'),
40 body=json.dumps({'value': ['logs as array']}),
41 )
42 log_types = driver.get_log('syslog')
43 assert log_types == ['logs as array']
44
45 d = get_httpretty_request_body(httpretty.last_request())
46 assert {'type': 'syslog'} == d

Callers

nothing calls this directly

Calls 4

ios_w3c_driverFunction · 0.90
appium_commandFunction · 0.90
get_logMethod · 0.80

Tested by

no test coverage detected