diff --git "a/data/python/02d7747.json" "b/data/python/02d7747.json" new file mode 100644--- /dev/null +++ "b/data/python/02d7747.json" @@ -0,0 +1 @@ +{"language": "Python", "id": 174, "repo_owner": "rq", "repo_name": "rq", "head_branch": "feature/batch-jobs", "workflow_name": "Test", "workflow_filename": "workflow.yml", "workflow_path": ".github/workflows/workflow.yml", "contributor": "eswolinsky3241", "sha_fail": "02d77473094a05997ff7014683fe5c2241891046", "sha_success": "71680118c27717d15d0bb5b11f77e439389b5aca", "workflow": "name: Test\n\non:\n push:\n branches: [ master ]\n pull_request:\n branches: [ master ]\n\npermissions:\n contents: read # to fetch code (actions/checkout)\n\njobs:\n ssl-test:\n name: Run SSL tests\n runs-on: ubuntu-20.04\n steps:\n - uses: actions/checkout@v3\n - name: Build the Docker test image for tox\n uses: docker/build-push-action@v4\n with:\n file: tests/Dockerfile\n tags: rqtest-image:latest\n push: false\n - name: Launch tox SSL env only (will only run SSL specific tests)\n uses: addnab/docker-run-action@v3\n with:\n image: rqtest-image:latest\n run: stunnel & redis-server & RUN_SSL_TESTS=1 hatch run tox run -e ssl\n\n test:\n name: Python${{ matrix.python-version }}/Redis${{ matrix.redis-version }}/redis-py${{ matrix.redis-py-version }}\n runs-on: ubuntu-20.04\n timeout-minutes: 10\n strategy:\n matrix:\n python-version: [\"3.7\", \"3.8\", \"3.9\", \"3.10\", \"3.11\"]\n redis-version: [4, 5, 6, 7]\n redis-py-version: [3.5.0]\n\n steps:\n - uses: actions/checkout@v3\n\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v4.7.1\n with:\n python-version: ${{ matrix.python-version }}\n\n - name: Start Redis\n uses: supercharge/redis-github-action@1.7.0\n with:\n redis-version: ${{ matrix.redis-version }}\n\n - name: Install dependencies\n run: |\n python -m pip install --upgrade pip\n pip install hatch\n pip install redis==${{ matrix.redis-py-version }}\n\n - name: Test with pytest\n run: |\n RUN_SLOW_TESTS_TOO=1 hatch run test:cov --durations=5\n\n - name: Upload coverage to Codecov\n uses: codecov/codecov-action@v3\n with:\n file: ./coverage.xml\n fail_ci_if_error: false\n", "logs": [{"step_name": "Python3.8Redis4redis-py3.5.0/7_Test with pytest.txt", "log": "##[group]Run RUN_SLOW_TESTS_TOO=1 hatch run test:cov --durations=5\n\u001b[36;1mRUN_SLOW_TESTS_TOO=1 hatch run test:cov --durations=5\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n##[endgroup]\nCreating environment: test\nInstalling project in development mode\nChecking dependencies\nSyncing dependencies\n============================= test session starts ==============================\nplatform linux -- Python 3.8.18, pytest-7.4.4, pluggy-1.3.0\nrootdir: /home/runner/work/rq/rq\nplugins: cov-4.1.0\ncollected 428 items\n\ntests/test_callbacks.py ............. [ 3%]\ntests/test_cli.py ...................................... [ 11%]\ntests/test_commands.py ... [ 12%]\ntests/test_connection.py .... [ 13%]\ntests/test_decorator.py ............... [ 17%]\ntests/test_dependencies.py ......... [ 19%]\ntests/test_executions.py ......... [ 21%]\ntests/test_fixtures.py .. [ 21%]\ntests/test_group.py FFFFFFFFFFFFF [ 24%]\ntests/test_helpers.py . [ 25%]\ntests/test_job.py s..................................................... [ 37%]\n.......................... [ 43%]\ntests/test_maintenance.py s [ 43%]\ntests/test_queue.py .........s...............................s.......... [ 56%]\n [ 56%]\ntests/test_registry.py ............................ [ 62%]\ntests/test_results.py sssssssssssss [ 65%]\ntests/test_retry.py ...... [ 67%]\ntests/test_scheduler.py .................s...... [ 72%]\ntests/test_sentry.py ... [ 73%]\ntests/test_serializers.py . [ 73%]\ntests/test_timeouts.py . [ 73%]\ntests/test_utils.py ................. [ 77%]\ntests/test_worker.py ....................................s.............. [ 89%]\n..s.............................. [ 97%]\ntests/test_worker_pool.py ....... [ 99%]\ntests/test_worker_registration.py .... [100%]\n\n=================================== FAILURES ===================================\n___________________________ TestGroup.test_add_jobs ____________________________\n\nself = \n\n def test_add_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:44: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: __init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_all_returns_all_groups _____________________\n\nself = \n\n def test_all_returns_all_groups(self):\n q = Queue(connection=self.testconn)\n> group1 = Group.create(name=\"group1\", connection=self.testconn)\nE TypeError: create() got an unexpected keyword argument 'name'\n\ntests/test_group.py:132: TypeError\n_________________________ TestGroup.test_create_group __________________________\n\nself = \n\n def test_create_group(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:20: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: __init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n________________ TestGroup.test_deleted_jobs_removed_from_group ________________\n\nself = \n\n def test_deleted_jobs_removed_from_group(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:70: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: __init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n______________ TestGroup.test_empty_group_removed_from_group_list ______________\n\nself = \n\n @pytest.mark.slow\n def test_empty_group_removed_from_group_list(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:106: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: __init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n________________ TestGroup.test_expired_jobs_removed_from_group ________________\n\nself = \n\n @pytest.mark.slow\n def test_expired_jobs_removed_from_group(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:92: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: __init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n_______________ TestGroup.test_fetch_expired_group_raises_error ________________\n\nself = \n\n @pytest.mark.slow\n def test_fetch_expired_group_raises_error(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:119: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: __init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n__________________________ TestGroup.test_fetch_group __________________________\n\nself = \n\n def test_fetch_group(self):\n q = Queue(connection=self.testconn)\n> enqueued_group = Group.create(connection=self.testconn)\n\ntests/test_group.py:35: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: __init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n_________________________ TestGroup.test_get_group_key _________________________\n\nself = \n\n def test_get_group_key(self):\n> group = Group(name=\"foo\", connection=self.testconn)\n\ntests/test_group.py:127: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <[AttributeError(\"'Group' object has no attribute 'id'\") raised in repr()] Group object at 0x7efdaf2ec760>\nconnection = Redis>>\nname = 'foo'\n\n def __init__(self, connection: Redis, name: str = None):\n self.name = name if name else str(uuid4())\n self.connection = connection\n> self.key = '{0}{1}'.format(self.REDIS_GROUP_NAME_PREFIX, self.id)\nE AttributeError: 'Group' object has no attribute 'id'\n\nrq/group.py:23: AttributeError\n____________________ TestGroup.test_group_added_to_registry ____________________\n\nself = \n\n def test_group_added_to_registry(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:81: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: __init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_group_id_added_to_jobs _____________________\n\nself = \n\n def test_group_id_added_to_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:62: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: __init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n__________________________ TestGroup.test_group_jobs ___________________________\n\nself = \n\n def test_group_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:28: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: __init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_jobs_added_to_group_key ____________________\n\nself = \n\n def test_jobs_added_to_group_key(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:53: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: __init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n=============================== warnings summary ===============================\nrq/connections.py:35: 1 warning\ntests/test_cli.py: 31 warnings\ntests/test_connection.py: 3 warnings\n /home/runner/work/rq/rq/rq/connections.py:35: DeprecationWarning: The Connection context manager is deprecated. Use the `connection` parameter instead.\n warnings.warn(\n\nrq/connections.py:58: 1 warning\ntests/test_callbacks.py: 12 warnings\ntests/test_cli.py: 33 warnings\ntests/test_commands.py: 1 warning\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 1 warning\ntests/test_dependencies.py: 18 warnings\ntests/test_executions.py: 1 warning\ntests/test_fixtures.py: 1 warning\ntests/test_group.py: 1 warning\ntests/test_helpers.py: 1 warning\ntests/test_job.py: 1 warning\ntests/test_maintenance.py: 1 warning\ntests/test_queue.py: 2 warnings\ntests/test_registry.py: 8 warnings\ntests/test_retry.py: 1 warning\ntests/test_scheduler.py: 4 warnings\ntests/test_sentry.py: 2 warnings\ntests/test_timeouts.py: 4 warnings\ntests/test_utils.py: 1 warning\ntests/test_worker.py: 13 warnings\ntests/test_worker_registration.py: 1 warning\n /home/runner/work/rq/rq/rq/connections.py:58: DeprecationWarning: The `push_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\nrq/connections.py:72: 1 warning\ntests/test_callbacks.py: 12 warnings\ntests/test_cli.py: 33 warnings\ntests/test_commands.py: 1 warning\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 1 warning\ntests/test_dependencies.py: 18 warnings\ntests/test_executions.py: 1 warning\ntests/test_fixtures.py: 1 warning\ntests/test_group.py: 1 warning\ntests/test_helpers.py: 1 warning\ntests/test_job.py: 1 warning\ntests/test_maintenance.py: 1 warning\ntests/test_queue.py: 2 warnings\ntests/test_registry.py: 8 warnings\ntests/test_retry.py: 1 warning\ntests/test_scheduler.py: 4 warnings\ntests/test_sentry.py: 2 warnings\ntests/test_timeouts.py: 4 warnings\ntests/test_utils.py: 1 warning\ntests/test_worker.py: 13 warnings\ntests/test_worker_registration.py: 1 warning\n /home/runner/work/rq/rq/rq/connections.py:72: DeprecationWarning: The `pop_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_group.py:87\n /home/runner/work/rq/rq/tests/test_group.py:87: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/test_group.py:101\n /home/runner/work/rq/rq/tests/test_group.py:101: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/test_group.py:114\n /home/runner/work/rq/rq/tests/test_group.py:114: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/__init__.py:34\n /home/runner/work/rq/rq/tests/__init__.py:34: PytestUnknownMarkWarning: Unknown pytest.mark.ssl_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n f = pytest.mark.ssl_test(f)\n\ntests/__init__.py:29\n /home/runner/work/rq/rq/tests/__init__.py:29: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n f = pytest.mark.slow(f)\n\ntests/test_callbacks.py: 12 warnings\ntests/test_decorator.py: 1 warning\n /home/runner/work/rq/rq/rq/job.py:260: DeprecationWarning: Passing a string or function for `on_success` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py: 7 warnings\ntests/test_decorator.py: 3 warnings\ntests/test_job.py: 1 warning\n /home/runner/work/rq/rq/rq/job.py:270: DeprecationWarning: Passing a string or function for `on_failure` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_many_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::SyncJobCallback::test_stopped_callback\ntests/test_callbacks.py::JobCallbackTestCase::test_job_creation_with_stopped_callback\ntests/test_job.py::TestJob::test_persistence_of_callbacks\n /home/runner/work/rq/rq/rq/job.py:280: DeprecationWarning: Passing a string or function for `on_stopped` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py: 11 warnings\ntests/test_cli.py: 82 warnings\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 25 warnings\ntests/test_dependencies.py: 5 warnings\ntests/test_job.py: 107 warnings\ntests/test_queue.py: 82 warnings\ntests/test_registry.py: 2 warnings\ntests/test_retry.py: 2 warnings\ntests/test_worker.py: 164 warnings\ntests/test_worker_registration.py: 7 warnings\n /home/runner/work/rq/rq/rq/connections.py:108: DeprecationWarning: The `resolve_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_callbacks.py: 14 warnings\ntests/test_cli.py: 93 warnings\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 25 warnings\ntests/test_dependencies.py: 8 warnings\ntests/test_fixtures.py: 1 warning\ntests/test_job.py: 118 warnings\ntests/test_queue.py: 83 warnings\ntests/test_registry.py: 9 warnings\ntests/test_retry.py: 3 warnings\ntests/test_worker.py: 263 warnings\ntests/test_worker_registration.py: 53 warnings\n /home/runner/work/rq/rq/rq/connections.py:87: DeprecationWarning: The `get_current_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_callbacks.py: 2 warnings\ntests/test_cli.py: 3 warnings\ntests/test_dependencies.py: 1 warning\ntests/test_job.py: 6 warnings\ntests/test_worker.py: 13 warnings\n /home/runner/work/rq/rq/rq/job.py:874: DeprecationWarning: job.result is deprecated, use job.return_value instead.\n warnings.warn(\"job.result is deprecated, use job.return_value instead.\", DeprecationWarning)\n\ntests/test_callbacks.py: 2 warnings\ntests/test_job.py: 3 warnings\ntests/test_registry.py: 1 warning\ntests/test_timeouts.py: 1 warning\ntests/test_worker.py: 4 warnings\n /home/runner/work/rq/rq/rq/job.py:810: DeprecationWarning: job.exc_info is deprecated, use job.latest_result() instead.\n warnings.warn(\"job.exc_info is deprecated, use job.latest_result() instead.\", DeprecationWarning)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------- coverage: platform linux, python 3.8.18-final-0 -----------\nCoverage XML written to file coverage.xml\n\n============================= slowest 5 durations ==============================\n66.12s call tests/test_worker.py::WorkerShutdownTestCase::test_work_horse_force_death\n30.28s call tests/test_worker.py::TestRoundRobinWorker::test_round_robin\n30.28s call tests/test_worker.py::TestWorker::test_dequeue_random_strategy\n30.27s call tests/test_worker.py::TestWorker::test_dequeue_round_robin\n30.27s call tests/test_worker.py::TestRandomWorker::test_random_worker\n=========================== short test summary info ============================\nFAILED tests/test_group.py::TestGroup::test_add_jobs - TypeError: __init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_all_returns_all_groups - TypeError: create() got an unexpected keyword argument 'name'\nFAILED tests/test_group.py::TestGroup::test_create_group - TypeError: __init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_deleted_jobs_removed_from_group - TypeError: __init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_empty_group_removed_from_group_list - TypeError: __init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_expired_jobs_removed_from_group - TypeError: __init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_fetch_expired_group_raises_error - TypeError: __init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_fetch_group - TypeError: __init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_get_group_key - AttributeError: 'Group' object has no attribute 'id'\nFAILED tests/test_group.py::TestGroup::test_group_added_to_registry - TypeError: __init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_group_id_added_to_jobs - TypeError: __init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_group_jobs - TypeError: __init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_jobs_added_to_group_key - TypeError: __init__() got an unexpected keyword argument 'id'\n==== 13 failed, 395 passed, 20 skipped, 1496 warnings in 411.25s (0:06:51) =====\n##[error]Process completed with exit code 1.\n"}, {"step_name": "Python3.10Redis4redis-py3.5.0/7_Test with pytest.txt", "log": "##[group]Run RUN_SLOW_TESTS_TOO=1 hatch run test:cov --durations=5\n\u001b[36;1mRUN_SLOW_TESTS_TOO=1 hatch run test:cov --durations=5\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib\n##[endgroup]\nCreating environment: test\nInstalling project in development mode\nChecking dependencies\nSyncing dependencies\n============================= test session starts ==============================\nplatform linux -- Python 3.10.13, pytest-7.4.4, pluggy-1.3.0\nrootdir: /home/runner/work/rq/rq\nplugins: cov-4.1.0\ncollected 428 items\n\ntests/test_callbacks.py ............. [ 3%]\ntests/test_cli.py ...................................... [ 11%]\ntests/test_commands.py ... [ 12%]\ntests/test_connection.py .... [ 13%]\ntests/test_decorator.py ............... [ 17%]\ntests/test_dependencies.py ......... [ 19%]\ntests/test_executions.py ......... [ 21%]\ntests/test_fixtures.py .. [ 21%]\ntests/test_group.py FFFFFFFFFFFFF [ 24%]\ntests/test_helpers.py . [ 25%]\ntests/test_job.py s..................................................... [ 37%]\n.......................... [ 43%]\ntests/test_maintenance.py s [ 43%]\ntests/test_queue.py .........s...............................s.......... [ 56%]\n [ 56%]\ntests/test_registry.py ............................ [ 62%]\ntests/test_results.py sssssssssssss [ 65%]\ntests/test_retry.py ...... [ 67%]\ntests/test_scheduler.py .................s...... [ 72%]\ntests/test_sentry.py ... [ 73%]\ntests/test_serializers.py . [ 73%]\ntests/test_timeouts.py . [ 73%]\ntests/test_utils.py ................. [ 77%]\ntests/test_worker.py ....................................s.............. [ 89%]\n..s.............................. [ 97%]\ntests/test_worker_pool.py ....... [ 99%]\ntests/test_worker_registration.py .... [100%]\n\n=================================== FAILURES ===================================\n___________________________ TestGroup.test_add_jobs ____________________________\n\nself = \n\n def test_add_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:44: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_all_returns_all_groups _____________________\n\nself = \n\n def test_all_returns_all_groups(self):\n q = Queue(connection=self.testconn)\n> group1 = Group.create(name=\"group1\", connection=self.testconn)\nE TypeError: Group.create() got an unexpected keyword argument 'name'\n\ntests/test_group.py:132: TypeError\n_________________________ TestGroup.test_create_group __________________________\n\nself = \n\n def test_create_group(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:20: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n________________ TestGroup.test_deleted_jobs_removed_from_group ________________\n\nself = \n\n def test_deleted_jobs_removed_from_group(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:70: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n______________ TestGroup.test_empty_group_removed_from_group_list ______________\n\nself = \n\n @pytest.mark.slow\n def test_empty_group_removed_from_group_list(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:106: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n________________ TestGroup.test_expired_jobs_removed_from_group ________________\n\nself = \n\n @pytest.mark.slow\n def test_expired_jobs_removed_from_group(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:92: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n_______________ TestGroup.test_fetch_expired_group_raises_error ________________\n\nself = \n\n @pytest.mark.slow\n def test_fetch_expired_group_raises_error(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:119: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n__________________________ TestGroup.test_fetch_group __________________________\n\nself = \n\n def test_fetch_group(self):\n q = Queue(connection=self.testconn)\n> enqueued_group = Group.create(connection=self.testconn)\n\ntests/test_group.py:35: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n_________________________ TestGroup.test_get_group_key _________________________\n\nself = \n\n def test_get_group_key(self):\n> group = Group(name=\"foo\", connection=self.testconn)\n\ntests/test_group.py:127: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <[AttributeError(\"'Group' object has no attribute 'id'\") raised in repr()] Group object at 0x7f551cd60b80>\nconnection = Redis>>\nname = 'foo'\n\n def __init__(self, connection: Redis, name: str = None):\n self.name = name if name else str(uuid4())\n self.connection = connection\n> self.key = '{0}{1}'.format(self.REDIS_GROUP_NAME_PREFIX, self.id)\nE AttributeError: 'Group' object has no attribute 'id'\n\nrq/group.py:23: AttributeError\n____________________ TestGroup.test_group_added_to_registry ____________________\n\nself = \n\n def test_group_added_to_registry(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:81: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_group_id_added_to_jobs _____________________\n\nself = \n\n def test_group_id_added_to_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:62: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n__________________________ TestGroup.test_group_jobs ___________________________\n\nself = \n\n def test_group_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:28: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_jobs_added_to_group_key ____________________\n\nself = \n\n def test_jobs_added_to_group_key(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:53: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n=============================== warnings summary ===============================\nrq/connections.py:35: 1 warning\ntests/test_cli.py: 31 warnings\ntests/test_connection.py: 3 warnings\n /home/runner/work/rq/rq/rq/connections.py:35: DeprecationWarning: The Connection context manager is deprecated. Use the `connection` parameter instead.\n warnings.warn(\n\nrq/connections.py:58: 1 warning\ntests/test_callbacks.py: 12 warnings\ntests/test_cli.py: 33 warnings\ntests/test_commands.py: 1 warning\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 1 warning\ntests/test_dependencies.py: 18 warnings\ntests/test_executions.py: 1 warning\ntests/test_fixtures.py: 1 warning\ntests/test_group.py: 1 warning\ntests/test_helpers.py: 1 warning\ntests/test_job.py: 1 warning\ntests/test_maintenance.py: 1 warning\ntests/test_queue.py: 2 warnings\ntests/test_registry.py: 8 warnings\ntests/test_retry.py: 1 warning\ntests/test_scheduler.py: 4 warnings\ntests/test_sentry.py: 2 warnings\ntests/test_timeouts.py: 4 warnings\ntests/test_utils.py: 1 warning\ntests/test_worker.py: 13 warnings\ntests/test_worker_registration.py: 1 warning\n /home/runner/work/rq/rq/rq/connections.py:58: DeprecationWarning: The `push_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\nrq/connections.py:72: 1 warning\ntests/test_callbacks.py: 12 warnings\ntests/test_cli.py: 33 warnings\ntests/test_commands.py: 1 warning\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 1 warning\ntests/test_dependencies.py: 18 warnings\ntests/test_executions.py: 1 warning\ntests/test_fixtures.py: 1 warning\ntests/test_group.py: 1 warning\ntests/test_helpers.py: 1 warning\ntests/test_job.py: 1 warning\ntests/test_maintenance.py: 1 warning\ntests/test_queue.py: 2 warnings\ntests/test_registry.py: 8 warnings\ntests/test_retry.py: 1 warning\ntests/test_scheduler.py: 4 warnings\ntests/test_sentry.py: 2 warnings\ntests/test_timeouts.py: 4 warnings\ntests/test_utils.py: 1 warning\ntests/test_worker.py: 13 warnings\ntests/test_worker_registration.py: 1 warning\n /home/runner/work/rq/rq/rq/connections.py:72: DeprecationWarning: The `pop_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_group.py:87\n /home/runner/work/rq/rq/tests/test_group.py:87: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/test_group.py:101\n /home/runner/work/rq/rq/tests/test_group.py:101: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/test_group.py:114\n /home/runner/work/rq/rq/tests/test_group.py:114: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/__init__.py:34\n /home/runner/work/rq/rq/tests/__init__.py:34: PytestUnknownMarkWarning: Unknown pytest.mark.ssl_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n f = pytest.mark.ssl_test(f)\n\ntests/__init__.py:29\n /home/runner/work/rq/rq/tests/__init__.py:29: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n f = pytest.mark.slow(f)\n\ntests/test_callbacks.py: 12 warnings\ntests/test_decorator.py: 1 warning\n /home/runner/work/rq/rq/rq/job.py:260: DeprecationWarning: Passing a string or function for `on_success` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py: 7 warnings\ntests/test_decorator.py: 3 warnings\ntests/test_job.py: 1 warning\n /home/runner/work/rq/rq/rq/job.py:270: DeprecationWarning: Passing a string or function for `on_failure` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_many_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::SyncJobCallback::test_stopped_callback\ntests/test_callbacks.py::JobCallbackTestCase::test_job_creation_with_stopped_callback\ntests/test_job.py::TestJob::test_persistence_of_callbacks\n /home/runner/work/rq/rq/rq/job.py:280: DeprecationWarning: Passing a string or function for `on_stopped` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py: 11 warnings\ntests/test_cli.py: 82 warnings\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 25 warnings\ntests/test_dependencies.py: 5 warnings\ntests/test_job.py: 107 warnings\ntests/test_queue.py: 82 warnings\ntests/test_registry.py: 2 warnings\ntests/test_retry.py: 2 warnings\ntests/test_worker.py: 164 warnings\ntests/test_worker_registration.py: 7 warnings\n /home/runner/work/rq/rq/rq/connections.py:108: DeprecationWarning: The `resolve_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_callbacks.py: 14 warnings\ntests/test_cli.py: 93 warnings\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 25 warnings\ntests/test_dependencies.py: 8 warnings\ntests/test_fixtures.py: 1 warning\ntests/test_job.py: 118 warnings\ntests/test_queue.py: 83 warnings\ntests/test_registry.py: 9 warnings\ntests/test_retry.py: 3 warnings\ntests/test_worker.py: 263 warnings\ntests/test_worker_registration.py: 53 warnings\n /home/runner/work/rq/rq/rq/connections.py:87: DeprecationWarning: The `get_current_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_callbacks.py: 2 warnings\ntests/test_cli.py: 3 warnings\ntests/test_dependencies.py: 1 warning\ntests/test_job.py: 6 warnings\ntests/test_worker.py: 13 warnings\n /home/runner/work/rq/rq/rq/job.py:874: DeprecationWarning: job.result is deprecated, use job.return_value instead.\n warnings.warn(\"job.result is deprecated, use job.return_value instead.\", DeprecationWarning)\n\ntests/test_callbacks.py: 2 warnings\ntests/test_job.py: 3 warnings\ntests/test_registry.py: 1 warning\ntests/test_timeouts.py: 1 warning\ntests/test_worker.py: 4 warnings\n /home/runner/work/rq/rq/rq/job.py:810: DeprecationWarning: job.exc_info is deprecated, use job.latest_result() instead.\n warnings.warn(\"job.exc_info is deprecated, use job.latest_result() instead.\", DeprecationWarning)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------- coverage: platform linux, python 3.10.13-final-0 ----------\nCoverage XML written to file coverage.xml\n\n============================= slowest 5 durations ==============================\n66.12s call tests/test_worker.py::WorkerShutdownTestCase::test_work_horse_force_death\n30.28s call tests/test_worker.py::TestWorker::test_dequeue_round_robin\n30.27s call tests/test_worker.py::TestRoundRobinWorker::test_round_robin\n30.27s call tests/test_worker.py::TestRandomWorker::test_random_worker\n30.27s call tests/test_worker.py::TestWorker::test_dequeue_random_strategy\n=========================== short test summary info ============================\nFAILED tests/test_group.py::TestGroup::test_add_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_all_returns_all_groups - TypeError: Group.create() got an unexpected keyword argument 'name'\nFAILED tests/test_group.py::TestGroup::test_create_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_deleted_jobs_removed_from_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_empty_group_removed_from_group_list - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_expired_jobs_removed_from_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_fetch_expired_group_raises_error - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_fetch_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_get_group_key - AttributeError: 'Group' object has no attribute 'id'\nFAILED tests/test_group.py::TestGroup::test_group_added_to_registry - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_group_id_added_to_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_group_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_jobs_added_to_group_key - TypeError: Group.__init__() got an unexpected keyword argument 'id'\n==== 13 failed, 395 passed, 20 skipped, 1496 warnings in 411.54s (0:06:51) =====\n##[error]Process completed with exit code 1.\n"}, {"step_name": "Python3.10Redis7redis-py3.5.0/7_Test with pytest.txt", "log": "##[group]Run RUN_SLOW_TESTS_TOO=1 hatch run test:cov --durations=5\n\u001b[36;1mRUN_SLOW_TESTS_TOO=1 hatch run test:cov --durations=5\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib\n##[endgroup]\nCreating environment: test\nInstalling project in development mode\nChecking dependencies\nSyncing dependencies\n============================= test session starts ==============================\nplatform linux -- Python 3.10.13, pytest-7.4.4, pluggy-1.3.0\nrootdir: /home/runner/work/rq/rq\nplugins: cov-4.1.0\ncollected 428 items\n\ntests/test_callbacks.py ............. [ 3%]\ntests/test_cli.py ...................................... [ 11%]\ntests/test_commands.py ... [ 12%]\ntests/test_connection.py .... [ 13%]\ntests/test_decorator.py ............... [ 17%]\ntests/test_dependencies.py ......... [ 19%]\ntests/test_executions.py ......... [ 21%]\ntests/test_fixtures.py .. [ 21%]\ntests/test_group.py FFFFFFFFFFFFF [ 24%]\ntests/test_helpers.py . [ 25%]\ntests/test_job.py ...................................................... [ 37%]\n.......................... [ 43%]\ntests/test_maintenance.py . [ 43%]\ntests/test_queue.py .................................................... [ 56%]\n [ 56%]\ntests/test_registry.py ............................ [ 62%]\ntests/test_results.py ............. [ 65%]\ntests/test_retry.py ...... [ 67%]\ntests/test_scheduler.py .................s...... [ 72%]\ntests/test_sentry.py ... [ 73%]\ntests/test_serializers.py . [ 73%]\ntests/test_timeouts.py . [ 73%]\ntests/test_utils.py ................. [ 77%]\ntests/test_worker.py ................................................... [ 89%]\n................................. [ 97%]\ntests/test_worker_pool.py ....... [ 99%]\ntests/test_worker_registration.py .... [100%]\n\n=================================== FAILURES ===================================\n___________________________ TestGroup.test_add_jobs ____________________________\n\nself = \n\n def test_add_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:44: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_all_returns_all_groups _____________________\n\nself = \n\n def test_all_returns_all_groups(self):\n q = Queue(connection=self.testconn)\n> group1 = Group.create(name=\"group1\", connection=self.testconn)\nE TypeError: Group.create() got an unexpected keyword argument 'name'\n\ntests/test_group.py:132: TypeError\n_________________________ TestGroup.test_create_group __________________________\n\nself = \n\n def test_create_group(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:20: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n________________ TestGroup.test_deleted_jobs_removed_from_group ________________\n\nself = \n\n def test_deleted_jobs_removed_from_group(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:70: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n______________ TestGroup.test_empty_group_removed_from_group_list ______________\n\nself = \n\n @pytest.mark.slow\n def test_empty_group_removed_from_group_list(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:106: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n________________ TestGroup.test_expired_jobs_removed_from_group ________________\n\nself = \n\n @pytest.mark.slow\n def test_expired_jobs_removed_from_group(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:92: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n_______________ TestGroup.test_fetch_expired_group_raises_error ________________\n\nself = \n\n @pytest.mark.slow\n def test_fetch_expired_group_raises_error(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:119: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n__________________________ TestGroup.test_fetch_group __________________________\n\nself = \n\n def test_fetch_group(self):\n q = Queue(connection=self.testconn)\n> enqueued_group = Group.create(connection=self.testconn)\n\ntests/test_group.py:35: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n_________________________ TestGroup.test_get_group_key _________________________\n\nself = \n\n def test_get_group_key(self):\n> group = Group(name=\"foo\", connection=self.testconn)\n\ntests/test_group.py:127: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <[AttributeError(\"'Group' object has no attribute 'id'\") raised in repr()] Group object at 0x7f911f9fe7a0>\nconnection = Redis>>\nname = 'foo'\n\n def __init__(self, connection: Redis, name: str = None):\n self.name = name if name else str(uuid4())\n self.connection = connection\n> self.key = '{0}{1}'.format(self.REDIS_GROUP_NAME_PREFIX, self.id)\nE AttributeError: 'Group' object has no attribute 'id'\n\nrq/group.py:23: AttributeError\n____________________ TestGroup.test_group_added_to_registry ____________________\n\nself = \n\n def test_group_added_to_registry(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:81: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_group_id_added_to_jobs _____________________\n\nself = \n\n def test_group_id_added_to_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:62: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n__________________________ TestGroup.test_group_jobs ___________________________\n\nself = \n\n def test_group_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:28: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_jobs_added_to_group_key ____________________\n\nself = \n\n def test_jobs_added_to_group_key(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:53: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n=============================== warnings summary ===============================\nrq/connections.py:35: 1 warning\ntests/test_cli.py: 31 warnings\ntests/test_connection.py: 3 warnings\n /home/runner/work/rq/rq/rq/connections.py:35: DeprecationWarning: The Connection context manager is deprecated. Use the `connection` parameter instead.\n warnings.warn(\n\nrq/connections.py:58: 1 warning\ntests/test_callbacks.py: 12 warnings\ntests/test_cli.py: 33 warnings\ntests/test_commands.py: 1 warning\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 1 warning\ntests/test_dependencies.py: 18 warnings\ntests/test_executions.py: 1 warning\ntests/test_fixtures.py: 1 warning\ntests/test_group.py: 1 warning\ntests/test_helpers.py: 1 warning\ntests/test_job.py: 1 warning\ntests/test_maintenance.py: 1 warning\ntests/test_queue.py: 2 warnings\ntests/test_registry.py: 8 warnings\ntests/test_results.py: 1 warning\ntests/test_retry.py: 1 warning\ntests/test_scheduler.py: 4 warnings\ntests/test_sentry.py: 2 warnings\ntests/test_timeouts.py: 4 warnings\ntests/test_utils.py: 1 warning\ntests/test_worker.py: 13 warnings\ntests/test_worker_registration.py: 1 warning\n /home/runner/work/rq/rq/rq/connections.py:58: DeprecationWarning: The `push_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\nrq/connections.py:72: 1 warning\ntests/test_callbacks.py: 12 warnings\ntests/test_cli.py: 33 warnings\ntests/test_commands.py: 1 warning\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 1 warning\ntests/test_dependencies.py: 18 warnings\ntests/test_executions.py: 1 warning\ntests/test_fixtures.py: 1 warning\ntests/test_group.py: 1 warning\ntests/test_helpers.py: 1 warning\ntests/test_job.py: 1 warning\ntests/test_maintenance.py: 1 warning\ntests/test_queue.py: 2 warnings\ntests/test_registry.py: 8 warnings\ntests/test_results.py: 1 warning\ntests/test_retry.py: 1 warning\ntests/test_scheduler.py: 4 warnings\ntests/test_sentry.py: 2 warnings\ntests/test_timeouts.py: 4 warnings\ntests/test_utils.py: 1 warning\ntests/test_worker.py: 13 warnings\ntests/test_worker_registration.py: 1 warning\n /home/runner/work/rq/rq/rq/connections.py:72: DeprecationWarning: The `pop_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_group.py:87\n /home/runner/work/rq/rq/tests/test_group.py:87: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/test_group.py:101\n /home/runner/work/rq/rq/tests/test_group.py:101: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/test_group.py:114\n /home/runner/work/rq/rq/tests/test_group.py:114: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/__init__.py:34\n /home/runner/work/rq/rq/tests/__init__.py:34: PytestUnknownMarkWarning: Unknown pytest.mark.ssl_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n f = pytest.mark.ssl_test(f)\n\ntests/__init__.py:29\n /home/runner/work/rq/rq/tests/__init__.py:29: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n f = pytest.mark.slow(f)\n\ntests/test_callbacks.py: 12 warnings\ntests/test_decorator.py: 1 warning\n /home/runner/work/rq/rq/rq/job.py:260: DeprecationWarning: Passing a string or function for `on_success` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py: 7 warnings\ntests/test_decorator.py: 3 warnings\ntests/test_job.py: 1 warning\n /home/runner/work/rq/rq/rq/job.py:270: DeprecationWarning: Passing a string or function for `on_failure` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_many_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::SyncJobCallback::test_stopped_callback\ntests/test_callbacks.py::JobCallbackTestCase::test_job_creation_with_stopped_callback\ntests/test_job.py::TestJob::test_persistence_of_callbacks\n /home/runner/work/rq/rq/rq/job.py:280: DeprecationWarning: Passing a string or function for `on_stopped` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py: 11 warnings\ntests/test_cli.py: 82 warnings\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 25 warnings\ntests/test_dependencies.py: 5 warnings\ntests/test_job.py: 107 warnings\ntests/test_queue.py: 82 warnings\ntests/test_registry.py: 2 warnings\ntests/test_retry.py: 2 warnings\ntests/test_worker.py: 164 warnings\ntests/test_worker_registration.py: 7 warnings\n /home/runner/work/rq/rq/rq/connections.py:108: DeprecationWarning: The `resolve_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_callbacks.py: 14 warnings\ntests/test_cli.py: 93 warnings\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 25 warnings\ntests/test_dependencies.py: 8 warnings\ntests/test_fixtures.py: 1 warning\ntests/test_job.py: 118 warnings\ntests/test_queue.py: 83 warnings\ntests/test_registry.py: 9 warnings\ntests/test_results.py: 4 warnings\ntests/test_retry.py: 3 warnings\ntests/test_worker.py: 265 warnings\ntests/test_worker_registration.py: 53 warnings\n /home/runner/work/rq/rq/rq/connections.py:87: DeprecationWarning: The `get_current_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_callbacks.py: 2 warnings\ntests/test_cli.py: 3 warnings\ntests/test_dependencies.py: 1 warning\ntests/test_job.py: 6 warnings\ntests/test_results.py: 2 warnings\ntests/test_worker.py: 13 warnings\n /home/runner/work/rq/rq/rq/job.py:874: DeprecationWarning: job.result is deprecated, use job.return_value instead.\n warnings.warn(\"job.result is deprecated, use job.return_value instead.\", DeprecationWarning)\n\ntests/test_callbacks.py: 2 warnings\ntests/test_job.py: 3 warnings\ntests/test_registry.py: 1 warning\ntests/test_results.py: 2 warnings\ntests/test_timeouts.py: 1 warning\ntests/test_worker.py: 5 warnings\n /home/runner/work/rq/rq/rq/job.py:810: DeprecationWarning: job.exc_info is deprecated, use job.latest_result() instead.\n warnings.warn(\"job.exc_info is deprecated, use job.latest_result() instead.\", DeprecationWarning)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------- coverage: platform linux, python 3.10.13-final-0 ----------\nCoverage XML written to file coverage.xml\n\n============================= slowest 5 durations ==============================\n66.12s call tests/test_worker.py::WorkerShutdownTestCase::test_work_horse_force_death\n30.28s call tests/test_worker.py::TestRoundRobinWorker::test_round_robin\n30.28s call tests/test_worker.py::TestRandomWorker::test_random_worker\n30.28s call tests/test_worker.py::TestWorker::test_dequeue_round_robin\n30.27s call tests/test_worker.py::TestWorker::test_dequeue_random_strategy\n=========================== short test summary info ============================\nFAILED tests/test_group.py::TestGroup::test_add_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_all_returns_all_groups - TypeError: Group.create() got an unexpected keyword argument 'name'\nFAILED tests/test_group.py::TestGroup::test_create_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_deleted_jobs_removed_from_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_empty_group_removed_from_group_list - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_expired_jobs_removed_from_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_fetch_expired_group_raises_error - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_fetch_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_get_group_key - AttributeError: 'Group' object has no attribute 'id'\nFAILED tests/test_group.py::TestGroup::test_group_added_to_registry - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_group_id_added_to_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_group_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_jobs_added_to_group_key - TypeError: Group.__init__() got an unexpected keyword argument 'id'\n===== 13 failed, 414 passed, 1 skipped, 1509 warnings in 413.84s (0:06:53) =====\n##[error]Process completed with exit code 1.\n"}, {"step_name": "Python3.11Redis4redis-py3.5.0/7_Test with pytest.txt", "log": "##[group]Run RUN_SLOW_TESTS_TOO=1 hatch run test:cov --durations=5\n\u001b[36;1mRUN_SLOW_TESTS_TOO=1 hatch run test:cov --durations=5\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib\n##[endgroup]\nCreating environment: test\nInstalling project in development mode\nChecking dependencies\nSyncing dependencies\n============================= test session starts ==============================\nplatform linux -- Python 3.11.7, pytest-7.4.4, pluggy-1.3.0\nrootdir: /home/runner/work/rq/rq\nplugins: cov-4.1.0\ncollected 428 items\n\ntests/test_callbacks.py ............. [ 3%]\ntests/test_cli.py ...................................... [ 11%]\ntests/test_commands.py ... [ 12%]\ntests/test_connection.py .... [ 13%]\ntests/test_decorator.py ............... [ 17%]\ntests/test_dependencies.py ......... [ 19%]\ntests/test_executions.py ......... [ 21%]\ntests/test_fixtures.py .. [ 21%]\ntests/test_group.py FFFFFFFFFFFFF [ 24%]\ntests/test_helpers.py . [ 25%]\ntests/test_job.py s..................................................... [ 37%]\n.......................... [ 43%]\ntests/test_maintenance.py s [ 43%]\ntests/test_queue.py .........s...............................s.......... [ 56%]\n [ 56%]\ntests/test_registry.py ............................ [ 62%]\ntests/test_results.py sssssssssssss [ 65%]\ntests/test_retry.py ...... [ 67%]\ntests/test_scheduler.py .................s...... [ 72%]\ntests/test_sentry.py ... [ 73%]\ntests/test_serializers.py . [ 73%]\ntests/test_timeouts.py . [ 73%]\ntests/test_utils.py ................. [ 77%]\ntests/test_worker.py ....................................s.............. [ 89%]\n..s.............................. [ 97%]\ntests/test_worker_pool.py ....... [ 99%]\ntests/test_worker_registration.py .... [100%]\n\n=================================== FAILURES ===================================\n___________________________ TestGroup.test_add_jobs ____________________________\n\nself = \n\n def test_add_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:44: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_all_returns_all_groups _____________________\n\nself = \n\n def test_all_returns_all_groups(self):\n q = Queue(connection=self.testconn)\n> group1 = Group.create(name=\"group1\", connection=self.testconn)\nE TypeError: Group.create() got an unexpected keyword argument 'name'\n\ntests/test_group.py:132: TypeError\n_________________________ TestGroup.test_create_group __________________________\n\nself = \n\n def test_create_group(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:20: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n________________ TestGroup.test_deleted_jobs_removed_from_group ________________\n\nself = \n\n def test_deleted_jobs_removed_from_group(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:70: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n______________ TestGroup.test_empty_group_removed_from_group_list ______________\n\nself = \n\n @pytest.mark.slow\n def test_empty_group_removed_from_group_list(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:106: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n________________ TestGroup.test_expired_jobs_removed_from_group ________________\n\nself = \n\n @pytest.mark.slow\n def test_expired_jobs_removed_from_group(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:92: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n_______________ TestGroup.test_fetch_expired_group_raises_error ________________\n\nself = \n\n @pytest.mark.slow\n def test_fetch_expired_group_raises_error(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:119: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n__________________________ TestGroup.test_fetch_group __________________________\n\nself = \n\n def test_fetch_group(self):\n q = Queue(connection=self.testconn)\n> enqueued_group = Group.create(connection=self.testconn)\n\ntests/test_group.py:35: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n_________________________ TestGroup.test_get_group_key _________________________\n\nself = \n\n def test_get_group_key(self):\n> group = Group(name=\"foo\", connection=self.testconn)\n\ntests/test_group.py:127: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <[AttributeError(\"'Group' object has no attribute 'id'\") raised in repr()] Group object at 0x7f71906f3410>\nconnection = Redis>>\nname = 'foo'\n\n def __init__(self, connection: Redis, name: str = None):\n self.name = name if name else str(uuid4())\n self.connection = connection\n> self.key = '{0}{1}'.format(self.REDIS_GROUP_NAME_PREFIX, self.id)\nE AttributeError: 'Group' object has no attribute 'id'\n\nrq/group.py:23: AttributeError\n____________________ TestGroup.test_group_added_to_registry ____________________\n\nself = \n\n def test_group_added_to_registry(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:81: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_group_id_added_to_jobs _____________________\n\nself = \n\n def test_group_id_added_to_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:62: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n__________________________ TestGroup.test_group_jobs ___________________________\n\nself = \n\n def test_group_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:28: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_jobs_added_to_group_key ____________________\n\nself = \n\n def test_jobs_added_to_group_key(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:53: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n=============================== warnings summary ===============================\nrq/connections.py:35: 1 warning\ntests/test_cli.py: 31 warnings\ntests/test_connection.py: 3 warnings\n /home/runner/work/rq/rq/rq/connections.py:35: DeprecationWarning: The Connection context manager is deprecated. Use the `connection` parameter instead.\n warnings.warn(\n\nrq/connections.py:58: 1 warning\ntests/test_callbacks.py: 12 warnings\ntests/test_cli.py: 33 warnings\ntests/test_commands.py: 1 warning\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 1 warning\ntests/test_dependencies.py: 18 warnings\ntests/test_executions.py: 1 warning\ntests/test_fixtures.py: 1 warning\ntests/test_group.py: 1 warning\ntests/test_helpers.py: 1 warning\ntests/test_job.py: 1 warning\ntests/test_maintenance.py: 1 warning\ntests/test_queue.py: 2 warnings\ntests/test_registry.py: 8 warnings\ntests/test_retry.py: 1 warning\ntests/test_scheduler.py: 4 warnings\ntests/test_sentry.py: 2 warnings\ntests/test_timeouts.py: 4 warnings\ntests/test_utils.py: 1 warning\ntests/test_worker.py: 13 warnings\ntests/test_worker_registration.py: 1 warning\n /home/runner/work/rq/rq/rq/connections.py:58: DeprecationWarning: The `push_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\nrq/connections.py:72: 1 warning\ntests/test_callbacks.py: 12 warnings\ntests/test_cli.py: 33 warnings\ntests/test_commands.py: 1 warning\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 1 warning\ntests/test_dependencies.py: 18 warnings\ntests/test_executions.py: 1 warning\ntests/test_fixtures.py: 1 warning\ntests/test_group.py: 1 warning\ntests/test_helpers.py: 1 warning\ntests/test_job.py: 1 warning\ntests/test_maintenance.py: 1 warning\ntests/test_queue.py: 2 warnings\ntests/test_registry.py: 8 warnings\ntests/test_retry.py: 1 warning\ntests/test_scheduler.py: 4 warnings\ntests/test_sentry.py: 2 warnings\ntests/test_timeouts.py: 4 warnings\ntests/test_utils.py: 1 warning\ntests/test_worker.py: 13 warnings\ntests/test_worker_registration.py: 1 warning\n /home/runner/work/rq/rq/rq/connections.py:72: DeprecationWarning: The `pop_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_group.py:87\n /home/runner/work/rq/rq/tests/test_group.py:87: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/test_group.py:101\n /home/runner/work/rq/rq/tests/test_group.py:101: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/test_group.py:114\n /home/runner/work/rq/rq/tests/test_group.py:114: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/__init__.py:34\n /home/runner/work/rq/rq/tests/__init__.py:34: PytestUnknownMarkWarning: Unknown pytest.mark.ssl_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n f = pytest.mark.ssl_test(f)\n\ntests/__init__.py:29\n /home/runner/work/rq/rq/tests/__init__.py:29: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n f = pytest.mark.slow(f)\n\ntests/test_callbacks.py: 12 warnings\ntests/test_decorator.py: 1 warning\n /home/runner/work/rq/rq/rq/job.py:260: DeprecationWarning: Passing a string or function for `on_success` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py: 7 warnings\ntests/test_decorator.py: 3 warnings\ntests/test_job.py: 1 warning\n /home/runner/work/rq/rq/rq/job.py:270: DeprecationWarning: Passing a string or function for `on_failure` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_many_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::SyncJobCallback::test_stopped_callback\ntests/test_callbacks.py::JobCallbackTestCase::test_job_creation_with_stopped_callback\ntests/test_job.py::TestJob::test_persistence_of_callbacks\n /home/runner/work/rq/rq/rq/job.py:280: DeprecationWarning: Passing a string or function for `on_stopped` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py: 11 warnings\ntests/test_cli.py: 82 warnings\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 25 warnings\ntests/test_dependencies.py: 5 warnings\ntests/test_job.py: 107 warnings\ntests/test_queue.py: 82 warnings\ntests/test_registry.py: 2 warnings\ntests/test_retry.py: 2 warnings\ntests/test_worker.py: 164 warnings\ntests/test_worker_registration.py: 7 warnings\n /home/runner/work/rq/rq/rq/connections.py:108: DeprecationWarning: The `resolve_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_callbacks.py: 14 warnings\ntests/test_cli.py: 93 warnings\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 25 warnings\ntests/test_dependencies.py: 8 warnings\ntests/test_fixtures.py: 1 warning\ntests/test_job.py: 118 warnings\ntests/test_queue.py: 83 warnings\ntests/test_registry.py: 9 warnings\ntests/test_retry.py: 3 warnings\ntests/test_worker.py: 263 warnings\ntests/test_worker_registration.py: 53 warnings\n /home/runner/work/rq/rq/rq/connections.py:87: DeprecationWarning: The `get_current_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_callbacks.py: 2 warnings\ntests/test_cli.py: 3 warnings\ntests/test_dependencies.py: 1 warning\ntests/test_job.py: 6 warnings\ntests/test_worker.py: 13 warnings\n /home/runner/work/rq/rq/rq/job.py:874: DeprecationWarning: job.result is deprecated, use job.return_value instead.\n warnings.warn(\"job.result is deprecated, use job.return_value instead.\", DeprecationWarning)\n\ntests/test_callbacks.py: 2 warnings\ntests/test_job.py: 3 warnings\ntests/test_registry.py: 1 warning\ntests/test_timeouts.py: 1 warning\ntests/test_worker.py: 4 warnings\n /home/runner/work/rq/rq/rq/job.py:810: DeprecationWarning: job.exc_info is deprecated, use job.latest_result() instead.\n warnings.warn(\"job.exc_info is deprecated, use job.latest_result() instead.\", DeprecationWarning)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------- coverage: platform linux, python 3.11.7-final-0 -----------\nCoverage XML written to file coverage.xml\n\n============================= slowest 5 durations ==============================\n66.12s call tests/test_worker.py::WorkerShutdownTestCase::test_work_horse_force_death\n30.27s call tests/test_worker.py::TestRandomWorker::test_random_worker\n30.27s call tests/test_worker.py::TestRoundRobinWorker::test_round_robin\n30.27s call tests/test_worker.py::TestWorker::test_dequeue_round_robin\n30.27s call tests/test_worker.py::TestWorker::test_dequeue_random_strategy\n=========================== short test summary info ============================\nFAILED tests/test_group.py::TestGroup::test_add_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_all_returns_all_groups - TypeError: Group.create() got an unexpected keyword argument 'name'\nFAILED tests/test_group.py::TestGroup::test_create_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_deleted_jobs_removed_from_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_empty_group_removed_from_group_list - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_expired_jobs_removed_from_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_fetch_expired_group_raises_error - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_fetch_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_get_group_key - AttributeError: 'Group' object has no attribute 'id'\nFAILED tests/test_group.py::TestGroup::test_group_added_to_registry - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_group_id_added_to_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_group_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_jobs_added_to_group_key - TypeError: Group.__init__() got an unexpected keyword argument 'id'\n==== 13 failed, 395 passed, 20 skipped, 1496 warnings in 412.32s (0:06:52) =====\n##[error]Process completed with exit code 1.\n"}, {"step_name": "Python3.11Redis5redis-py3.5.0/7_Test with pytest.txt", "log": "##[group]Run RUN_SLOW_TESTS_TOO=1 hatch run test:cov --durations=5\n\u001b[36;1mRUN_SLOW_TESTS_TOO=1 hatch run test:cov --durations=5\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib\n##[endgroup]\nCreating environment: test\nInstalling project in development mode\nChecking dependencies\nSyncing dependencies\n============================= test session starts ==============================\nplatform linux -- Python 3.11.7, pytest-7.4.4, pluggy-1.3.0\nrootdir: /home/runner/work/rq/rq\nplugins: cov-4.1.0\ncollected 428 items\n\ntests/test_callbacks.py ............. [ 3%]\ntests/test_cli.py ...................................... [ 11%]\ntests/test_commands.py ... [ 12%]\ntests/test_connection.py .... [ 13%]\ntests/test_decorator.py ............... [ 17%]\ntests/test_dependencies.py ......... [ 19%]\ntests/test_executions.py ......... [ 21%]\ntests/test_fixtures.py .. [ 21%]\ntests/test_group.py FFFFFFFFFFFFF [ 24%]\ntests/test_helpers.py . [ 25%]\ntests/test_job.py ...................................................... [ 37%]\n.......................... [ 43%]\ntests/test_maintenance.py s [ 43%]\ntests/test_queue.py .........s...............................s.......... [ 56%]\n [ 56%]\ntests/test_registry.py ............................ [ 62%]\ntests/test_results.py ............. [ 65%]\ntests/test_retry.py ...... [ 67%]\ntests/test_scheduler.py .................s...... [ 72%]\ntests/test_sentry.py ... [ 73%]\ntests/test_serializers.py . [ 73%]\ntests/test_timeouts.py . [ 73%]\ntests/test_utils.py ................. [ 77%]\ntests/test_worker.py ....................................s.............. [ 89%]\n..s.............................. [ 97%]\ntests/test_worker_pool.py ....... [ 99%]\ntests/test_worker_registration.py .... [100%]\n\n=================================== FAILURES ===================================\n___________________________ TestGroup.test_add_jobs ____________________________\n\nself = \n\n def test_add_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:44: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_all_returns_all_groups _____________________\n\nself = \n\n def test_all_returns_all_groups(self):\n q = Queue(connection=self.testconn)\n> group1 = Group.create(name=\"group1\", connection=self.testconn)\nE TypeError: Group.create() got an unexpected keyword argument 'name'\n\ntests/test_group.py:132: TypeError\n_________________________ TestGroup.test_create_group __________________________\n\nself = \n\n def test_create_group(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:20: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n________________ TestGroup.test_deleted_jobs_removed_from_group ________________\n\nself = \n\n def test_deleted_jobs_removed_from_group(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:70: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n______________ TestGroup.test_empty_group_removed_from_group_list ______________\n\nself = \n\n @pytest.mark.slow\n def test_empty_group_removed_from_group_list(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:106: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n________________ TestGroup.test_expired_jobs_removed_from_group ________________\n\nself = \n\n @pytest.mark.slow\n def test_expired_jobs_removed_from_group(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:92: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n_______________ TestGroup.test_fetch_expired_group_raises_error ________________\n\nself = \n\n @pytest.mark.slow\n def test_fetch_expired_group_raises_error(self):\n q = Queue(connection=self.testconn)\n w = SimpleWorker([q], connection=q.connection)\n short_lived_job = Queue.prepare_data(say_hello, result_ttl=1)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:119: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n__________________________ TestGroup.test_fetch_group __________________________\n\nself = \n\n def test_fetch_group(self):\n q = Queue(connection=self.testconn)\n> enqueued_group = Group.create(connection=self.testconn)\n\ntests/test_group.py:35: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n_________________________ TestGroup.test_get_group_key _________________________\n\nself = \n\n def test_get_group_key(self):\n> group = Group(name=\"foo\", connection=self.testconn)\n\ntests/test_group.py:127: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <[AttributeError(\"'Group' object has no attribute 'id'\") raised in repr()] Group object at 0x7f86ff1eb710>\nconnection = Redis>>\nname = 'foo'\n\n def __init__(self, connection: Redis, name: str = None):\n self.name = name if name else str(uuid4())\n self.connection = connection\n> self.key = '{0}{1}'.format(self.REDIS_GROUP_NAME_PREFIX, self.id)\nE AttributeError: 'Group' object has no attribute 'id'\n\nrq/group.py:23: AttributeError\n____________________ TestGroup.test_group_added_to_registry ____________________\n\nself = \n\n def test_group_added_to_registry(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:81: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_group_id_added_to_jobs _____________________\n\nself = \n\n def test_group_id_added_to_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:62: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n__________________________ TestGroup.test_group_jobs ___________________________\n\nself = \n\n def test_group_jobs(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:28: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n____________________ TestGroup.test_jobs_added_to_group_key ____________________\n\nself = \n\n def test_jobs_added_to_group_key(self):\n q = Queue(connection=self.testconn)\n> group = Group.create(connection=self.testconn)\n\ntests/test_group.py:53: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = \nconnection = Redis>>\nid = None\n\n @classmethod\n def create(cls, connection: Redis, id: Optional[str] = None):\n> return cls(id=id, connection=connection)\nE TypeError: Group.__init__() got an unexpected keyword argument 'id'\n\nrq/group.py:73: TypeError\n=============================== warnings summary ===============================\nrq/connections.py:35: 1 warning\ntests/test_cli.py: 31 warnings\ntests/test_connection.py: 3 warnings\n /home/runner/work/rq/rq/rq/connections.py:35: DeprecationWarning: The Connection context manager is deprecated. Use the `connection` parameter instead.\n warnings.warn(\n\nrq/connections.py:58: 1 warning\ntests/test_callbacks.py: 12 warnings\ntests/test_cli.py: 33 warnings\ntests/test_commands.py: 1 warning\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 1 warning\ntests/test_dependencies.py: 18 warnings\ntests/test_executions.py: 1 warning\ntests/test_fixtures.py: 1 warning\ntests/test_group.py: 1 warning\ntests/test_helpers.py: 1 warning\ntests/test_job.py: 1 warning\ntests/test_maintenance.py: 1 warning\ntests/test_queue.py: 2 warnings\ntests/test_registry.py: 8 warnings\ntests/test_results.py: 1 warning\ntests/test_retry.py: 1 warning\ntests/test_scheduler.py: 4 warnings\ntests/test_sentry.py: 2 warnings\ntests/test_timeouts.py: 4 warnings\ntests/test_utils.py: 1 warning\ntests/test_worker.py: 13 warnings\ntests/test_worker_registration.py: 1 warning\n /home/runner/work/rq/rq/rq/connections.py:58: DeprecationWarning: The `push_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\nrq/connections.py:72: 1 warning\ntests/test_callbacks.py: 12 warnings\ntests/test_cli.py: 33 warnings\ntests/test_commands.py: 1 warning\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 1 warning\ntests/test_dependencies.py: 18 warnings\ntests/test_executions.py: 1 warning\ntests/test_fixtures.py: 1 warning\ntests/test_group.py: 1 warning\ntests/test_helpers.py: 1 warning\ntests/test_job.py: 1 warning\ntests/test_maintenance.py: 1 warning\ntests/test_queue.py: 2 warnings\ntests/test_registry.py: 8 warnings\ntests/test_results.py: 1 warning\ntests/test_retry.py: 1 warning\ntests/test_scheduler.py: 4 warnings\ntests/test_sentry.py: 2 warnings\ntests/test_timeouts.py: 4 warnings\ntests/test_utils.py: 1 warning\ntests/test_worker.py: 13 warnings\ntests/test_worker_registration.py: 1 warning\n /home/runner/work/rq/rq/rq/connections.py:72: DeprecationWarning: The `pop_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_group.py:87\n /home/runner/work/rq/rq/tests/test_group.py:87: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/test_group.py:101\n /home/runner/work/rq/rq/tests/test_group.py:101: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/test_group.py:114\n /home/runner/work/rq/rq/tests/test_group.py:114: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n @pytest.mark.slow\n\ntests/__init__.py:34\n /home/runner/work/rq/rq/tests/__init__.py:34: PytestUnknownMarkWarning: Unknown pytest.mark.ssl_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n f = pytest.mark.ssl_test(f)\n\ntests/__init__.py:29\n /home/runner/work/rq/rq/tests/__init__.py:29: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html\n f = pytest.mark.slow(f)\n\ntests/test_callbacks.py: 12 warnings\ntests/test_decorator.py: 1 warning\n /home/runner/work/rq/rq/rq/job.py:260: DeprecationWarning: Passing a string or function for `on_success` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py: 7 warnings\ntests/test_decorator.py: 3 warnings\ntests/test_job.py: 1 warning\n /home/runner/work/rq/rq/rq/job.py:270: DeprecationWarning: Passing a string or function for `on_failure` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_many_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::QueueCallbackTestCase::test_enqueue_with_stopped_callback\ntests/test_callbacks.py::SyncJobCallback::test_stopped_callback\ntests/test_callbacks.py::JobCallbackTestCase::test_job_creation_with_stopped_callback\ntests/test_job.py::TestJob::test_persistence_of_callbacks\n /home/runner/work/rq/rq/rq/job.py:280: DeprecationWarning: Passing a string or function for `on_stopped` is deprecated, pass `Callback` instead\n warnings.warn(\n\ntests/test_callbacks.py: 11 warnings\ntests/test_cli.py: 82 warnings\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 25 warnings\ntests/test_dependencies.py: 5 warnings\ntests/test_job.py: 107 warnings\ntests/test_queue.py: 82 warnings\ntests/test_registry.py: 2 warnings\ntests/test_retry.py: 2 warnings\ntests/test_worker.py: 164 warnings\ntests/test_worker_registration.py: 7 warnings\n /home/runner/work/rq/rq/rq/connections.py:108: DeprecationWarning: The `resolve_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_callbacks.py: 14 warnings\ntests/test_cli.py: 93 warnings\ntests/test_connection.py: 4 warnings\ntests/test_decorator.py: 25 warnings\ntests/test_dependencies.py: 8 warnings\ntests/test_fixtures.py: 1 warning\ntests/test_job.py: 118 warnings\ntests/test_queue.py: 83 warnings\ntests/test_registry.py: 9 warnings\ntests/test_results.py: 4 warnings\ntests/test_retry.py: 3 warnings\ntests/test_worker.py: 263 warnings\ntests/test_worker_registration.py: 53 warnings\n /home/runner/work/rq/rq/rq/connections.py:87: DeprecationWarning: The `get_current_connection` function is deprecated. Pass the `connection` explicitly instead.\n warnings.warn(\n\ntests/test_callbacks.py: 2 warnings\ntests/test_cli.py: 3 warnings\ntests/test_dependencies.py: 1 warning\ntests/test_job.py: 6 warnings\ntests/test_results.py: 2 warnings\ntests/test_worker.py: 13 warnings\n /home/runner/work/rq/rq/rq/job.py:874: DeprecationWarning: job.result is deprecated, use job.return_value instead.\n warnings.warn(\"job.result is deprecated, use job.return_value instead.\", DeprecationWarning)\n\ntests/test_callbacks.py: 2 warnings\ntests/test_job.py: 3 warnings\ntests/test_registry.py: 1 warning\ntests/test_results.py: 2 warnings\ntests/test_timeouts.py: 1 warning\ntests/test_worker.py: 5 warnings\n /home/runner/work/rq/rq/rq/job.py:810: DeprecationWarning: job.exc_info is deprecated, use job.latest_result() instead.\n warnings.warn(\"job.exc_info is deprecated, use job.latest_result() instead.\", DeprecationWarning)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------- coverage: platform linux, python 3.11.7-final-0 -----------\nCoverage XML written to file coverage.xml\n\n============================= slowest 5 durations ==============================\n66.12s call tests/test_worker.py::WorkerShutdownTestCase::test_work_horse_force_death\n30.27s call tests/test_worker.py::TestWorker::test_dequeue_round_robin\n30.27s call tests/test_worker.py::TestRandomWorker::test_random_worker\n30.27s call tests/test_worker.py::TestRoundRobinWorker::test_round_robin\n30.27s call tests/test_worker.py::TestWorker::test_dequeue_random_strategy\n=========================== short test summary info ============================\nFAILED tests/test_group.py::TestGroup::test_add_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_all_returns_all_groups - TypeError: Group.create() got an unexpected keyword argument 'name'\nFAILED tests/test_group.py::TestGroup::test_create_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_deleted_jobs_removed_from_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_empty_group_removed_from_group_list - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_expired_jobs_removed_from_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_fetch_expired_group_raises_error - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_fetch_group - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_get_group_key - AttributeError: 'Group' object has no attribute 'id'\nFAILED tests/test_group.py::TestGroup::test_group_added_to_registry - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_group_id_added_to_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_group_jobs - TypeError: Group.__init__() got an unexpected keyword argument 'id'\nFAILED tests/test_group.py::TestGroup::test_jobs_added_to_group_key - TypeError: Group.__init__() got an unexpected keyword argument 'id'\n===== 13 failed, 409 passed, 6 skipped, 1507 warnings in 414.22s (0:06:54) =====\n##[error]Process completed with exit code 1.\n"}], "diff": "diff --git a/rq/group.py b/rq/group.py\nindex 3da974e..b1894db 100644\n--- a/rq/group.py\n+++ b/rq/group.py\n@@ -20,16 +20,16 @@ class Group:\n def __init__(self, connection: Redis, name: str = None):\n self.name = name if name else str(uuid4())\n self.connection = connection\n- self.key = '{0}{1}'.format(self.REDIS_GROUP_NAME_PREFIX, self.id)\n+ self.key = '{0}{1}'.format(self.REDIS_GROUP_NAME_PREFIX, self.name)\n \n def __repr__(self):\n- return \"Group(id={})\".format(self.id)\n+ return \"Group(id={})\".format(self.name)\n \n def _add_jobs(self, jobs: List[Job], pipeline: Pipeline):\n \"\"\"Add jobs to the group\"\"\"\n pipe = pipeline if pipeline else self.connection.pipeline()\n pipe.sadd(self.key, *[job.id for job in jobs])\n- pipe.sadd(self.REDIS_GROUP_KEY, self.id)\n+ pipe.sadd(self.REDIS_GROUP_KEY, self.name)\n if pipeline is None:\n pipe.execute()\n \n@@ -37,14 +37,14 @@ class Group:\n \"\"\"Delete jobs from the group's job registry that have been deleted or expired from Redis.\n We assume while running this that alive jobs have all been fetched from Redis in fetch_jobs method\"\"\"\n pipe = pipeline if pipeline else self.connection.pipeline()\n- Group.cleanup_group(self.id, self.connection, pipeline=pipe)\n+ Group.cleanup_group(self.name, self.connection, pipeline=pipe)\n if pipeline is None:\n pipe.execute()\n \n def enqueue_many(self, queue: Queue, job_datas: List['EnqueueData'], pipeline: Optional['Pipeline'] = None):\n pipe = pipeline if pipeline else self.connection.pipeline()\n \n- jobs = queue.enqueue_many(job_datas, group_id=self.id, pipeline=pipe)\n+ jobs = queue.enqueue_many(job_datas, group_id=self.name, pipeline=pipe)\n \n self._add_jobs(jobs, pipeline=pipe)\n \n@@ -69,21 +69,21 @@ class Group:\n pipe.execute()\n \n @classmethod\n- def create(cls, connection: Redis, id: Optional[str] = None):\n- return cls(id=id, connection=connection)\n+ def create(cls, connection: Redis, name: Optional[str] = None):\n+ return cls(name=name, connection=connection)\n \n @classmethod\n- def fetch(cls, id: str, connection: Redis):\n+ def fetch(cls, name: str, connection: Redis):\n \"\"\"Fetch an existing group from Redis\"\"\"\n- group = cls(id=id, connection=connection)\n- if not connection.exists(Group.get_key(group.id)):\n+ group = cls(name=name, connection=connection)\n+ if not connection.exists(Group.get_key(group.name)):\n raise NoSuchGroupError\n return group\n \n @classmethod\n- def cleanup_group(cls, id: str, connection: Redis, pipeline: Optional['Pipeline'] = None):\n+ def cleanup_group(cls, name: str, connection: Redis, pipeline: Optional['Pipeline'] = None):\n pipe = pipeline if pipeline else connection.pipeline()\n- key = cls.get_key(id)\n+ key = cls.get_key(name)\n job_ids = [as_text(job) for job in list(connection.smembers(key))]\n expired_job_ids = []\n with connection.pipeline() as p:\n@@ -107,9 +107,9 @@ class Group:\n return [Group.fetch(key, connection=connection) for key in group_keys]\n \n @classmethod\n- def get_key(cls, id: str) -> str:\n+ def get_key(cls, name: str) -> str:\n \"\"\"Return the Redis key of the set containing a group's jobs\"\"\"\n- return cls.REDIS_GROUP_NAME_PREFIX + id\n+ return cls.REDIS_GROUP_NAME_PREFIX + name\n \n @classmethod\n def clean_registries(cls, connection: 'Redis'):\n@@ -118,6 +118,7 @@ class Group:\n groups = connection.smembers(Group.REDIS_GROUP_KEY)\n for group in groups:\n try:\n+ Group.cleanup_group(name=as_text(group), connection=connection)\n group = Group.fetch(as_text(group), connection)\n except NoSuchGroupError:\n connection.srem(Group.REDIS_GROUP_KEY, as_text(group))\ndiff --git a/tests/test_group.py b/tests/test_group.py\nindex 44f4028..4cdca18 100644\n--- a/tests/test_group.py\n+++ b/tests/test_group.py\n@@ -34,7 +34,7 @@ class TestGroup(RQTestCase):\n q = Queue(connection=self.testconn)\n enqueued_group = Group.create(connection=self.testconn)\n enqueued_group.enqueue_many(q, [self.job_1_data, self.job_2_data])\n- fetched_group = Group.fetch(enqueued_group.id, self.testconn)\n+ fetched_group = Group.fetch(enqueued_group.name, self.testconn)\n self.assertCountEqual(enqueued_group.get_jobs(), fetched_group.get_jobs())\n assert len(fetched_group.get_jobs()) == 2\n q.empty()\n@@ -45,7 +45,7 @@ class TestGroup(RQTestCase):\n group.enqueue_many(q, [self.job_1_data, self.job_2_data])\n job2 = group.enqueue_many(q, [self.job_1_data, self.job_2_data])[0]\n assert job2 in group.get_jobs()\n- self.assertEqual(job2.group_id, group.id)\n+ self.assertEqual(job2.group_id, group.name)\n q.empty()\n \n def test_jobs_added_to_group_key(self):\n@@ -61,9 +61,9 @@ class TestGroup(RQTestCase):\n q = Queue(connection=self.testconn)\n group = Group.create(connection=self.testconn)\n jobs = group.enqueue_many(q, [self.job_1_data])\n- assert jobs[0].group_id == group.id\n+ assert jobs[0].group_id == group.name\n fetched_job = Job.fetch(jobs[0].id, connection=self.testconn)\n- assert fetched_job.group_id == group.id\n+ assert fetched_job.group_id == group.name\n \n def test_deleted_jobs_removed_from_group(self):\n q = Queue(connection=self.testconn)\n@@ -81,7 +81,7 @@ class TestGroup(RQTestCase):\n group = Group.create(connection=self.testconn)\n group.enqueue_many(q, [self.job_1_data])\n redis_groups = {as_text(group) for group in self.testconn.smembers(\"rq:groups\")}\n- assert group.id in redis_groups\n+ assert group.name in redis_groups\n q.empty()\n \n @pytest.mark.slow\n@@ -95,7 +95,7 @@ class TestGroup(RQTestCase):\n sleep(2)\n group.cleanup()\n assert len(group.get_jobs()) == 1\n- assert self.job_1_data in group.get_jobs()\n+ assert self.job_1_data.job_id in [job.id for job in group.get_jobs()]\n q.empty()\n \n @pytest.mark.slow\n@@ -109,7 +109,7 @@ class TestGroup(RQTestCase):\n sleep(2)\n w.run_maintenance_tasks()\n redis_groups = {as_text(group) for group in self.testconn.smembers(\"rq:groups\")}\n- assert group.id not in redis_groups\n+ assert group.name not in redis_groups\n \n @pytest.mark.slow\n def test_fetch_expired_group_raises_error(self):\n@@ -120,12 +120,13 @@ class TestGroup(RQTestCase):\n group.enqueue_many(q, [short_lived_job])\n w.work(burst=True, max_jobs=1)\n sleep(2)\n- self.assertRaises(NoSuchGroupError, Group.fetch, group.id, group.connection)\n+ w.run_maintenance_tasks()\n+ self.assertRaises(NoSuchGroupError, Group.fetch, group.name, group.connection)\n q.empty()\n \n def test_get_group_key(self):\n group = Group(name=\"foo\", connection=self.testconn)\n- self.assertEqual(Group.get_key(group.id), \"rq:group:foo\")\n+ self.assertEqual(Group.get_key(group.name), \"rq:group:foo\")\n \n def test_all_returns_all_groups(self):\n q = Queue(connection=self.testconn)\n@@ -134,5 +135,5 @@ class TestGroup(RQTestCase):\n group1.enqueue_many(q, [self.job_1_data, self.job_2_data])\n all_groups = Group.all(self.testconn)\n assert len(all_groups) == 1\n- assert \"group1\" in [group.id for group in all_groups]\n- assert \"group2\" not in [group.id for group in all_groups]\n+ assert \"group1\" in [group.name for group in all_groups]\n+ assert \"group2\" not in [group.name for group in all_groups]\n", "difficulty": 2, "changed_files": ["rq/group.py", "tests/test_group.py"], "commit_link": "https://github.com/rq/rq/tree/02d77473094a05997ff7014683fe5c2241891046"} \ No newline at end of file