Skip to content

Commit

Permalink
Less flakey export tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Nov 26, 2024
1 parent fa3cdcd commit 17c91d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/models/language_model/export_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class LanguageModel::ExportTest < ActiveSupport::TestCase
model = user.language_models.find_by(api_name:)
models = [{
api_name:,
name: "new name",
name: "new model name",
supports_images: false,
supports_tools: true,
input_token_cost_cents: 0.1234,
Expand All @@ -96,7 +96,7 @@ class LanguageModel::ExportTest < ActiveSupport::TestCase
LanguageModel.import_from_file(path:, users: [user])
end
model.reload
assert_equal "new name", model.name
assert_equal "new model name", model.name
assert_equal false, model.supports_images
assert_equal true, model.supports_tools
assert_equal 0.1234, model.input_token_cost_cents
Expand Down

0 comments on commit 17c91d3

Please sign in to comment.