ttrss: Add backup support

- Use backup hooks to dump and restore database.
- Add functional test for backup and restore.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2019-02-26 15:23:47 -08:00
1 parent 8a60581f3d
commit 1eed7d581d
6 files changed
+123 -2

No files matched your search

+15
View File
@@ -240,3 +240,18 @@ def syncthing_assert_folder_present(browser, folder_name):
@then(parsers.parse('syncthing folder {folder_name:w} should not be present'))
def syncthing_assert_folder_not_present(browser, folder_name):
assert not site.syncthing_folder_is_present(browser, folder_name)
@given('I subscribe to a feed')
def ttrss_subscribe(browser):
site.ttrss_subscribe(browser)
@when('I unsubscribe from the feed')
def ttrss_unsubscribe(browser):
site.ttrss_unsubscribe(browser)
@then('I should be subscribed to the feed')
def ttrss_assert_subscribed(browser):
assert site.ttrss_is_subscribed(browser)