mirror of
https://github.com/akuker/RASCSI.git
synced 2026-04-21 02:17:25 +00:00
Add capabilities to get and render manpage output in the Web UI (#881)
- class method to get arbitrary file contents - new web UI endpoint to fetch the contents of rascsi man pages (rendered txt files) - Link to manpage in page footer - Link to new wiki page for image type docs - Other UI tweaks
This commit is contained in:
@@ -95,3 +95,11 @@ def test_create_image_with_properties_file(http_client, delete_file):
|
||||
|
||||
# Cleanup
|
||||
delete_file(file_name)
|
||||
|
||||
# route("/sys/manpage", methods=["POST"])
|
||||
def test_show_manpage(http_client):
|
||||
response = http_client.get("/sys/manpage?app=rascsi")
|
||||
response_data = response.json()
|
||||
|
||||
assert response.status_code == 200
|
||||
assert "rascsi" in response_data["data"]["manpage"]
|
||||
|
||||
Reference in New Issue
Block a user