properly filter User.password from ActivityStream entries

see: #6160
This commit is contained in:
Ryan Petrello
2017-05-09 14:46:05 -04:00
parent b7438288cc
commit f7660e1778
2 changed files with 14 additions and 3 deletions

View File

@@ -131,3 +131,12 @@ class TestCredentialModels:
entry = ActivityStream.objects.filter(credential=cred)[0]
assert entry.operation == 'create'
assert json.loads(entry.changes)['inputs'] == 'hidden'
@pytest.mark.django_db
class TestUserModels:
def test_user_hidden_information(self, alice):
entry = ActivityStream.objects.filter(user=alice)[0]
assert entry.operation == 'create'
assert json.loads(entry.changes)['password'] == 'hidden'