Created
July 19, 2017 22:34
-
-
Save maxchehab/5e364435559253eb4daf617ddf9303d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
failure_classifications = None | |
push_with_three_jobs = <Push: test_treeherder_jobs 45f8637cb9f78f19cb8463ff174e81756805d8cf> | |
pulse_action_consumer = <kombu.simple.SimpleQueue object at 0x7fbf37a5b610> | |
test_repository = <Repository: test_treeherder_jobs development> | |
test_user = <User: testuser1> | |
def test_resultset_cancel_all(failure_classifications, | |
push_with_three_jobs, pulse_action_consumer, | |
test_repository, test_user): | |
""" | |
Issue cancellation of a resultset with three unfinished jobs. | |
""" | |
client = APIClient() | |
client.force_authenticate(user=test_user) | |
# Ensure all jobs are pending.. | |
for job in Job.objects.all(): | |
assert job.state == 'pending' | |
url = reverse("resultset-cancel-all", | |
> kwargs={"project": test_repository.name, "pk": push_with_three_jobs.id}) | |
tests/webapp/api/test_push_api.py:419: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
../python/lib/python2.7/site-packages/django/urls/base.py:91: in reverse | |
return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment