23 Commits (f15cad4501dcbf6feedc051007f63a4ee7a706de)

Author SHA1 Message Date
Cyril Chapellier 421fd98a9c
[Tests] Only run SSL tests in Docker (#1918)
* Only run SSL tests in docker workflow

* Rename workflow
2 years ago
Selwin Ong ffacdcb675
Update tox.ini to not run linters (#1916) 2 years ago
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
2 years ago
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
2 years ago
Cyril Chapellier 84833b9c5f
[Chore] Fix test suite (#1895)
* fix: tests suite

* chore: add SSL tests
2 years ago
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>
2 years ago
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
2 years ago
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
4 years ago
Wolfgang Langner 972778d041 Fix run_tests to use pytest. (#1033)
Update tox.ini envlist.
6 years ago
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
7 years ago
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.
9 years ago
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.
9 years ago
Arnold Krille eaa001c722 ignore lambdas as function definitions 9 years ago
Vincent Driessen c344c2f334 Add Python 3.5 unit tests 9 years ago
Vincent Driessen aa3cf85531 Run flake8 checks as part of test suite. 10 years ago
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
11 years ago
Vincent Driessen 13ae0353c9 Add coverage commands to tox. 11 years ago
Vincent Driessen c5939479b5 Merge remote-tracking branch 'origin/master' into SanyerMyasoedov-master
Conflicts:
	rq/decorators.py
	tests/__init__.py
	tests/test_decorator.py
11 years ago
Vincent Driessen 1f423436a5 Move mock to test-only dependencies. 11 years ago
Vincent Driessen cb278a9549 Add Python 3.4 to targets. 11 years ago
Alex Morega 2e517001a9 pass on arguments to py.test 12 years ago
Alex Morega 610c26d816 run tests on py33 12 years ago
Vincent Driessen 73e6017896 Add tox tests, for Python 2.6 and PyPy. 12 years ago