Skip to content

Commit 0569ffb

Browse files
committed
refactor: address codacy concerns.
1 parent 0eabda7 commit 0569ffb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/datafed_pkg/tests/integration/mock_defaults.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class Defaults:
66
mock_python_client_public_key = "Yne@$w-vo<fVvi]a<NY6T1ed:M$fCG*[IaLV{hID"
77
mock_python_client_private_key = "D:)Q[IlAW!ahhC2ac:9*A}h:p?([4%wOTJ%JR%cs"
88
mock_authenticated_test_user = "authenticated_bob"
9-
test_user_password = "open_sesame"
10-
test_user_token = "validToken-4KDl-90ufsdfFDPPher0%lkfda"
9+
test_user_password = "open_sesame" # nosec
10+
test_user_token = "validToken-4KDl-90ufsdfFDPPher0%lkfda" # nosec
1111

1212
mock_repo_address = "tcp://localhost:10000"
1313
mock_repo_id = "samoas"

tests/mock_core/docker/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env
1414
log_path="$DATAFED_DEFAULT_LOG_PATH"
1515

1616
if [ ! -d "${log_path}" ]; then
17-
mkdir -p ${log_path}
17+
mkdir -p "${log_path}"
1818
fi
1919

2020
echo "Number of arguments is $#"
@@ -30,7 +30,7 @@ datafed_mock_core_exec=$(basename "$1")
3030
if [ "${datafed_mock_core_exec}" = "datafed-mock-core" ]; then
3131
# Send output to log file
3232
# For this to work all commands must be passed in as a single string
33-
"$@" -- argv0 "$@" 2>&1 | tee $log_path/datafed-mock-core.log
33+
"$@" -- argv0 "$@" 2>&1 | tee "$log_path/datafed-mock-core.log"
3434
else
3535
echo "Not sending output to datafed-mock-core.log"
3636
# If not do not by default send to log file

0 commit comments

Comments
 (0)