<commit_before>require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper.rb'))

class FetchTrailersWithExpansionEnabled < Test::Unit::TestCase
  def setup
    register_api_url_stubs
  end
  
  test "find with expansion enabled should return trailers" do
    movie = TmdbMovie.find(:id => 187)
    assert_not_nil movie.trailers
    assert_equal movie.trailers[0].source, 'SUXWAEX2jlg'
  end
end<commit_msg>Added test for trailers when expand_results is false.<commit_after>require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper.rb'))

class FetchTrailersWithExpansionEnabled < Test::Unit::TestCase
  def setup
    register_api_url_stubs
  end
  
  test "find with expansion enabled should return trailers" do
    movie = TmdbMovie.find(:id => 187)
    assert_not_nil movie.trailers
    assert_equal movie.trailers[0].source, 'SUXWAEX2jlg'
  end

  test "find without expansion enabled should not return trailers" do
    movie = TmdbMovie.find :id => 187, expand_results: false
    assert_nil movie.trailers
  end
end
{'fraction_non_alphanumeric': 0.09168241965973535, 'fraction_numerical': 0.012287334593572778, 'mean_word_length': 4.724324324324324, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7586321', 'n_tokens_mistral': 356, 'n_tokens_neox': 331, 'n_words': 83}