Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blockscout/test/mix/tasks/scrape_test.exs

20 lines
371 B

defmodule Scrape.Test do
use Explorer.DataCase
alias Explorer.Block
alias Explorer.Repo
test "it downloads a new block" do
use_cassette "scrape" do
Mix.Tasks.Scrape.run([])
last_block = Block
|> order_by(desc: :inserted_at)
|> limit(1)
|> Repo.all
|> List.first
assert(last_block.number)
end
end
end