Skip to content

Commit

Permalink
Improve fixture / folder name lists
Browse files Browse the repository at this point in the history
  • Loading branch information
smheidrich committed Oct 9, 2022
1 parent 0f91303 commit c1c9ba0
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 12 deletions.
45 changes: 36 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ to packaged data files than grains of sand on Earth. Here I compare them all.
</tr>
<tr>
<td>
<a href="https://pypi.org/project/pytest-datadir/">pytest-datadir</a>
<a href="https://pypi.org/project/pytest-datadir/">
pytest-datadir
</a>
</td>
<td>
Expand All @@ -28,15 +30,23 @@ to packaged data files than grains of sand on Earth. Here I compare them all.
pathlib.Path
</td>
<td>
`datadir`, `shared_datadir`
<ul>
<li><code>datadir</code></li>
<li><code>shared_datadir</code></li>
</ul>
</td>
<td>
`data`, `test_TEST_NAME`
<ul>
<li><code>data</code></li>
<li><code>test_TEST_NAME</code></li>
</ul>
</td>
</tr>
<tr>
<td>
<a href="https://pypi.org/project/pytest-datadir-ng/">pytest-datadir-ng</a>
<a href="https://pypi.org/project/pytest-datadir-ng/">
pytest-datadir-ng
</a>
</td>
<td>
Expand All @@ -48,15 +58,24 @@ to packaged data files than grains of sand on Earth. Here I compare them all.
py.path
</td>
<td>
`datadir`, `datadir_copy`
<ul>
<li><code>datadir</code></li>
<li><code>datadir_copy</code></li>
</ul>
</td>
<td>
`data`, `data/test_TEST_NAME`, `test_TEST_NAME`
<ul>
<li><code>data</code></li>
<li><code>data/test_TEST_NAME</code></li>
<li><code>test_TEST_NAME</code></li>
</ul>
</td>
</tr>
<tr>
<td>
<a href="https://pypi.org/project/pytest-datafixtures/">pytest-datafixtures</a>
<a href="https://pypi.org/project/pytest-datafixtures/">
pytest-datafixtures
</a>
</td>
<td>
Expand All @@ -68,10 +87,18 @@ to packaged data files than grains of sand on Earth. Here I compare them all.
pathlib.Path
</td>
<td>
`datafix`, `datafix_dir`, `datafix_read`, `datafix_readbin`
<ul>
<li><code>datafix</code></li>
<li><code>datafix_dir</code></li>
<li><code>datafix_read</code></li>
<li><code>datafix_readbin</code></li>
</ul>
</td>
<td>
`datafixtures`, `**/datafixtures`
<ul>
<li><code>datafixtures</code></li>
<li><code>**/datafixtures</code></li>
</ul>
</td>
</tr>
</table>
Expand Down
16 changes: 13 additions & 3 deletions README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ to packaged data files than grains of sand on Earth. Here I compare them all.
{%- for plugin in plugins %}
<tr>
<td>
<a href="{{ plugin.pypi_url }}">{{ plugin.name }}</a>
<a href="{{ plugin.pypi_url }}">
{{ plugin.name }}
</a>
</td>
<td>
{% if plugin.supports_copying_to_temp %}✔{% else %}❌{% endif %}
Expand All @@ -29,10 +31,18 @@ to packaged data files than grains of sand on Earth. Here I compare them all.
{{ plugin.provided_as }}
</td>
<td>
{{ plugin.fixture_names|map('tojson')|join(', ')|replace('"', '`') }}
<ul>
{%- for fixture_name in plugin.fixture_names %}
<li><code>{{ fixture_name }}</code></li>
{%- endfor %}
</ul>
</td>
<td>
{{ plugin.folder_names|map('tojson')|join(', ')|replace('"', '`') }}
<ul>
{%- for folder_name in plugin.folder_names %}
<li><code>{{ folder_name }}</code></li>
{%- endfor %}
</ul>
</td>
</tr>
{%- endfor %}
Expand Down

0 comments on commit c1c9ba0

Please sign in to comment.