Commit 47cde419 authored by Sigmanificient's avatar Sigmanificient
Browse files

python3Packages.disnake: enable tests

parent a19c7fce
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -7,6 +7,9 @@
  typing-extensions,
  libopus,
  pynacl,
  pytestCheckHook,
  pytest-asyncio,
  looptime,
  withVoice ? true,
  ffmpeg,
}:
@@ -42,8 +45,16 @@ buildPythonPackage rec {
      --replace-fail 'executable: str = "ffmpeg"' 'executable: str="${ffmpeg}/bin/ffmpeg"'
  '';

  # Only have integration tests with discord
  doCheck = false;
  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
    looptime
  ];

  pytestFlags = [
    # DeprecationWarning: There is no current event loop
    "-Wignore::DeprecationWarning"
  ];

  pythonImportsCheck = [
    "disnake"