@@ -144,7 +144,7 @@ def _construct_graylog_url(
144144 scheme , tail = product_url .split ("://" , 1 )
145145 else :
146146 scheme , tail = "https" , "<UNDEFINED>"
147- monitoring_url = f"{ scheme } ://monitoring.{ tail } "
147+ monitoring_url = f"{ scheme } ://monitoring.{ tail } " . rstrip ( "/" )
148148
149149 # build graylog URL
150150 query = f"from={ start_time .strftime (_FORMAT )} &to={ end_time .strftime (_FORMAT )} "
@@ -161,11 +161,13 @@ def pytest_runtest_makereport(item: pytest.Item, call):
161161 test_name = item .name
162162 test_location = item .location
163163 product_url = f"{ item .config .getoption ('--product-url' , default = None )} "
164+ is_billable = item .config .getoption ("--product-billable" , default = None )
164165
165166 diagnostics = {
166167 "test_name" : test_name ,
167168 "test_location" : test_location ,
168169 "product_url" : product_url ,
170+ "is_billable" : is_billable ,
169171 }
170172
171173 # Get the start and end times of the test
@@ -182,7 +184,7 @@ def pytest_runtest_makereport(item: pytest.Item, call):
182184 logging .WARNING ,
183185 f"ℹ️ Diagnostics report for { test_name } ---" , # noqa: RUF001
184186 ) as ctx :
185- ctx .logger .warning (json .dumps (diagnostics , indent = 2 ))
187+ ctx .logger .warning (" \n %s" , json .dumps (diagnostics , indent = 2 ))
186188
187189
188190@pytest .hookimpl (tryfirst = True )
0 commit comments