Skip to content

Commit 349c749

Browse files
authored
Merge pull request #38 from meaningfy-ws/feature/DIF-24_leftover-plurals
Remove some leftover crude pluralization
2 parents 8810a0c + e1533af commit 349c749

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dqgen/resources/asciidoc_templates/instance.jinja2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
{% call mc.render_fetch_results(content, error) %}
88
{% set compress_uris = simplify_uri_columns_in_tabular(data_frame=content,namespace_inventory=namespaces,error_fail=False) %}
99
{% endraw %}
10-
=== {{ operation|title }} {{ class_name }}s
11-
{{ "{{" }} mc.pandas_table(content, "{{ operation|title }} {{ class_name }}s") {{ "}}" }}
10+
=== {{ operation|title }} {{ class_name }}
11+
{{ "{{" }} mc.pandas_table(content, "{{ operation|title }} {{ class_name }}") {{ "}}" }}
1212
{% raw %}
1313
{% endcall %}
1414
{% endif %}

dqgen/resources/html_templates/instance.jinja2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
{% call mc.render_fetch_results(content, error) %}
88
{% set compress_uris = simplify_uri_columns_in_tabular(data_frame=content,namespace_inventory=namespaces,error_fail=False) %}
99
{% endraw %}
10-
<h2 class="ui header">{{ operation|title }} {{ class_name }}s</h2>
10+
<h2 class="ui header">{{ operation|title }} {{ class_name }}</h2>
1111
<section class="ui basic segment">
1212
<p>The table below lists the {{ operation }} <strong>{{ cls }}</strong>
1313
</p>
1414
<p><strong>Query identifier:</strong> {{ query_file }}</p>
15-
{{ "{{" }} mc.pandas_table(content, "{{ operation|title }} {{ class_name }}s") {{ "}}" }}
15+
{{ "{{" }} mc.pandas_table(content, "{{ operation|title }} {{ class_name }}") {{ "}}" }}
1616
</section>
1717
{% raw %}
1818
{% endcall %}

tests/unit/test_asciidoc_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
def test_instance_asciidoc_generator(tmp_path):
15-
expected_text = """== Added concepts"""
15+
expected_text = """== Added concept"""
1616
asciidoc_generator = AsciiDocGenerator(cls="skos:Concept", operation="added_instance", class_name="concept",
1717
output_folder_path=str(tmp_path),
1818
template=ASCII_DOC_TEMPLATES.get_template("instance.jinja2"))

tests/unit/test_html_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
def test_instance_html_generator(tmp_path):
15-
expected_text = """<h2 class="ui header">Added concepts</h2>"""
15+
expected_text = """<h2 class="ui header">Added concept</h2>"""
1616
html_generator = HtmlGenerator(cls="skos:Concept", operation="added_instance", class_name="concept",
1717
output_folder_path=str(tmp_path),
1818
template=HTML_TEMPLATES.get_template("instance.jinja2"))

0 commit comments

Comments
 (0)