diff --git a/setup.py b/setup.py index 487424c..d6f880d 100644 --- a/setup.py +++ b/setup.py @@ -11,5 +11,5 @@ setup( url='https://github.com/AlienVault-Labs/OTX-Python-SDK', download_url='https://github.com/AlienVault-Labs/OTX-Python-SDK/tarball/1.1.0', py_modules=['OTXv2', 'IndicatorTypes','patch_pulse'], - install_requires=['simplejson', 'requests', 'dateutil', 'pytz'] + install_requires=['simplejson', 'requests', 'python-dateutil', 'pytz'] ) diff --git a/tests/test_client.py b/tests/test_client.py index aa329ed..7329ddf 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,6 +1,7 @@ import datetime import json import os +import random import requests import shutil import string @@ -18,6 +19,8 @@ STRP_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S.%f' ALIEN_DEV_SERVER = os.getenv('X_OTX_DEV_SERVER', "") ALIEN_API_APIKEY = "" +rand = random.randint(0, 999999) + def create_user(username, password, email): """ @@ -438,9 +441,9 @@ class TestRequests(TestOTXv2): class TestOTXv2Cached(unittest.TestCase): - user = "qatester-github-temp-user" - author1 = "qatester-github-temp-a1" - author2 = "qatester-github-temp-a2" + user = "qatester-github-temp-user-{}".format(rand) + author1 = "qatester-github-temp-a1-{}".format(rand) + author2 = "qatester-github-temp-a2-{}".format(rand) otx = {} @classmethod @@ -572,7 +575,7 @@ class TestOTXv2Cached(unittest.TestCase): if __name__ == '__main__': - username = "qatester-github-temp" + username = "qatester-github-temp-{}".format(rand) try: ALIEN_API_APIKEY = create_user(username, "password", username + "@aveng.us")