Commit a756bcdc authored by Fabian Affolter's avatar Fabian Affolter Committed by Philipp Arras
Browse files

python313Packages.locust-cloud: enable tests

parent fa73a6ee
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
@@ -10,7 +10,11 @@
  python-engineio,
  python-socketio,
  requests,
  gevent-websocket,
  tomli,
  flask,
  requests-mock,
  pytestCheckHook,
}:

buildPythonPackage rec {
@@ -40,8 +44,33 @@ buildPythonPackage rec {
    tomli
  ];

  nativeCheckInputs = [
    flask
    gevent-websocket
    pytestCheckHook
    requests-mock
  ];

  pythonImportsCheck = [ "locust_cloud" ];

  preCheck = ''
    export LOCUSTCLOUD_USERNAME=dummy
    export LOCUSTCLOUD_PASSWORD=dummy
  '';

  disabledTests = [
    # AssertionError
    "test_recursive_imports"
    "test_from_import_file"
  ];

  disabledTestPaths = [
    # Tests require network access
    "tests/web_login_test.py"
    "tests/cloud_test.py"
    "tests/websocket_test.py"
  ];

  meta = {
    description = "Hosted version of Locust to run distributed load tests";
    homepage = "https://github.com/locustcloud/locust-cloud";