Skip to content

Commit

Permalink
Update browse_docs_sequence_test (#904)
Browse files Browse the repository at this point in the history
Corrected class name for 'TaskSequence' and initialised self.toc_url and self.urls_on_current_page to None
  • Loading branch information
Realsid authored and cgoldberg committed Oct 29, 2018
1 parent ba01b0b commit ff7fddd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/browse_docs_sequence_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# browsing the Locust documentation on https://docs.locust.io/

import random
from locust import HttpLocust, TaskSquence, seq_task, task
from locust import HttpLocust, TaskSequence, seq_task, task
from pyquery import PyQuery


class BrowseDocumentationSequence(TaskSquence):
class BrowseDocumentationSequence(TaskSequence):
def on_start(self):
self.urls_on_current_page = self.toc_urls
self.urls_on_current_page = self.toc_urls = None

# assume all users arrive at the index page
@seq_task(1)
Expand Down

0 comments on commit ff7fddd

Please sign in to comment.