Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit 3e9e824

Browse files
committed
google-assistant-sdk: fix unittest
abandon capturelog in favor of catchlog (pytest builtins). Change-Id: I4a188eece4f57025ba681bc77d4fb472ca159863
1 parent 4652ccd commit 3e9e824

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

google-assistant-sdk/nox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def lint(session):
3838
def unittest(session, python_version):
3939
session.interpreter = 'python' + python_version
4040
session.install('pip', 'setuptools')
41-
session.install('pytest', 'pytest-capturelog')
41+
session.install('pytest')
4242
session.install('../google-assistant-grpc/')
4343
session.install('-e', '.[samples]')
4444
session.run('py.test', 'tests')

google-assistant-sdk/tests/test_devicetool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ def test_print_model_with_no_trait(caplog):
2222
'projectId': 'project-id',
2323
'deviceType': 'device-type'
2424
})
25-
assert 'model-id' in caplog.text()
26-
assert 'project-id' in caplog.text()
27-
assert 'device-type' in caplog.text()
25+
assert 'model-id' in caplog.text
26+
assert 'project-id' in caplog.text
27+
assert 'device-type' in caplog.text

0 commit comments

Comments
 (0)