Commit 41d4d1d2 authored by Thomas Citharel's avatar Thomas Citharel 🏃🏻
Browse files

Merge branch 'move-fixtures' into 'master'

Move cassette files to correct location

Closes #79

See merge request !117
parents 23557534 6664bd4f
Pipeline #60666 failed with stages
in 5 minutes and 36 seconds
......@@ -24,3 +24,5 @@ doc/
.credo.exs
upload_cache.tab
.zanata-cache/
.elixir_ls/
......@@ -25,3 +25,7 @@ config :pickweaver, Pickweaver.Repo,
pool: Ecto.Adapters.SQL.Sandbox
config :plug, :validate_header_keys_during_test, false
config :exvcr, [
vcr_cassette_library_dir: "test/fixtures/vcr_cassettes",
]
......@@ -12,7 +12,11 @@ defmodule Pickweaver.Mixfile do
aliases: aliases(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test],
preferred_cli_env:
[
"coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test,
vcr: :test, "vcr.delete": :test, "vcr.check": :test, "vcr.show": :test
],
name: "Pickweaver",
source_url: "https://framagit.org/framasoft/pickweaver",
homepage_url: "https://framagit.org/framasoft/pickweaver",
......
......@@ -14,7 +14,7 @@ defmodule Pickweaver.Services.StorifyTest do
ExVCR.Config.filter_sensitive_data("oauth_signature=[^\"]+", "<REMOVED>")
ExVCR.Config.filter_sensitive_data("guest_id=.+;", "<REMOVED>")
ExVCR.Config.filter_sensitive_data("access_token\":\".+?\"", "access_token\":\"<REMOVED>\"")
ExVCR.Config.cassette_library_dir("fixture/vcr_cassettes")
ExVCR.Config.cassette_library_dir("test/fixtures/vcr_cassettes")
:ok
end
......
......@@ -14,7 +14,7 @@ defmodule Pickweaver.Services.TwitterMomentTest do
ExVCR.Config.filter_sensitive_data("oauth_signature=[^\"]+", "<REMOVED>")
ExVCR.Config.filter_sensitive_data("guest_id=.+;", "<REMOVED>")
ExVCR.Config.filter_sensitive_data("access_token\":\".+?\"", "access_token\":\"<REMOVED>\"")
ExVCR.Config.cassette_library_dir("fixture/vcr_cassettes")
ExVCR.Config.cassette_library_dir("test/fixtures/vcr_cassettes")
:ok
end
......
......@@ -12,7 +12,7 @@ defmodule Pickweaver.Services.TwitterTweetsTest do
ExVCR.Config.filter_sensitive_data("oauth_signature=[^\"]+", "<REMOVED>")
ExVCR.Config.filter_sensitive_data("guest_id=.+;", "<REMOVED>")
ExVCR.Config.filter_sensitive_data("access_token\":\".+?\"", "access_token\":\"<REMOVED>\"")
ExVCR.Config.cassette_library_dir("fixture/vcr_cassettes")
ExVCR.Config.cassette_library_dir("test/fixtures/vcr_cassettes")
:inets.start
:ok
end
......
......@@ -13,7 +13,7 @@ defmodule Pickweaver.Services.TweetTest do
ExVCR.Config.filter_sensitive_data("oauth_signature=[^\"]+", "<REMOVED>")
ExVCR.Config.filter_sensitive_data("guest_id=.+;", "<REMOVED>")
ExVCR.Config.filter_sensitive_data("access_token\":\".+?\"", "access_token\":\"<REMOVED>\"")
ExVCR.Config.cassette_library_dir("fixture/vcr_cassettes")
ExVCR.Config.cassette_library_dir("test/fixtures/vcr_cassettes")
:ok
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment