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(): 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",

View file

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