Skip to content

Issue 3 correction. Add an indication if the tool is running in authe… #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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