From 4fb323f69c11557a51c7da0b2031029f63edf789 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 11 Jun 2022 00:00:27 +0200 Subject: feat: Handle 404 result Now gracefully handle 404, so instead of just panic now it will return a proper http 404 response. --- tests/test_blog.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_blog.rs') diff --git a/tests/test_blog.rs b/tests/test_blog.rs index b72f800..6cd3249 100644 --- a/tests/test_blog.rs +++ b/tests/test_blog.rs @@ -1,4 +1,5 @@ use macroblog::blog::*; +use macroblog::assets::*; use chrono::NaiveDate; @@ -17,7 +18,7 @@ fn test_create_blog_entry() { #[test] fn test_read_assets() { // This test meant to test if all files are parsed correctly - let assets = BlogEntry::read_assets(); + let assets = read_assets(); assert!(assets.iter().count() > 1) } -- cgit v1.2.3