Skip to content

Commit

Permalink
deploy: 764dd5b
Browse files Browse the repository at this point in the history
  • Loading branch information
tfcollins committed Aug 16, 2024
1 parent 6ca0073 commit aed4755
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
1 change: 1 addition & 0 deletions main/dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ <h3>Test Functions and Fixtures<a class="headerlink" href="#test-functions-and-f
<li class="toctree-l2"><a class="reference internal" href="test_attr.html#test.attr_tests.attribute_multiple_values"><code class="docutils literal notranslate"><span class="pre">attribute_multiple_values()</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="test_attr.html#test.attr_tests.attribute_multiple_values_available_readonly"><code class="docutils literal notranslate"><span class="pre">attribute_multiple_values_available_readonly()</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="test_attr.html#test.attr_tests.attribute_multiple_values_device_channel"><code class="docutils literal notranslate"><span class="pre">attribute_multiple_values_device_channel()</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="test_attr.html#test.attr_tests.attribute_multiple_values_error"><code class="docutils literal notranslate"><span class="pre">attribute_multiple_values_error()</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="test_attr.html#test.attr_tests.attribute_multiple_values_with_depends"><code class="docutils literal notranslate"><span class="pre">attribute_multiple_values_with_depends()</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="test_attr.html#test.attr_tests.attribute_readonly_with_depends"><code class="docutils literal notranslate"><span class="pre">attribute_readonly_with_depends()</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="test_attr.html#test.attr_tests.attribute_single_value"><code class="docutils literal notranslate"><span class="pre">attribute_single_value()</span></code></a></li>
Expand Down
30 changes: 30 additions & 0 deletions main/dev/test_attr.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
<li><a class="reference internal" href="#test.attr_tests.attribute_multiple_values"><code class="docutils literal notranslate"><span class="pre">attribute_multiple_values()</span></code></a></li>
<li><a class="reference internal" href="#test.attr_tests.attribute_multiple_values_available_readonly"><code class="docutils literal notranslate"><span class="pre">attribute_multiple_values_available_readonly()</span></code></a></li>
<li><a class="reference internal" href="#test.attr_tests.attribute_multiple_values_device_channel"><code class="docutils literal notranslate"><span class="pre">attribute_multiple_values_device_channel()</span></code></a></li>
<li><a class="reference internal" href="#test.attr_tests.attribute_multiple_values_error"><code class="docutils literal notranslate"><span class="pre">attribute_multiple_values_error()</span></code></a></li>
<li><a class="reference internal" href="#test.attr_tests.attribute_multiple_values_with_depends"><code class="docutils literal notranslate"><span class="pre">attribute_multiple_values_with_depends()</span></code></a></li>
<li><a class="reference internal" href="#test.attr_tests.attribute_readonly_with_depends"><code class="docutils literal notranslate"><span class="pre">attribute_readonly_with_depends()</span></code></a></li>
<li><a class="reference internal" href="#test.attr_tests.attribute_single_value"><code class="docutils literal notranslate"><span class="pre">attribute_single_value()</span></code></a></li>
Expand Down Expand Up @@ -449,6 +450,35 @@ <h1>Attribute Tests<a class="headerlink" href="#attribute-tests" title="Permalin
</dl>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="test.attr_tests.attribute_multiple_values_error">
<span class="sig-prename descclassname"><span class="pre">test.attr_tests.</span></span><span class="sig-name descname"><span class="pre">attribute_multiple_values_error</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">uri</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">classname</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">attr</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">values</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tol</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">repeats</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sleep</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sub_channel</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#test.attr_tests.attribute_multiple_values_error" title="Permalink to this definition">#</a></dt>
<dd><p>attribute_multiple_values_error: Write multiple class properties
in a loop where all values are pre-defined and expected to raise an error.
This is performed a defined number of times.</p>
<dl class="simple">
<dt>parameters:</dt><dd><dl class="simple">
<dt>uri: type=string</dt><dd><p>URI of IIO context of target board/system</p>
</dd>
<dt>classname: type=string</dt><dd><p>Name of pyadi interface class which contain attribute</p>
</dd>
<dt>attr: type=string</dt><dd><p>Attribute name to be written. Must be property of classname</p>
</dd>
<dt>values: type=list</dt><dd><p>A list of values to write and check as attributes</p>
</dd>
<dt>tol: type=integer</dt><dd><p>Allowable error of written value compared to read back value</p>
</dd>
<dt>repeats: type=integer</dt><dd><p>Number of times to repeatedly write values</p>
</dd>
<dt>sleep: type=integer</dt><dd><p>Seconds to sleep between writing to attribute and reading it back</p>
</dd>
<dt>sub_channel: type=string</dt><dd><p>Name of sub channel (nested class) to be tested</p>
</dd>
</dl>
</dd>
</dl>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="test.attr_tests.attribute_multiple_values_with_depends">
<span class="sig-prename descclassname"><span class="pre">test.attr_tests.</span></span><span class="sig-name descname"><span class="pre">attribute_multiple_values_with_depends</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">uri</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">classname</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">attr</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">depends</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">values</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tol</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">repeats</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">1</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#test.attr_tests.attribute_multiple_values_with_depends" title="Permalink to this definition">#</a></dt>
Expand Down
2 changes: 2 additions & 0 deletions main/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -1896,6 +1896,8 @@ <h2 id="A">A</h2>
<li><a href="dev/test_attr.html#test.attr_tests.attribute_multiple_values_available_readonly">attribute_multiple_values_available_readonly() (in module test.attr_tests)</a>
</li>
<li><a href="dev/test_attr.html#test.attr_tests.attribute_multiple_values_device_channel">attribute_multiple_values_device_channel() (in module test.attr_tests)</a>
</li>
<li><a href="dev/test_attr.html#test.attr_tests.attribute_multiple_values_error">attribute_multiple_values_error() (in module test.attr_tests)</a>
</li>
<li><a href="dev/test_attr.html#test.attr_tests.attribute_multiple_values_with_depends">attribute_multiple_values_with_depends() (in module test.attr_tests)</a>
</li>
Expand Down
Binary file modified main/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion main/searchindex.js

Large diffs are not rendered by default.

0 comments on commit aed4755

Please sign in to comment.