tests: Use /some/random/endpoint in a few places.

When we are just building lots of UserActivity
records to simulate user activity, it's misleading
to use some specific endpoint that people reading
the test may think is pertinent to the actual
test.

The pointer endpoints that I replaced in this
commit are a good example of this principle--
they will no longer exist in an upcoming commit,
but these tests would have kept running and be
even more confusing.
This commit is contained in:
Steve Howell 2020-06-27 11:29:08 +00:00 committed by Tim Abbott
parent 2e46be0989
commit 94b0a496a9
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ class UserSoftDeactivationTests(ZulipTestCase):
self.example_user('desdemona'),
]
client, _ = Client.objects.get_or_create(name='website')
query = '/json/users/me/pointer'
query = '/some/random/endpoint'
last_visit = timezone_now()
count = 150
for user_profile in UserProfile.objects.all():
@ -167,7 +167,7 @@ class UserSoftDeactivationTests(ZulipTestCase):
self.subscribe(user, stream_name)
client, _ = Client.objects.get_or_create(name='website')
query = '/json/users/me/pointer'
query = '/some/random/endpoint'
last_visit = timezone_now()
count = 150
for user_profile in users: