Skip to content

Commit

Permalink
update stub
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Sep 7, 2023
1 parent e984dde commit b54c0d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/models/bot/alegre_3_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,8 @@ def self.extract_project_medias_from_context(search_result)
pm1 = create_project_media team: @team, media: create_uploaded_audio
pm2 = create_project_media team: @team, media: create_uploaded_audio
pm3 = create_project_media team: @team, media: create_uploaded_audio
Bot::Alegre.stubs(:request_api).with('get', '/audio/similarity/', @params, 'body').returns({
params = {:url => nil, :context => {:has_custom_id => true, :team_id => @team.id}, :match_across_content_types => true, :threshold => 0.9}
Bot::Alegre.stubs(:request_api).with('get', '/audio/similarity/', params, 'body').returns({
result: [
{
id: 1,
Expand Down

0 comments on commit b54c0d0

Please sign in to comment.