adding test coverage reports
This commit is contained in:
1 parent
d6ad44bdd2
commit
5f874c7431
4 files changed
+32
-3
No files matched your search
+4
-1
@@ -2,6 +2,9 @@ import logging
|
||||
import os
|
||||
|
||||
|
||||
def is_authenticated(username, password):
|
||||
def is_authenticated(username: str, password: str) -> bool:
|
||||
"""
|
||||
Returns True if the supplied username/password matches the environment.
|
||||
"""
|
||||
logging.debug(f"Authentication attempt for {username}, {password}")
|
||||
return (username == os.environ.get('USERNAME') and password == os.environ.get('PASSWORD'))
|
||||
Reference in new issue
Block a user