Add ihsoyct as pushshift api

This commit is contained in:
gongchandang49 2025-03-23 20:49:36 +01:00 committed by GitHub
parent cbc3e49923
commit 921b999ded
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -267,8 +267,8 @@ fn test_default_filters() {
#[test]
#[sealed_test]
fn test_pushshift() {
let config_to_write = r#"REDLIB_PUSHSHIFT_FRONTEND = "https://api.pushshift.io""#;
let config_to_write = r#"REDLIB_PUSHSHIFT_FRONTEND = "https://ihsoyct.github.io""#;
write("redlib.toml", config_to_write).unwrap();
assert!(get_setting("REDLIB_PUSHSHIFT_FRONTEND").is_some());
assert_eq!(get_setting("REDLIB_PUSHSHIFT_FRONTEND"), Some("https://api.pushshift.io".into()));
assert_eq!(get_setting("REDLIB_PUSHSHIFT_FRONTEND"), Some("https://ihsoyct.github.io".into()));
}