use steam_rs::Steam; mod common; #[test] pub fn get_trade_history() { async_test!(async { let steam = Steam::new(&std::env::var("STEAM_API_KEY").expect("Missing an API key")); steam .get_trade_history(10, 0, 0, false, true, "english", true, true) .await .unwrap(); }); } #[test] pub fn get_trade_offers() { async_test!(async { let steam = Steam::new(&std::env::var("STEAM_API_KEY").expect("Missing an API key")); steam .get_trade_offers(true, true, true, "english", false, false, 10000) .await .unwrap(); }); } #[test] pub fn get_trade_offer() { async_test!(async { let steam = Steam::new(&std::env::var("STEAM_API_KEY").expect("Missing an API key")); steam.get_trade_offer(6271878669, "english").await.unwrap(); }); } #[test] pub fn get_trade_offers_summary() { async_test!(async { let steam = Steam::new(&std::env::var("STEAM_API_KEY").expect("Missing an API key")); steam.get_trade_offers_summary(0).await.unwrap(); }); }