Skip to content

Commit

Permalink
Merge pull request #5342 from os-autoinst-bot/gh-pages-231024022400
Browse files Browse the repository at this point in the history
Update documentation to commit d08787a
  • Loading branch information
okurz authored Oct 24, 2023
2 parents c251629 + de26cfe commit ad013e0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/api/testapi.html
Original file line number Diff line number Diff line change
Expand Up @@ -2078,7 +2078,7 @@ <h5 id="_backend_get_wait_still_screen_on_here_doc_input">backend_get_wait_still
</div>
<div id="footer">
<div id="footer-text">
Last updated 2023-10-21 02:25:57 UTC
Last updated 2023-10-24 02:26:16 UTC
</div>
</div>
</body>
Expand Down
Binary file modified docs/current.pdf
Binary file not shown.
21 changes: 15 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6375,10 +6375,10 @@ <h3 id="_test_module_interface">Test module interface</h3>
</div>
<div class="listingblock">
<div class="content">
<pre class="pygments highlight"><code data-lang="perl"><span></span><span class="tok-n">from</span><span class="tok-w"> </span><span class="tok-n">testapi</span><span class="tok-w"> </span><span class="tok-nb">import</span><span class="tok-w"> </span><span class="tok-o">*</span>
<pre class="pygments highlight"><code data-lang="python"><span></span><span class="tok-kn">from</span> <span class="tok-nn">testapi</span> <span class="tok-kn">import</span> <span class="tok-o">*</span>

<span class="tok-n">def</span><span class="tok-w"> </span><span class="tok-n">run</span><span class="tok-p">():</span>
<span class="tok-w"> </span><span class="tok-c1"># write in this block the code for your test.</span></code></pre>
<span class="tok-k">def</span> <span class="tok-nf">run</span><span class="tok-p">(</span><span class="tok-bp">self</span><span class="tok-p">):</span>
<span class="tok-c1"># write in this block the code for your test.</span></code></pre>
</div>
</div>
<div class="paragraph">
Expand All @@ -6389,7 +6389,7 @@ <h3 id="_test_module_interface">Test module interface</h3>
<div class="listingblock">
<div class="content">
<pre class="pygments highlight"><code data-lang="python"><span></span><span class="tok-c1"># Written in type-hinted python to indicate explicitly return types</span>
<span class="tok-k">def</span> <span class="tok-nf">run</span><span class="tok-p">():</span> <span class="tok-o">-&gt;</span> <span class="tok-kc">None</span>
<span class="tok-k">def</span> <span class="tok-nf">run</span><span class="tok-p">(</span><span class="tok-bp">self</span><span class="tok-p">):</span> <span class="tok-o">-&gt;</span> <span class="tok-kc">None</span>
<span class="tok-k">def</span> <span class="tok-nf">test_flags</span><span class="tok-p">():</span> <span class="tok-o">-&gt;</span> <span class="tok-nb">dict</span> <span class="tok-c1"># *1</span>
<span class="tok-k">def</span> <span class="tok-nf">post_fail_hook</span><span class="tok-p">():</span> <span class="tok-o">-&gt;</span> <span class="tok-kc">None</span> <span class="tok-c1"># *1</span>
<span class="tok-k">def</span> <span class="tok-nf">pre_run_hook</span><span class="tok-p">():</span> <span class="tok-o">-&gt;</span> <span class="tok-kc">None</span> <span class="tok-c1"># *1</span>
Expand Down Expand Up @@ -6571,7 +6571,7 @@ <h3 id="_notes_on_the_python_api">Notes on the Python API</h3>

<span class="tok-c1"># [...] omitted for brevity</span>

<span class="tok-k">def</span> <span class="tok-nf">run</span><span class="tok-p">():</span>
<span class="tok-k">def</span> <span class="tok-nf">run</span><span class="tok-p">(</span><span class="tok-bp">self</span><span class="tok-p">):</span>
<span class="tok-n">perl</span><span class="tok-o">.</span><span class="tok-n">require</span><span class="tok-p">(</span><span class="tok-s1">&#39;x11utils&#39;</span><span class="tok-p">)</span>

<span class="tok-c1"># Start vncviewer - notice the named arguments passed as positional arguments</span>
Expand All @@ -6584,6 +6584,15 @@ <h3 id="_notes_on_the_python_api">Notes on the Python API</h3>
<span class="tok-c1"># [...] omitted for brevity</span></code></pre>
</div>
</div>
<div class="paragraph">
<p>Additionally, Python tests do not support <code>run_args</code>. An error will be present
when a Python test detects the presence of <code>run_args</code> on schedule.</p>
</div>
<div class="paragraph">
<p>This is because of the way <code>Inline::Python</code> handles argument passing between
Perl &lt;&#8594; Python, references to complex Perl objects do not reach Python
properly and they can&#8217;t be used.</p>
</div>
</div>
<div class="sect2">
<h3 id="_example_perl_test_modules">Example Perl test modules</h3>
Expand Down Expand Up @@ -12379,7 +12388,7 @@ <h3 id="_developing_tests_with_container_setup">Developing tests with container
</div>
<div id="footer">
<div id="footer-text">
Last updated 2023-10-21 02:22:52 UTC
Last updated 2023-10-24 02:23:10 UTC
</div>
</div>
</body>
Expand Down

0 comments on commit ad013e0

Please sign in to comment.