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():
|
||||
"""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(
|
||||
{
|
||||
"name": "test_1",
|
||||
|
|
|
@ -39,8 +39,8 @@ mod tests {
|
|||
#[test]
|
||||
fn filemap_works() {
|
||||
let files = super::FileMap::new();
|
||||
let css = files.get("./static/cache/img/logo.svg").unwrap();
|
||||
println!("{}", css);
|
||||
assert!(css.contains("/assets/img/logo"));
|
||||
let logo = files.get("./static/cache/img/icon-trans.png").unwrap();
|
||||
println!("{}", logo);
|
||||
assert!(logo.contains("/assets/img/icon-trans"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue