Definition at line 22 of file utils.py.
◆ __init__()
None GaudiTesting.utils.CodeWrapper.__init__ |
( |
|
self, |
|
|
|
code, |
|
|
|
language |
|
) |
| |
Definition at line 23 of file utils.py.
23 def __init__(self, code, language) -> None:
25 self.language = language
◆ __str__()
str GaudiTesting.utils.CodeWrapper.__str__ |
( |
|
self | ) |
|
Definition at line 27 of file utils.py.
28 return f
'<pre><code class="language-{self.language}">{XSS.escape(self.code)}</code></pre>'
◆ code
GaudiTesting.utils.CodeWrapper.code |
◆ language
GaudiTesting.utils.CodeWrapper.language |
The documentation for this class was generated from the following file:
- GaudiPolicy/python/GaudiTesting/utils.py