fix tests

This commit is contained in:
Cadey Ratio 2020-07-26 23:05:22 -04:00
parent 972252e5b7
commit 1442b69c88
3 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
--- ---
title: RSS/Atom Feeds Fixed and Announcing my Flight Journal title: RSS/Atom Feeds Fixed and Announcing my Flight Journal
date: 07-26-2020 date: 2020-07-26
tags: tags:
- gemini - gemini
--- ---
@ -13,10 +13,8 @@ in the feed, but I will bring it back as soon as possible.
Victory badges: Victory badges:
[![Valid Atom [![Valid Atom Feed](https://validator.w3.org/feed/images/valid-atom.png)](/blog.atom)
Feed](https://validator.w3.org/feed/images/valid-atom.png)](/blog.atom) [![Valid RSS Feed](https://validator.w3.org/feed/images/valid-rss-rogers.png)](/blog.rss)
[![Valid RSS
Feed](https://validator.w3.org/feed/images/valid-rss-rogers.png)](/blog.rss)
Thanks to [W3Schools](https://www.w3schools.com/XML/xml_rss.asp) for having a Thanks to [W3Schools](https://www.w3schools.com/XML/xml_rss.asp) for having a
minimal example of an RSS feed and [this Flickr minimal example of an RSS feed and [this Flickr

View File

@ -148,6 +148,7 @@ mod tests {
use anyhow::Result; use anyhow::Result;
#[tokio::test] #[tokio::test]
async fn init() -> Result<()> { async fn init() -> Result<()> {
let _ = pretty_env_logger::try_init();
super::init("./config.dhall".into()).await?; super::init("./config.dhall".into()).await?;
Ok(()) Ok(())
} }

View File

@ -111,18 +111,21 @@ mod tests {
#[test] #[test]
fn blog() -> Result<()> { fn blog() -> Result<()> {
let _ = pretty_env_logger::try_init();
load("blog")?; load("blog")?;
Ok(()) Ok(())
} }
#[test] #[test]
fn gallery() -> Result<()> { fn gallery() -> Result<()> {
let _ = pretty_env_logger::try_init();
load("gallery")?; load("gallery")?;
Ok(()) Ok(())
} }
#[test] #[test]
fn talks() -> Result<()> { fn talks() -> Result<()> {
let _ = pretty_env_logger::try_init();
load("talks")?; load("talks")?;
Ok(()) Ok(())
} }