Skip to content

Commit

Permalink
add failing integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
rosecodym committed Aug 29, 2024
1 parent 4970796 commit ea6f5b1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/sources/github/github_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,24 @@ func TestSource_Chunks_TargetedScan(t *testing.T) {
},
wantChunks: 1,
},
{
name: "targeted scan, binary file",
init: init{
name: "test source",
connection: &sourcespb.GitHub{Credential: &sourcespb.GitHub_Unauthenticated{}},
queryCriteria: &source_metadatapb.MetaData{
Data: &source_metadatapb.MetaData_Github{
Github: &source_metadatapb.Github{
Repository: "https://github.com/google/prompt-to-prompt.git",
Link: "https://github.com/google/prompt-to-prompt/blob/160965d6d4a54ce93eac183371625fe2f8446c10/null_text_w_ptp.ipynb",
Commit: "160965d6d4a54ce93eac183371625fe2f8446c10",
File: "null_text_w_ptp.ipynb",
},
},
},
},
wantChunks: 1,
},
{
name: "no file in commit",
init: init{
Expand Down

0 comments on commit ea6f5b1

Please sign in to comment.