Commit Graph

26 Commits

Author SHA1 Message Date
Selwin Ong 4c28ec617a
Delete legacy.py (#2083)
* Delete legacy.py

* Deleted Sentry's built in integration.

* Fixed ruff warnings.
2024-05-02 08:20:41 +07:00
Rob Hudson 9933128dd2
Store project metadata in pyproject.toml (PEP 621) (#1952) 2023-07-09 17:34:25 +07:00
Rob Hudson d756867914
Add the Python dev packages for Python headers to tests/Dockerfile (#1951)
* Add the Python dev packages for Python headers

* Drop support for Python 3.6 in testing workflows
2023-06-29 09:54:44 +07:00
Cyril Chapellier 421fd98a9c
[Tests] Only run SSL tests in Docker (#1918)
* Only run SSL tests in docker workflow

* Rename workflow
2023-05-23 14:24:55 +07:00
Selwin Ong ffacdcb675
Update tox.ini to not run linters (#1916) 2023-05-19 08:17:49 +07:00
Selwin Ong 37ddcb51cd
Reliable queue (#1911)
* Use lmove() when working on a single queue

* Skip reliable queue tests if Redis server doesn't support LMOVE

* Better test coverage

* job.origin should be string

* Added test for job that gets orphaned if worker.execute_job() fails

* Fix job tests

* worker.run_maintenance_tasks() now cleans intermediate queues

* Fixed import ordering

* No need to run slow tests and flake8 on SSL tests

* Minor typing fixes

* Fixed linting
2023-05-18 18:01:01 +07:00
Rob Hudson ea063edf0a
Update linting configuration (#1915)
* Update linting configuration

This removes flake8 in favor of ruff, which also provides isort support, and
updates all files to be black, isort, and ruff compliant. This also adds black
and ruff checks to the tox and Github linting workflow.

* Tweak the code coverage config and calls
2023-05-17 23:19:14 +07:00
Cyril Chapellier 84833b9c5f
[Chore] Fix test suite (#1895)
* fix: tests suite

* chore: add SSL tests
2023-05-13 21:49:59 +07:00
lowercase00 375ace1747
Typing (#1698)
* Gitignore Venv + VScode

* Add Typings, Add Test to Makefile

* Fix, More typing, Redis Pipeline specific type

* More types

* Fix 3.7- Typing Compat, Add Tox Envs, Tests Dockerfile

* fix listindex error (#1700)

* More docstrings

* More Types

* Fix Typo on Dependency

* Last Types

Co-authored-by: Burak Yılmaz <46003469+yilmaz-burak@users.noreply.github.com>
2022-10-01 16:34:30 +07:00
Hugo 61a4a1720b
Use unittest.mock instead of mock (#1673)
This module has been included in Python itself since 3.3.

Fixes: https://github.com/rq/rq/issues/1646
2022-07-24 07:12:40 +07:00
MyrikLD efb24161ab
Replace enum function with internal Enum class (#1459)
* Removed deprecated (object) inheritance
Add new py38,py39 versions to tox, removed deprecated py27,py34
Replace enum internal function with Enum class

* fix
2021-05-07 11:10:46 +07:00
Wolfgang Langner 972778d041 Fix run_tests to use pytest. (#1033)
Update tox.ini envlist.
2019-01-22 07:39:43 +07:00
chevell c2b939d2df Replace 'async' keyword with 'is_async' for Queue objects (#977)
* Replaced async keyword with is_async in the Queue class to fix reserved keyword syntax errors in Python 3.7

* Updated tests to use is_async keyword when instantiating Queue objects

* Updated docs to reference is_async keyword for Queue objects

* Updated tox.ini, setup.py and .travis.yml with references to Python 3.7
2018-07-07 08:50:33 +07:00
Arnold Krille 8e99706b16 run python 3.5 on travis, adopt timeouts
Also
- Report the five slowest tests to watch for risk of timeout
- Double timeouts.
  Maybe that helps pypy on travis to finish successfully.
2016-06-15 21:35:02 +02:00
Arnold Krille c6765e12ff Move the flake8 config to setup.cfg
My editor (atom) reads the setup.cfg but doesn't parse the cmd-line args in the
tox.ini. So lets move the flake8 config to setup.cfg.
2016-03-13 18:42:12 +01:00
Arnold Krille eaa001c722 ignore lambdas as function definitions 2016-03-13 17:50:15 +01:00
Vincent Driessen c344c2f334 Add Python 3.5 unit tests 2015-10-08 15:56:40 +02:00
Vincent Driessen aa3cf85531 Run flake8 checks as part of test suite. 2014-09-08 20:29:12 +02:00
Vincent Driessen 712e663ffc Allow passing in positional arguments via tox to pytest.
See docs for details: http://tox.readthedocs.org/en/latest/example/general.html
2014-07-26 08:38:21 +02:00
Vincent Driessen 13ae0353c9 Add coverage commands to tox. 2014-07-24 23:30:36 +02:00
Vincent Driessen c5939479b5 Merge remote-tracking branch 'origin/master' into SanyerMyasoedov-master
Conflicts:
	rq/decorators.py
	tests/__init__.py
	tests/test_decorator.py
2014-05-06 15:52:35 +02:00
Vincent Driessen 1f423436a5 Move mock to test-only dependencies. 2014-05-06 15:51:23 +02:00
Vincent Driessen cb278a9549 Add Python 3.4 to targets. 2014-04-28 08:34:52 +02:00
Alex Morega 2e517001a9 pass on arguments to py.test 2013-08-05 14:11:01 +03:00
Alex Morega 610c26d816 run tests on py33 2013-08-05 13:47:43 +03:00
Vincent Driessen 73e6017896 Add tox tests, for Python 2.6 and PyPy. 2013-01-23 22:57:44 +01:00