Skip to content

Commit

Permalink
Minor updates (#440)
Browse files Browse the repository at this point in the history
* Remove now obsolete command
* Minor copy editing: use FediTest not Feditest
---------

Co-authored-by: Johannes Ernst <[email protected]>
  • Loading branch information
jernst and Johannes Ernst authored Dec 20, 2024
1 parent c74a6d5 commit b577639
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 47 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Feditest: test federated protocols such as those in the Fediverse
# `feditest`: test federated protocols such as those in the Fediverse

This repo contains:

Expand Down
35 changes: 0 additions & 35 deletions src/feditest/cli/commands/list-templates.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/feditest/protocols/sandbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, a: float, b: float, c: float):

class SandboxMultServer(Node):
"""
This is a "Server" Node in a to-be-tested toy protocol. It is only useful to illustrate how Feditest works.
This is a "Server" Node in a to-be-tested toy protocol. It is only useful to illustrate how FediTest works.
"""
def mult(self, a: float, b: float) -> float:
"""
Expand All @@ -46,7 +46,7 @@ def get_and_clear_log(self) -> List[SandboxLogEvent]:

class SandboxMultClient(Node):
"""
This is a "Client" Node in a to-be-tested toy protocol. It is only useful to illustrate how Feditest works.
This is a "Client" Node in a to-be-tested toy protocol. It is only useful to illustrate how FediTest works.
"""
def cause_mult(self, server: SandboxMultServer, a: float, b: float) -> float:
"""
Expand Down
2 changes: 1 addition & 1 deletion src/feditest/testruntranscriptserializer/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _derive_full_and_local_filename(base: str, suffix: str) -> tuple[str,str]:

class HtmlRunTranscriptSerializer(TestRunTranscriptSerializer):
"""
Generates the Feditest reports as HTML.
Generates the FediTest reports as HTML.
If the transcript contains one session, it will generate one HTML file to the provided destination.
If the transcript contains multiple sessions, it will generate one HTML file per session and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<html lang="en">
<head>
{% include "partials/shared/head.jinja2" %}
<title>{{ transcript | e }} ({{ transcript.id }}) | Feditest</title>
<title>{{ transcript | e }} ({{ transcript.id }}) | FediTest</title>
</head>
<body>
<header class="feditest title">
<h1><span class="prefix"><a href="https://feditest.org/">Feditest</a>:</span> {{ transcript | e }}</h1>
<h1><span class="prefix"><a href="https://feditest.org/">FediTest</a>:</span> {{ transcript | e }}</h1>
<p class="id">{{ transcript.id }}</p>
</header>
{% include "partials/shared/mobile.jinja2" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{%- endif %}
{%- endfor %}
<tr>
<th>Feditest&nbsp;version</th>
<th>FediTest&nbsp;version</th>
<td>{{ getattr(transcript, 'feditest_version') | e }}</td>
</tr>
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{%- endif %}
{%- endfor %}
<tr>
<th>Feditest&nbsp;version</th>
<th>FediTest&nbsp;version</th>
<td>{{ getattr(transcript, 'feditest_version') }}</td>
</tr>
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<html lang="en">
<head>
{% include "partials/shared/head.jinja2" %}
<title>{{ transcript.plan.name | e }} | Feditest</title>
<title>{{ transcript.plan.name | e }} | FediTest</title>
</head>
<body>
<header class="feditest title">
<h1><span class="prefix"><a href="https://feditest.org/">Feditest</a> Report:</span> {{ transcript.plan.name | e }}</h1>
<h1><span class="prefix"><a href="https://feditest.org/">FediTest</a> Report:</span> {{ transcript.plan.name | e }}</h1>
<p class="id">{{ transcript.id }}</p>
</header>
{% include "partials/shared/mobile.jinja2" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<html lang="en">
<head>
{% include "partials/shared/head.jinja2" %}
<title>{{ run_session | e }} ({{ transcript.id }}) | Feditest</title>
<title>{{ run_session | e }} ({{ transcript.id }}) | FediTest</title>
</head>
<body>
<header class="feditest title" style="text-align: center">
<h1><span class="prefix"><a href="https://feditest.org/">Feditest</a>:</span> {{ run_session | e }}</h1>
<h1><span class="prefix"><a href="https://feditest.org/">FediTest</a>:</span> {{ run_session | e }}</h1>
<p class="id">{{ transcript.id }} <a href="{{ matrix_file_path }}">&#x21e7;</a></p>
</header>
{% include "partials/shared/mobile.jinja2" %}
Expand Down

0 comments on commit b577639

Please sign in to comment.