diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -114,8 +114,10 @@ mod tests { let token = { if let Some(token) = std::env::var("NOTION_API_TOKEN").ok() { token + } else if let Some(token) = std::fs::read_to_string(".api_token").ok() { + token } else { - include_str!(".api_token").to_string() + panic!("No API Token found in environment variable 'NOTION_API_TOKEN'!") } }; token.trim().to_string() |