"""A short message that cannot be a person's name is not guessed to be one.

Live (manager, 2026-10-13): "current temperature in Delhi", "hii" and
"dsdsfdsfsd" all went to the employee search - "No matching employee" with
the team roster, or "More than one team member matches that name" when
erp-api's fuzzy search matched the keyboard mash. Each is answered on its own
terms now: the guess is never made, so the classifier reads the message as
what it is.
"""
import pytest

import services.classify_node as classify_node


@pytest.mark.parametrize("query", [
    "current temperature in Delhi", "weather in mumbai", "who won the match",
    "capital of france", "stock price of tcs", "tell me a joke", "latest news in india",
    "hii", "hiii", "heyy", "helloo", "hlo", "good morning",
    "dsdsfdsfsd", "asdfgh", "qwerty", "xcvbnm", "aaaaaa",
])
def test_not_a_name(query):
    assert classify_node._is_bare_person_fragment(query, False) is False


@pytest.mark.parametrize("query", [
    "Dileep Anumula", "dileep", "geo3", "Ananya", "abctest", "A Emp", "a khan test",
    "Arshdeep", "Ayush Jio", "TUS2",
])
def test_names_still_are(query):
    assert classify_node._is_bare_person_fragment(query, False) is True


@pytest.mark.parametrize("query", ["weather in mumbai", "hii", "dsdsfdsfsd", "good morning"])
def test_not_a_name_under_the_regularization_list_either(query):
    assert not classify_node._is_regularisation_approval_followup(
        query, "manager_regularisation_view", False)
