diff --git a/docs/Changelog.rst b/docs/Changelog.rst index c537fb6..dac39b6 100644 --- a/docs/Changelog.rst +++ b/docs/Changelog.rst @@ -15,6 +15,25 @@ The format is based on `Keep a Changelog`_, and this project adheres to :local: :depth: 1 +.. _v1.2.5: + +v1.2.5 +====== + +- Release date: 2019-09-02 12:00 + +- Diff__. + +__ https://github.com/zalando-incubator/transformer/compare/v1.2.4...v1.2.5 + +Fixed +----- + +The generated scenario classes always inherit from +:class:`~locust.TaskSequence` (instead of a :class:`~locust.TaskSet`) when they +use the `@seq_task` decorator. +Thank you :user:`kbrowns` for reporting this! (:pr:`62`) + .. _v1.2.4: v1.2.4 diff --git a/docs/Creating-HAR-files.rst b/docs/Creating-HAR-files.rst index f3f5a38..e617cba 100644 --- a/docs/Creating-HAR-files.rst +++ b/docs/Creating-HAR-files.rst @@ -27,7 +27,7 @@ Record a scenario ----------------- #. **Prepare your scenario** by thinking through the steps you want to execute. -#. Open Chrome in either **Gest** or **Incognito** mode (it's important to have +#. Open Chrome in either **Guest** or **Incognito** mode (it's important to have no cookies prior to starting). #. Open the `Developer Tools`_. #. Open the **Network** panel. diff --git a/docs/conf.py b/docs/conf.py index 59827e4..55ef627 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -25,7 +25,7 @@ # The short X.Y version version = "1.2" # The full version, including alpha/beta/rc tags -release = "1.2.4" +release = "1.2.5" # -- General configuration --------------------------------------------------- diff --git a/pyproject.toml b/pyproject.toml index f99071e..dae9fcc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "har-transformer" -version = "1.2.4" +version = "1.2.5" description = "A tool to convert HAR files into a locustfile." authors = [ "Serhii Cherniavskyi ", diff --git a/transformer/locust.py b/transformer/locust.py index 0de56bd..421f681 100644 --- a/transformer/locust.py +++ b/transformer/locust.py @@ -45,7 +45,7 @@ def locust_taskset(scenario: Scenario) -> py.Class: Transforms a scenario (potentially containing other scenarios) into a Locust TaskSet definition. """ - if any(isinstance(child, Task) for child in scenario.children): + if any(isinstance(child, (Task, Task2)) for child in scenario.children): ts_type = TaskSetType.Sequence else: ts_type = TaskSetType.Set