Skip to content

Commit 7f78075

Browse files
committed
Fix SonarQube
1 parent 9c91cb2 commit 7f78075

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

task_manager/users/tests/test_models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def test_user_self_update_authorized(self):
112112
'first_name': 'TestName',
113113
'last_name': 'LTestName',
114114
'username': 'loin13',
115-
'password1': 'asdF12',
116-
'password2': 'asdF12',
115+
'password1': 'asdF12', # NOSONAR
116+
'password2': 'asdF12', # NOSONAR
117117
}
118118

119119
response = self.client.get(
@@ -147,8 +147,8 @@ def test_other_user_update_authorized(self):
147147
'first_name': 'FName112',
148148
'last_name': 'LName223',
149149
'username': 'hyrt2',
150-
'password1': 'ZXCh6',
151-
'password2': 'ZXCh6',
150+
'password1': 'ZXCh6', # NOSONAR
151+
'password2': 'ZXCh6', # NOSONAR
152152
}
153153

154154
response = self.client.get(

task_manager/users/tests/testcase.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ def setUp(self):
1818
"first_name": "F Name",
1919
"last_name": "L Name",
2020
"username": "login1",
21-
"password1": "ASD123g",
22-
"password2": "ASD123g"
21+
"password1": "ASD123g", # NOSONAR
22+
"password2": "ASD123g" # NOSONAR
2323
}
2424

2525
self.update_data = {
2626
"first_name": "F Name2",
2727
"last_name": "L Name2",
2828
"username": "login2",
29-
"password1": "lpak12",
30-
"password2": "lpak12"
29+
"password1": "lpak12", # NOSONAR
30+
"password2": "lpak12" # NOSONAR
3131
}

0 commit comments

Comments
 (0)