<commit_before>(ns text-stream.handler-test
  (:require [clojure.test :refer :all]
            [ring.mock.request :as mock]
            [text-stream.handler :refer :all]))

(deftest test-app
  (testing "main route"
    (let [response (app (mock/request :get "/"))]
      (is (= (:status response) 200))))

  (testing "not-found route"
    (let [response (app (mock/request :get "/invalid"))]
      (is (= (:status response) 404)))))
<commit_msg>name change to web-routes test<commit_after>(ns text-stream.handler-test
  (:require [clojure.test :refer :all]
            [ring.mock.request :as mock]
            [text-stream.handler :refer :all]))

(deftest web-routes
  (testing "main route"
    (let [response (app (mock/request :get "/"))]
      (is (= (:status response) 200))))

  (testing "not-found route"
    (let [response (app (mock/request :get "/invalid"))]
      (is (= (:status response) 404)))))

{'fraction_non_alphanumeric': 0.1793179317931793, 'fraction_numerical': 0.013201320132013201, 'mean_word_length': 3.099099099099099, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4131773', 'n_tokens_mistral': 315, 'n_tokens_neox': 296, 'n_words': 82}