Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Add end-to-end tests, many options combinations, using inline-snapshot #157

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
2 changes: 2 additions & 0 deletions config/.inline-snapshot/external/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ignore all snapshots which are not refered in the source
*-new.*
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--
{
"filters": [],
"inherited_members": true,
"members": [],
"members_order": "alphabetical"
}
-->

<div class="doc doc-object doc-module">
<a id="pkg">
</a>
<div class="doc doc-contents first">
<div class="doc doc-children">
</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--
{
"filters": [],
"inherited_members": true,
"members": false,
"members_order": "source"
}
-->

<div class="doc doc-object doc-module">
<a id="pkg">
</a>
<div class="doc doc-contents first">
<div class="doc doc-children">
</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!--
{
"filters": [
"!a"
],
"inherited_members": true,
"members": [],
"members_order": "source"
}
-->

<div class="doc doc-object doc-module">
<a id="pkg">
</a>
<div class="doc doc-contents first">
<div class="doc doc-children">
</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<!--
{
"filters": [
"a"
],
"inherited_members": true,
"members": null,
"members_order": "source"
}
-->

<div class="doc doc-object doc-module">
<a id="pkg">
</a>
<div class="doc doc-contents first">
<div class="doc doc-children">
<div class="doc doc-object doc-attribute">
<h2 class="doc doc-heading" id="pkg.baz">
<code class="highlight language-python">
<span class="n">
baz
</span>
<span class="p">
:
</span>
<span class="nb">
int
</span>
<span class="o">
=
</span>
<span class="mi">
42
</span>
</code>
<span class="doc doc-labels">
<small class="doc doc-label doc-label-module-attribute">
<code>
module-attribute
</code>
</small>
</span>
</h2>
<div class="doc doc-contents">
<p>
Docstring for
<code>
baz
</code>
.
</p>
</div>
</div>
<div class="doc doc-object doc-class">
<h2 class="doc doc-heading" id="pkg.Bar">
<code>
Bar
</code>
</h2>
<div class="doc doc-contents">
<p>
Docstring for
<code>
Bar
</code>
.
</p>
<details class="quote">
<summary>
Source code in
<code>
pkg/__init__.py
</code>
</summary>
<div class="highlight">
<table class="highlighttable">
<tr>
<td class="linenos">
<div class="linenodiv">
<pre><span></span><span class="normal"> 5</span>
<span class="normal"> 6</span>
<span class="normal"> 7</span>
<span class="normal"> 8</span>
<span class="normal"> 9</span>
<span class="normal">10</span>
<span class="normal">11</span>
<span class="normal">12</span>
<span class="normal">13</span>
<span class="normal">14</span></pre>
</div>
</td>
<td class="code">
<div>
<pre><span></span><code><span class="k">class</span> <span class="nc">Bar</span><span class="p">:</span>
<span class="w"> </span><span class="sd">'''Docstring for `Bar`.'''</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">a</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span> <span class="n">b</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">'''Docstring for `Bar.__init__`.'''</span>
<span class="bp">self</span><span class="o">.</span><span class="n">c</span> <span class="o">=</span> <span class="n">a</span> <span class="o">+</span> <span class="n">b</span>
<span class="w"> </span><span class="sd">'''Docstring for `Bar.c`.'''</span>

<span class="k">def</span> <span class="nf">foo</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">a</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span> <span class="n">b</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">'''Docstring.'''</span>
</code></pre>
</div>
</td>
</tr>
</table>
</div>
</details>
<div class="doc doc-children">
</div>
</div>
</div>
</div>
</div>
</div>
Loading
Loading