Skip to content

Commit c4c0d97

Browse files
committed
Add launch_uuid_print and print_output arguments in RPClient class constructor
1 parent 5a1b853 commit c4c0d97

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,13 @@ def test_launch_uuid_print():
207207
client._skip_analytics = True
208208
client.start_launch('Test Launch', timestamp())
209209
assert 'Report Portal Launch UUID: ' in str_io.getvalue()
210+
211+
212+
def test_no_launch_uuid_print():
213+
str_io = StringIO()
214+
client = RPClient(endpoint='http://endpoint', project='project',
215+
api_key='test', launch_uuid_print=False, print_output=str_io)
216+
client.session = mock.Mock()
217+
client._skip_analytics = True
218+
client.start_launch('Test Launch', timestamp())
219+
assert 'Report Portal Launch UUID: ' not in str_io.getvalue()

0 commit comments

Comments
 (0)