mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-27 08:58:11 +08:00
rename config var to max_retries, remove attempt_count form admin , add admin ui customization to docs
This commit is contained in:
@@ -21,8 +21,7 @@ def test_admin_views(admin_client, monkeypatch):
|
||||
func='test.fail',
|
||||
started=timezone.now(),
|
||||
stopped=timezone.now(),
|
||||
success=False,
|
||||
attempt_count=1)
|
||||
success=False)
|
||||
tag = uuid()
|
||||
t = Task.objects.create(
|
||||
id=tag[1],
|
||||
@@ -30,8 +29,7 @@ def test_admin_views(admin_client, monkeypatch):
|
||||
func='test.success',
|
||||
started=timezone.now(),
|
||||
stopped=timezone.now(),
|
||||
success=True,
|
||||
attempt_count=1)
|
||||
success=True)
|
||||
q = OrmQ.objects.create(
|
||||
key='test',
|
||||
payload=SignedPackage.dumps({'id': 1, 'func': 'test', 'name': 'test'}))
|
||||
|
||||
@@ -399,7 +399,7 @@ def test_bad_secret(broker, monkeypatch):
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_attempt_count(broker, monkeypatch):
|
||||
monkeypatch.setattr(Conf, 'ATTEMPT_COUNT', 3)
|
||||
monkeypatch.setattr(Conf, 'MAX_ATTEMPTS', 3)
|
||||
tag = uuid()
|
||||
task = {'id': tag[1],
|
||||
'name': tag[0],
|
||||
|
||||
Reference in New Issue
Block a user