-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bcba81
commit f435539
Showing
11 changed files
with
197 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 24734863feda8b621d8b2b07eeb297d3 | ||
config: e23d5ffcccfe60d3b77e3bf85eeb0727 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
|
||
|
||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" data-content_root="../../../../"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>tests.matrixctl.handlers.conftest — MatrixCtl 0.12.0 documentation</title> | ||
<link rel="stylesheet" type="text/css" href="../../../../_static/pygments.css?v=80d5e7a1" /> | ||
<link rel="stylesheet" type="text/css" href="../../../../_static/css/theme.css?v=e59714d7" /> | ||
<link rel="stylesheet" type="text/css" href="../../../../_static/graphviz.css?v=fd3f3429" /> | ||
|
||
|
||
<script src="../../../../_static/jquery.js?v=5d32c60e"></script> | ||
<script src="../../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> | ||
<script src="../../../../_static/documentation_options.js?v=61ccb1f1"></script> | ||
<script src="../../../../_static/doctools.js?v=9a2dae69"></script> | ||
<script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../../../../_static/js/theme.js"></script> | ||
<link rel="index" title="Index" href="../../../../genindex.html" /> | ||
<link rel="search" title="Search" href="../../../../search.html" /> | ||
</head> | ||
|
||
<body class="wy-body-for-nav"> | ||
<div class="wy-grid-for-nav"> | ||
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> | ||
<div class="wy-side-scroll"> | ||
<div class="wy-side-nav-search" > | ||
|
||
|
||
|
||
<a href="../../../../index.html" class="icon icon-home"> | ||
MatrixCtl | ||
</a> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get"> | ||
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> | ||
<input type="hidden" name="check_keywords" value="yes" /> | ||
<input type="hidden" name="area" value="default" /> | ||
</form> | ||
</div> | ||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> | ||
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../installation.html">Installation</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../getting_started/index.html">Getting Started</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../contributer_documentation/index.html">Contributor Documentation</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../changelog.html">Changelog</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../../changelog.html#changelog-deprecated">Changelog (deprecated)</a></li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > | ||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> | ||
<a href="../../../../index.html">MatrixCtl</a> | ||
</nav> | ||
|
||
<div class="wy-nav-content"> | ||
<div class="rst-content"> | ||
<div role="navigation" aria-label="Page navigation"> | ||
<ul class="wy-breadcrumbs"> | ||
<li><a href="../../../../index.html" class="icon icon-home" aria-label="Home"></a></li> | ||
<li class="breadcrumb-item"><a href="../../../index.html">Module code</a></li> | ||
<li class="breadcrumb-item active">tests.matrixctl.handlers.conftest</li> | ||
<li class="wy-breadcrumbs-aside"> | ||
</li> | ||
</ul> | ||
<hr/> | ||
</div> | ||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div itemprop="articleBody"> | ||
|
||
<h1>Source code for tests.matrixctl.handlers.conftest</h1><div class="highlight"><pre> | ||
<span></span><span class="c1"># matrixctl</span> | ||
<span class="c1"># Copyright (c) 2021-2023 Michael Sasser <[email protected]></span> | ||
<span class="c1">#</span> | ||
<span class="c1"># This program is free software: you can redistribute it and/or modify</span> | ||
<span class="c1"># it under the terms of the GNU General Public License as published by</span> | ||
<span class="c1"># the Free Software Foundation, either version 3 of the License, or</span> | ||
<span class="c1"># (at your option) any later version.</span> | ||
<span class="c1">#</span> | ||
<span class="c1"># This program is distributed in the hope that it will be useful,</span> | ||
<span class="c1"># but WITHOUT ANY WARRANTY; without even the implied warranty of</span> | ||
<span class="c1"># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> | ||
<span class="c1"># GNU General Public License for more details.</span> | ||
<span class="c1">#</span> | ||
<span class="c1"># You should have received a copy of the GNU General Public License</span> | ||
<span class="c1"># along with this program. If not, see <http://www.gnu.org/licenses/>.</span> | ||
|
||
<span class="sd">"""Create handler fixtures for testing."""</span> | ||
|
||
<span class="kn">from</span> <span class="nn">__future__</span> <span class="kn">import</span> <span class="n">annotations</span> | ||
|
||
<span class="kn">from</span> <span class="nn">pathlib</span> <span class="kn">import</span> <span class="n">Path</span> | ||
|
||
<span class="kn">import</span> <span class="nn">pytest</span> | ||
|
||
<span class="kn">from</span> <span class="nn">matrixctl.handlers.yaml</span> <span class="kn">import</span> <span class="n">YAML</span> | ||
|
||
|
||
<span class="n">__author__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">"Michael Sasser"</span> | ||
<span class="n">__email__</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">"[email protected]"</span> | ||
|
||
|
||
<div class="viewcode-block" id="yaml"> | ||
<a class="viewcode-back" href="../../../../contributer_documentation/tests.html#tests.matrixctl.handlers.conftest.yaml">[docs]</a> | ||
<span class="nd">@pytest</span><span class="o">.</span><span class="n">fixture</span><span class="p">(</span><span class="n">scope</span><span class="o">=</span><span class="s2">"session"</span><span class="p">,</span> <span class="n">autouse</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> | ||
<span class="k">def</span> <span class="nf">yaml</span><span class="p">()</span> <span class="o">-></span> <span class="n">YAML</span><span class="p">:</span> | ||
<span class="w"> </span><span class="sd">"""Create a fixture for the YAML class."""</span> | ||
<span class="c1"># Setup</span> | ||
<span class="n">yaml_</span><span class="p">:</span> <span class="n">YAML</span> <span class="o">=</span> <span class="n">YAML</span><span class="p">({</span><span class="n">Path</span><span class="p">(</span><span class="s2">"tests/matrixctl/handlers/configs/config.yaml"</span><span class="p">)})</span> | ||
|
||
<span class="c1"># Exercise - None</span> | ||
|
||
<span class="c1"># Verify - None</span> | ||
|
||
<span class="c1"># Cleanup -None</span> | ||
<span class="k">return</span> <span class="n">yaml_</span></div> | ||
|
||
|
||
|
||
<span class="c1"># vim: set ft=python :</span> | ||
</pre></div> | ||
|
||
</div> | ||
</div> | ||
<footer> | ||
|
||
<hr/> | ||
|
||
<div role="contentinfo"> | ||
<p>© Copyright 2024, Michael Sasser.</p> | ||
</div> | ||
|
||
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a | ||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> | ||
provided by <a href="https://readthedocs.org">Read the Docs</a>. | ||
|
||
|
||
</footer> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
<script> | ||
jQuery(function () { | ||
SphinxRtdTheme.Navigation.enable(true); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.