Commit 5152f722 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python312Packages.textual-textarea: disable failing tests

parent e4588588
Loading
Loading
Loading
Loading
+14 −3
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
  # tests
  pytestCheckHook,
  pytest-asyncio,
  tree-sitter-python,
}:

buildPythonPackage rec {
@@ -46,17 +47,27 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
    tree-sitter-python
  ];

  pythonImportsCheck = [ "textual_textarea" ];

  disabledTestPaths = [
  pytestFlagsArray = [
    # "--deselect=tests/functional_tests/test_comments.py::test_comments[sql--- ]"
  ];

  disabledTests = [
    # Requires unpackaged tree-sitter-sql
    #  textual.widgets._text_area.LanguageDoesNotExist
    "test_comments"

    # AssertionError: assert Selection(sta...), end=(0, 6)) == Selection(sta...), end=(1, 0))
    # https://github.com/tconbeer/textual-textarea/issues/296
    "tests/functional_tests/test_textarea.py"
    "test_keys"
  ];

  meta = {
    description = "A text area (multi-line input) with syntax highlighting for Textual";
    description = "Text area (multi-line input) with syntax highlighting for Textual";
    homepage = "https://github.com/tconbeer/textual-textarea";
    changelog = "https://github.com/tconbeer/textual-textarea/releases/tag/v${version}";
    license = lib.licenses.mit;