first pass of merging in warp (doesn't build)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use super::*;
|
||||
use anyhow::anyhow;
|
||||
use chrono::{TimeZone, Utc};
|
||||
|
||||
use super::*;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use crate::ai::artifact_download::default_download_filename;
|
||||
use crate::server::server_api::ai::{
|
||||
@@ -151,6 +151,17 @@ fn default_download_filename_falls_back_to_artifact_uid_with_extension() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "local_fs")]
|
||||
fn download_success_message_includes_filename_and_directory() {
|
||||
use std::path::Path;
|
||||
|
||||
assert_eq!(
|
||||
download_success_message("report.csv", Path::new("/Users/me/Downloads")),
|
||||
"report.csv was downloaded to /Users/me/Downloads."
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn converts_graphql_file_artifact() {
|
||||
let artifact = Artifact::try_from(galaxy_graphql::ai::AIConversationArtifact::FileArtifact(
|
||||
|
||||
Reference in New Issue
Block a user