diff --git a/src/grasshopper/lib/journeys/base_journey.py b/src/grasshopper/lib/journeys/base_journey.py index 280f6ad..fae5c2d 100644 --- a/src/grasshopper/lib/journeys/base_journey.py +++ b/src/grasshopper/lib/journeys/base_journey.py @@ -22,8 +22,7 @@ class BaseJourney(HttpUser): _incoming_test_parameters = {} abstract = True base_torn_down = False - tags = {} - defaults = {"tags": tags, "thresholds": {}} + defaults = {"thresholds": {}} @classmethod @property @@ -71,8 +70,7 @@ def reset_class_attributes(cls): is provided as a way to reset to the starting state. """ cls._incoming_test_parameters = {} - cls.tags = {} - cls.defaults = {"tags": cls.tags} + cls.defaults = {"thresholds": {}, "tags": {}} cls.host = "" cls.abstract = True cls.base_torn_down = False @@ -93,6 +91,9 @@ def on_start(self): self._register_new_vu() self._set_thresholds() self.environment.host = self.scenario_args.get("target_url", "") or self.host + + self.tags = {} + self.defaults["tags"] = self.tags self.update_tags({"environment": self.environment.host}) # TODO: currently global iterations is stored in the environment stats object