Skip to content

Commit

Permalink
Updated send_to_ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oltarasenko committed Sep 22, 2020
1 parent f3e4d4f commit 9611e00
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/pipelines/experimental/send_to_ui_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@ defmodule Pipelines.Experimental.SendToUITest do
use ExUnit.Case, async: false

@item %{title: "Title", author: "Me"}
test "job tag is added to the state" do
pipelines = [{Crawly.Pipelines.Experimental.SendToUI, ui_node: :'ui@127.0.0.1'}]
state = %{spider_name: PipelineTestSpider}
{@item, state} = Crawly.Utils.pipe(pipelines, @item, state)

assert Map.get(state, :job_tag) != nil
end


test "job tag is not re-generated if pipeline was re-executed" do
pipelines = [{Crawly.Pipelines.Experimental.SendToUI, ui_node: :'ui@127.0.0.1'}]
state = %{spider_name: PipelineTestSpider}
Expand Down

0 comments on commit 9611e00

Please sign in to comment.