-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add integration testing #4
Changes from all commits
e6d9537
7d4ea0e
bbf12b9
0bc7db9
11530db
35fbed4
d0689b0
c48956b
0b177db
cd0dfcb
901f0d5
1bc27f1
91c885c
099b0d9
86a9db2
bde2ba9
df10f7b
bba2160
6998156
8323919
0de0350
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ impl Config { | |
source_tag, | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
mod list_indexes; | ||
|
||
pub use list_indexes::*; | ||
pub use list_indexes::*; | ||
Check warning on line 3 in pinecone_sdk/src/control/mod.rs GitHub Actions / test (ubuntu-latest, stable)
Check warning on line 3 in pinecone_sdk/src/control/mod.rs GitHub Actions / test (ubuntu-latest, stable)
Check warning on line 3 in pinecone_sdk/src/control/mod.rs GitHub Actions / test (ubuntu-latest, stable)
Check warning on line 3 in pinecone_sdk/src/control/mod.rs GitHub Actions / test (ubuntu-latest, stable)
Check warning on line 3 in pinecone_sdk/src/control/mod.rs GitHub Actions / test (ubuntu-latest, stable)
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pub mod config; | ||
pub mod control; | ||
pub mod pinecone; | ||
pub mod utils; | ||
pub mod utils; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pub mod errors; | ||
pub mod user_agent; | ||
pub mod user_agent; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use pinecone_sdk::pinecone::Pinecone; | ||
|
||
#[tokio::test] | ||
async fn test_list_serverless_index_env() { | ||
let pinecone = Pinecone::new(None, None, None, None).unwrap(); | ||
let list_response = pinecone.list_indexes().await; | ||
|
||
assert!(list_response.is_ok()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could agree on a set of style rules or use the same formatter so we don't have these diffs in all our PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's a good idea. I'm not sure of what the standard is here, do we look at using
std::fmt
? https://doc.rust-lang.org/std/fmt/