Re #308 - Adding test and including settings in clone operation (#309)

This commit is contained in:
dgtlmoon
2021-12-15 19:54:30 +01:00
committed by GitHub
parent dd450b81ad
commit 35d0c74454
3 changed files with 49 additions and 4 deletions

View File

@@ -0,0 +1,30 @@
#!/usr/bin/python3
import time
from flask import url_for
from . util import live_server_setup
def test_trigger_functionality(client, live_server):
live_server_setup(live_server)
# Give the endpoint time to spin up
time.sleep(1)
# Add our URL to the import page
res = client.post(
url_for("import_page"),
data={"urls": "https://changedetection.io"},
follow_redirects=True
)
assert b"1 Imported" in res.data
res = client.get(
url_for("api_clone", uuid="first"),
follow_redirects=True
)
assert b"Cloned." in res.data