rename config var to max_retries, remove attempt_count form admin , add admin ui customization to docs

This commit is contained in:
Tim O'Meara
2020-08-13 11:58:00 -05:00
parent 991cca5844
commit 655f0aadb5
7 changed files with 32 additions and 11 deletions
+2 -4
View File
@@ -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'}))
+1 -1
View File
@@ -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],