File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,10 @@ def pytest_sessionfinish(self, session):
206
206
self ._report .data ["runningState" ] = "Finished"
207
207
self ._generate_report ()
208
208
209
+ @pytest .hookimpl (trylast = True )
210
+ def pytest_terminal_summary (self , terminalreporter ):
211
+ terminalreporter .write_sep ("-" , f"Generated html report: file://{ self ._report_path } " )
212
+
209
213
@pytest .hookimpl (trylast = True )
210
214
def pytest_collection_finish (self , session ):
211
215
self ._report .data ["collectedItems" ] = len (session .items )
Original file line number Diff line number Diff line change 73
73
</template >
74
74
<template id =" template_results-table__head--empty" >
75
75
<tr id =" not-found-message" >
76
- <th colspan =" 4" >No results found. Try to check the filters</th >
76
+ <th colspan =" 4" >No results found. Check the filters. </th >
77
77
</tr >
78
78
</template >
79
79
<!-- END TEMPLATES -->
Original file line number Diff line number Diff line change @@ -82,13 +82,15 @@ const dom = {
82
82
83
83
const media = [ ]
84
84
extras ?. forEach ( ( { name, format_type, content } ) => {
85
- const extraLink = aTag . content . cloneNode ( true )
86
- const extraLinkItem = extraLink . querySelector ( 'a' )
87
-
88
- extraLinkItem . href = content
89
- extraLinkItem . className = `col-links__extra ${ format_type } `
90
- extraLinkItem . innerText = name
91
- resultBody . querySelector ( '.col-links' ) . appendChild ( extraLinkItem )
85
+ if ( [ 'json' , 'text' , 'url' ] . includes ( format_type ) ) {
86
+ const extraLink = aTag . content . cloneNode ( true )
87
+ const extraLinkItem = extraLink . querySelector ( 'a' )
88
+
89
+ extraLinkItem . href = content
90
+ extraLinkItem . className = `col-links__extra ${ format_type } `
91
+ extraLinkItem . innerText = name
92
+ resultBody . querySelector ( '.col-links' ) . appendChild ( extraLinkItem )
93
+ }
92
94
93
95
if ( [ 'image' , 'video' ] . includes ( format_type ) ) {
94
96
media . push ( { path : content , name, format_type } )
You can’t perform that action at this time.
0 commit comments