Skip to content

Commit

Permalink
deploy: 060d4e9
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarons committed Feb 24, 2024
1 parent eb0cf24 commit 0a1cf4d
Show file tree
Hide file tree
Showing 10 changed files with 178 additions and 115 deletions.
14 changes: 7 additions & 7 deletions test-coverage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ <h1>Coverage report:
<tfoot>
<tr class="total">
<td class="name left">Total</td>
<td>870</td>
<td>907</td>
<td>0</td>
<td>0</td>
<td class="right" data-ratio="870 870">100%</td>
<td class="right" data-ratio="907 907">100%</td>
</tr>
</tfoot>
<tbody>
Expand All @@ -69,10 +69,10 @@ <h1>Coverage report:
</tr>
<tr class="file">
<td class="name left"><a href="src_config_parser_py.html">src/config_parser.py</a></td>
<td>212</td>
<td>226</td>
<td>0</td>
<td>0</td>
<td class="right" data-ratio="212 212">100%</td>
<td class="right" data-ratio="226 226">100%</td>
</tr>
<tr class="file">
<td class="name left"><a href="src_email_message_py.html">src/email_message.py</a></td>
Expand All @@ -83,10 +83,10 @@ <h1>Coverage report:
</tr>
<tr class="file">
<td class="name left"><a href="src_notify_py.html">src/notify.py</a></td>
<td>68</td>
<td>91</td>
<td>0</td>
<td>0</td>
<td class="right" data-ratio="68 68">100%</td>
<td class="right" data-ratio="91 91">100%</td>
</tr>
<tr class="file">
<td class="name left"><a href="src_sync_py.html">src/sync.py</a></td>
Expand Down Expand Up @@ -126,7 +126,7 @@ <h1>Coverage report:
<div class="content">
<p>
<a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
created at 2024-02-23 16:41 +0000
created at 2024-02-24 16:06 +0000
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion test-coverage/src___init___py.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ <h2 class="stats">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
created at 2024-02-23 16:41 +0000
created at 2024-02-24 16:06 +0000
</p>
</div>
</div>
Expand Down
34 changes: 31 additions & 3 deletions test-coverage/src_config_parser_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ <h1>Coverage for <b>src/config_parser.py</b> :
</h1>
<img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
<h2 class="stats">
212 statements &nbsp;
<button type="button" class="run shortkey_r button_toggle_run" title="Toggle lines run">212 run</button>
226 statements &nbsp;
<button type="button" class="run shortkey_r button_toggle_run" title="Toggle lines run">226 run</button>
<button type="button" class="mis show_mis shortkey_m button_toggle_mis" title="Toggle lines missing">0 missing</button>
<button type="button" class="exc show_exc shortkey_x button_toggle_exc" title="Toggle lines excluded">0 excluded</button>
</h2>
Expand Down Expand Up @@ -472,12 +472,40 @@ <h2 class="stats">
<p id="t418" class="pln"><span class="n"><a href="#t418">418</a></span><span class="t"> <span class="key">else</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t419" class="run"><span class="n"><a href="#t419">419</a></span><span class="t"> <span class="nam">chat_id</span> <span class="op">=</span> <span class="nam">get_config_value</span><span class="op">(</span><span class="nam">config</span><span class="op">=</span><span class="nam">config</span><span class="op">,</span> <span class="nam">config_path</span><span class="op">=</span><span class="nam">config_path</span><span class="op">)</span>&nbsp;</span><span class="r"></span></p>
<p id="t420" class="run"><span class="n"><a href="#t420">420</a></span><span class="t"> <span class="key">return</span> <span class="nam">chat_id</span>&nbsp;</span><span class="r"></span></p>
<p id="t421" class="pln"><span class="n"><a href="#t421">421</a></span><span class="t">&nbsp;</span><span class="r"></span></p>
<p id="t422" class="pln"><span class="n"><a href="#t422">422</a></span><span class="t">&nbsp;</span><span class="r"></span></p>
<p id="t423" class="pln"><span class="n"><a href="#t423">423</a></span><span class="t"><span class="com"># Get discord webhook_url</span>&nbsp;</span><span class="r"></span></p>
<p id="t424" class="run"><span class="n"><a href="#t424">424</a></span><span class="t"><span class="key">def</span> <span class="nam">get_discord_webhook_url</span><span class="op">(</span><span class="nam">config</span><span class="op">)</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t425" class="pln"><span class="n"><a href="#t425">425</a></span><span class="t"> <span class="str">"""Return discord webhook_url from config."""</span>&nbsp;</span><span class="r"></span></p>
<p id="t426" class="run"><span class="n"><a href="#t426">426</a></span><span class="t"> <span class="nam">webhook_url</span> <span class="op">=</span> <span class="key">None</span>&nbsp;</span><span class="r"></span></p>
<p id="t427" class="run"><span class="n"><a href="#t427">427</a></span><span class="t"> <span class="nam">config_path</span> <span class="op">=</span> <span class="op">[</span><span class="str">"app"</span><span class="op">,</span> <span class="str">"discord"</span><span class="op">,</span> <span class="str">"webhook_url"</span><span class="op">]</span>&nbsp;</span><span class="r"></span></p>
<p id="t428" class="run"><span class="n"><a href="#t428">428</a></span><span class="t"> <span class="key">if</span> <span class="key">not</span> <span class="nam">traverse_config_path</span><span class="op">(</span><span class="nam">config</span><span class="op">=</span><span class="nam">config</span><span class="op">,</span> <span class="nam">config_path</span><span class="op">=</span><span class="nam">config_path</span><span class="op">)</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t429" class="run"><span class="n"><a href="#t429">429</a></span><span class="t"> <span class="nam">LOGGER</span><span class="op">.</span><span class="nam">warning</span><span class="op">(</span>&nbsp;</span><span class="r"></span></p>
<p id="t430" class="pln"><span class="n"><a href="#t430">430</a></span><span class="t"> <span class="str">f"Warning: webhook_url is not found in {config_path_to_string(config_path)}."</span>&nbsp;</span><span class="r"></span></p>
<p id="t431" class="pln"><span class="n"><a href="#t431">431</a></span><span class="t"> <span class="op">)</span>&nbsp;</span><span class="r"></span></p>
<p id="t432" class="pln"><span class="n"><a href="#t432">432</a></span><span class="t"> <span class="key">else</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t433" class="run"><span class="n"><a href="#t433">433</a></span><span class="t"> <span class="nam">webhook_url</span> <span class="op">=</span> <span class="nam">get_config_value</span><span class="op">(</span><span class="nam">config</span><span class="op">=</span><span class="nam">config</span><span class="op">,</span> <span class="nam">config_path</span><span class="op">=</span><span class="nam">config_path</span><span class="op">)</span>&nbsp;</span><span class="r"></span></p>
<p id="t434" class="run"><span class="n"><a href="#t434">434</a></span><span class="t"> <span class="key">return</span> <span class="nam">webhook_url</span>&nbsp;</span><span class="r"></span></p>
<p id="t435" class="pln"><span class="n"><a href="#t435">435</a></span><span class="t">&nbsp;</span><span class="r"></span></p>
<p id="t436" class="pln"><span class="n"><a href="#t436">436</a></span><span class="t">&nbsp;</span><span class="r"></span></p>
<p id="t437" class="pln"><span class="n"><a href="#t437">437</a></span><span class="t"><span class="com"># Get discord username</span>&nbsp;</span><span class="r"></span></p>
<p id="t438" class="run"><span class="n"><a href="#t438">438</a></span><span class="t"><span class="key">def</span> <span class="nam">get_discord_username</span><span class="op">(</span><span class="nam">config</span><span class="op">)</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t439" class="pln"><span class="n"><a href="#t439">439</a></span><span class="t"> <span class="str">"""Return discord username from config."""</span>&nbsp;</span><span class="r"></span></p>
<p id="t440" class="run"><span class="n"><a href="#t440">440</a></span><span class="t"> <span class="nam">username</span> <span class="op">=</span> <span class="key">None</span>&nbsp;</span><span class="r"></span></p>
<p id="t441" class="run"><span class="n"><a href="#t441">441</a></span><span class="t"> <span class="nam">config_path</span> <span class="op">=</span> <span class="op">[</span><span class="str">"app"</span><span class="op">,</span> <span class="str">"discord"</span><span class="op">,</span> <span class="str">"username"</span><span class="op">]</span>&nbsp;</span><span class="r"></span></p>
<p id="t442" class="run"><span class="n"><a href="#t442">442</a></span><span class="t"> <span class="key">if</span> <span class="key">not</span> <span class="nam">traverse_config_path</span><span class="op">(</span><span class="nam">config</span><span class="op">=</span><span class="nam">config</span><span class="op">,</span> <span class="nam">config_path</span><span class="op">=</span><span class="nam">config_path</span><span class="op">)</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t443" class="run"><span class="n"><a href="#t443">443</a></span><span class="t"> <span class="nam">LOGGER</span><span class="op">.</span><span class="nam">warning</span><span class="op">(</span>&nbsp;</span><span class="r"></span></p>
<p id="t444" class="pln"><span class="n"><a href="#t444">444</a></span><span class="t"> <span class="str">f"Warning: username is not found in {config_path_to_string(config_path)}."</span>&nbsp;</span><span class="r"></span></p>
<p id="t445" class="pln"><span class="n"><a href="#t445">445</a></span><span class="t"> <span class="op">)</span>&nbsp;</span><span class="r"></span></p>
<p id="t446" class="pln"><span class="n"><a href="#t446">446</a></span><span class="t"> <span class="key">else</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t447" class="run"><span class="n"><a href="#t447">447</a></span><span class="t"> <span class="nam">username</span> <span class="op">=</span> <span class="nam">get_config_value</span><span class="op">(</span><span class="nam">config</span><span class="op">=</span><span class="nam">config</span><span class="op">,</span> <span class="nam">config_path</span><span class="op">=</span><span class="nam">config_path</span><span class="op">)</span>&nbsp;</span><span class="r"></span></p>
<p id="t448" class="run"><span class="n"><a href="#t448">448</a></span><span class="t"> <span class="key">return</span> <span class="nam">username</span>&nbsp;</span><span class="r"></span></p>
</div>
<div id="footer">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
created at 2024-02-23 16:41 +0000
created at 2024-02-24 16:06 +0000
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion test-coverage/src_email_message_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h2 class="stats">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
created at 2024-02-23 16:41 +0000
created at 2024-02-24 16:06 +0000
</p>
</div>
</div>
Expand Down
Loading

0 comments on commit 0a1cf4d

Please sign in to comment.