filemap: fix broken test

This commit is contained in:
Aravinth Manivannan 2021-10-14 22:08:34 +05:30
parent 9ba2fe31f5
commit 1b06c2c5be
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 5 additions and 4 deletions

View file

@ -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",

View file

@ -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"));
}
}