Unverified Commit df8c8b2e authored by Nate Smith's avatar Nate Smith
Browse files

aider-chat: skip version check in tests

aider checks for a new version and prompts for an install on each
launch. These prompts cause checks to fail on the package whenever a new
version of the application is released.

Skip those version checks and include some dependencies missing from the
dependency check.
parent c960ba48
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ python3.pkgs.buildPythonApplication {
      numpy
      packaging
      pathspec
      pexpect
      pillow
      playwright
      prompt-toolkit
@@ -93,6 +94,8 @@ python3.pkgs.buildPythonApplication {
      "test_browser_flag_imports_streamlit"
      # AttributeError
      "test_simple_send_with_retries"
      # Expected 'check_version' to have been called once
      "test_main_exit_calls_version_check"
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      # Tests fails on darwin
@@ -102,6 +105,7 @@ python3.pkgs.buildPythonApplication {

  preCheck = ''
    export HOME=$(mktemp -d)
    export AIDER_CHECK_UPDATE=false
  '';

  meta = {