<commit_before>require_relative '../test_helper'

##
# Tests on live API
#
# If a test fails, please check the online results to make sure it's not
# the content itself that has changed.
#
class ArtistLivetest < Test::Unit::TestCase
  def test_find_by_name
    # http://www.metal-archives.com/bands/Alquimia/3540361100
    artist = MetalArchives::Artist.find_by_name('Alquimia', 3540361100)

    assert_equal 'Alquimia', artist.name
    assert_equal 'Grado, Asturias', artist.location
    assert_equal :active, artist.status
    assert_equal Date.new(2013), artist.date_formed
    assert_equal ['Melodic Power'], artist.genres
    assert_equal ['Epic', 'Legends', 'Medieval'].sort, artist.themes.sort
  end
end<commit_msg>Country test<commit_after>require_relative '../test_helper'

##
# Tests on live API
#
# If a test fails, please check the online results to make sure it's not
# the content itself that has changed.
#
class ArtistLivetest < Test::Unit::TestCase
  def test_find_by_name
    # http://www.metal-archives.com/bands/Alquimia/3540361100
    artist = MetalArchives::Artist.find_by_name('Alquimia', 3540361100)

    assert_equal 'Alquimia', artist.name
    assert_equal ISO3166::Country['ES'], artist.country
    assert_equal 'Grado, Asturias', artist.location
    assert_equal :active, artist.status
    assert_equal Date.new(2013), artist.date_formed
    assert_equal ['Melodic Power'], artist.genres
    assert_equal ['Epic', 'Legends', 'Medieval'].sort, artist.themes.sort
  end
end
{'fraction_non_alphanumeric': 0.11074049366244162, 'fraction_numerical': 0.03468979319546364, 'mean_word_length': 4.681818181818182, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6486329', 'n_tokens_mistral': 526, 'n_tokens_neox': 481, 'n_words': 121}