diff --git a/requirements-dev.txt b/requirements-dev.txt index 4910009..dd0343f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,7 @@ +hypothesis==4.31.0 black==19.3b0 coveralls pytest==4.4.1 pytest-cov==2.7.1 responses==0.5.1 + diff --git a/swaggercheck/_basictests.py b/swaggercheck/_basictests.py index 105710a..5749f2d 100644 --- a/swaggercheck/_basictests.py +++ b/swaggercheck/_basictests.py @@ -48,6 +48,14 @@ def api_conformance_test( Fore.BLUE + "Swagger client... " + Fore.GREEN + " ok" + Style.RESET_ALL ) + method = " basic" + if username is not None and password is not None: + method = " authenticated" + + print( + Fore.BLUE + "Authentication method : " + Fore.GREEN + method + Style.RESET_ALL + ) + fd, watchdog_filename = tempfile.mkstemp() os.close(fd) os.remove(watchdog_filename)