Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -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

8 changes: 8 additions & 0 deletions swaggercheck/_basictests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down