filemap: fix broken test
This commit is contained in:
parent
9ba2fe31f5
commit
1b06c2c5be
2 changed files with 5 additions and 4 deletions
|
@ -21,7 +21,8 @@ from creds import COOKIE
|
||||||
|
|
||||||
def add_campaign():
|
def add_campaign():
|
||||||
"""Add campaign"""
|
"""Add campaign"""
|
||||||
url = "http://localhost:7000/admin/api/v1/campaign/add"
|
# url = "http://localhost:7000/admin/api/v1/campaign/add"
|
||||||
|
url = "https://survey.mcaptcha.org/admin/api/v1/campaign/add"
|
||||||
payload = json.dumps(
|
payload = json.dumps(
|
||||||
{
|
{
|
||||||
"name": "test_1",
|
"name": "test_1",
|
||||||
|
|
|
@ -39,8 +39,8 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn filemap_works() {
|
fn filemap_works() {
|
||||||
let files = super::FileMap::new();
|
let files = super::FileMap::new();
|
||||||
let css = files.get("./static/cache/img/logo.svg").unwrap();
|
let logo = files.get("./static/cache/img/icon-trans.png").unwrap();
|
||||||
println!("{}", css);
|
println!("{}", logo);
|
||||||
assert!(css.contains("/assets/img/logo"));
|
assert!(logo.contains("/assets/img/icon-trans"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue