Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
fixed test

fixed tests
  • Loading branch information
Ducica committed Nov 20, 2024
1 parent b3a91f9 commit 4a8cfaf
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
Binary file modified oarepo_requests/translations/cs/LC_MESSAGES/messages.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion oarepo_requests/translations/cs/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ msgstr "Ponechat soubory v nové verzi?"

#: /home/dusanst/Projects/oarepo-requests/oarepo_requests/types/edit_record.py:19
msgid "Edit metadata"
msgstr ""
msgstr "Upravit metadata"

#: /home/dusanst/Projects/oarepo-requests/oarepo_requests/types/new_version.py:50
msgid "Keep files:"
Expand Down
Binary file modified oarepo_requests/translations/messages.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion oarepo_requests/translations/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-11-20 10:09+0100\n"
"POT-Creation-Date: 2024-11-20 11:59+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,12 @@ def test_ui_serialization(
}
},
"description": "Request re-opening of published record",
"name": "Edit record",
"name": "Edit metadata",
"dangerous": False,
"editable": False,
"has_form": False,
"stateful_description": "Click to start editing the metadata of the record.",
"stateful_name": "Edit record",
"stateful_name": "Edit metadata",
},
{
"type_id": "new_version",
Expand Down
3 changes: 2 additions & 1 deletion tests/test_ui/test_ui_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_record_delete_request_present(
"create": f"https://127.0.0.1:5000/api/thesis/{topic['id']}/requests/edit_published_record"
}
},
"name": "Edit record",
"name": "Edit metadata",
}
assert data["creatable_request_types"]["delete_published_record"] == {
"description": "Request deletion of published record",
Expand Down Expand Up @@ -94,6 +94,7 @@ def test_request_detail_page(
assert c.status_code == 200
print(c.text)


def test_form_config(app, client, record_ui_resource, fake_manifest):
with client.get("/requests/configs/publish_draft") as c:
assert c.json == {
Expand Down

0 comments on commit 4a8cfaf

Please sign in to comment.