<commit_before>require 'test_helper'

class StockTest < ActiveSupport::TestCase
  # test "the truth" do
  #   assert true
  # end
end<commit_msg>add stock test criteria<commit_after>require 'test_helper'

class StockTest < ActiveSupport::TestCase
  def setup
    @watchlist = watchlists(:watchlist1)
    @stock = @watchlist.stocks.build(symbol: "TSLA", company_name: "Tesla Motor")
  end

  # test criteria
  # symbol must be valid and present
  # symbol must be upper case
  # company_name must be valid and present
  # stock must belong to watchlist id
  # watchlist id must be present
end
{'fraction_non_alphanumeric': 0.077834179357022, 'fraction_numerical': 0.001692047377326565, 'mean_word_length': 4.285714285714286, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2819361', 'n_tokens_mistral': 179, 'n_tokens_neox': 176, 'n_words': 62}