Skip to content

Commit

Permalink
Add gitleaks:allow to test secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarson committed Jan 26, 2024
1 parent 7f6ef98 commit d4d82da
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions primed/users/tests/test_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def setUp(self):
fake_time = time.time()
self.token = {
"token_type": "Bearer",
"access_token": "asdfoiw37850234lkjsdfsdfTEST",
"refresh_token": "sldvafkjw34509s8dfsdfTEST",
"access_token": "asdfoiw37850234lkjsdfsdfTEST", # gitleaks:allow
"refresh_token": "sldvafkjw34509s8dfsdfTEST", # gitleaks:allow
"expires_in": 3600,
"expires_at": fake_time + 3600,
}
Expand Down Expand Up @@ -272,7 +272,7 @@ def test_full_user_audit(self):
short_name=TEST_STUDY_SITE_DATA[0].title,
full_name=TEST_STUDY_SITE_DATA[0].field_long_name,
)
results = drupal_data_user_audit()
results = drupal_data_user_audit(apply_changes=True)
assert results.encountered_issues() is False
assert results.count_new_rows() == 1
assert results.count_update_rows() == 0
Expand All @@ -288,3 +288,6 @@ def test_full_user_audit(self):
users.first().study_sites.first().short_name
== TEST_STUDY_SITE_DATA[0].title
)

# test user removal
# test user change

0 comments on commit d4d82da

Please sign in to comment.