def test_get_lang(): from lawyerup.core import get_lang path = "/path/to/test.py" expected = "unix" assert get_lang(path) == expected
def test_get_lang_dotfile(): from lawyerup.core import get_lang path = "/path/to/.dotfile" with pytest.raises(IndexError): get_lang(path)
def test_get_lang_no_ext(): from lawyerup.core import get_lang path = "/path/to/no-extension" with pytest.raises(IndexError): get_lang(path)
def test_get_lang(): from lawyerup.core import get_lang path = '/path/to/test.py' expected = 'unix' assert get_lang(path) == expected
def test_get_lang_dotfile(): from lawyerup.core import get_lang path = '/path/to/.dotfile' with pytest.raises(IndexError): get_lang(path)
def test_get_lang_no_ext(): from lawyerup.core import get_lang path = '/path/to/no-extension' with pytest.raises(IndexError): get_lang(path)