<commit_before>require 'test_helper'

class UriHandlerTest < Minitest::Test

  def test_get_api_uri
    base_uri = 'http://my.prestashop.com'
    expected_uri = URI.parse 'http://my.prestashop.com/api/'
    api_uri = Prestashopper::UriHandler.api_uri base_uri
    assert_equal api_uri, expected_uri
  end
end<commit_msg>Added test.<commit_after>require 'test_helper'

class UriHandlerTest < Minitest::Test

  def test_get_api_uri
    base_uri = 'http://my.prestashop.com'
    expected_uri = URI.parse 'http://my.prestashop.com/api/'
    api_uri = Prestashopper::UriHandler.api_uri base_uri
    assert_equal api_uri, expected_uri
  end

  def test_get_api_uri_with_path
    base_uri = 'http://my.prestashop.com/prestashop'
    expected_uri = URI.parse 'http://my.prestashop.com/prestashop/api/'
    api_uri = Prestashopper::UriHandler.api_uri base_uri
    assert_equal api_uri, expected_uri
  end
end
{'fraction_non_alphanumeric': 0.10122358175750834, 'fraction_numerical': 0.0, 'mean_word_length': 4.325443786982248, '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': '2610570', 'n_tokens_mistral': 335, 'n_tokens_neox': 329, 'n_words': 54}