Improvement: Remove Magic Numbers in Tests with Tasks

Replaced 2 with TASK_SUCCEEDED, 3 with TASK_FAILED.

fixes: #1158
This commit is contained in:
Mauro Regli authored and Benj Fassbind committed 2023-03-13 13:17:17 +01:00
1 parent 5b5307cc15
commit 90932cdac5
7 files changed
+111 -103

No files matched your search

+11 -6
View File
@@ -1,17 +1,22 @@
from lib import BaseTest
import time
import json
import random
import string
import os
import inspect
import json
import os
import random
import shutil
import string
import time
from lib import BaseTest
try:
import requests
except ImportError:
requests = None
# States for returned tasks from the API
TASK_SUCCEEDED = 2
TASK_FAILED = 3
class APITest(BaseTest):
"""