summaryrefslogtreecommitdiff
path: root/test/mix
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2022-07-03 21:14:25 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2022-07-03 21:14:25 +0000
commitde37583c49bb43b67c009c36d42967dd9d117acb (patch)
tree2b94dbfbc7563d6cd8a7b52714b55e64ecbefd4c /test/mix
parenta15b45a5897817a5a5accfb8fd0fa5bcf8515e2b (diff)
parent56227ef7ba097c6be39a7e70b67c426a3016e0ab (diff)
downloadpleroma-de37583c49bb43b67c009c36d42967dd9d117acb.tar.gz
pleroma-de37583c49bb43b67c009c36d42967dd9d117acb.zip
Merge branch 'image_description_from_exif_data' into 'develop'
Use EXIF data of image for image description See merge request pleroma/pleroma!3535
Diffstat (limited to 'test/mix')
-rw-r--r--test/mix/tasks/pleroma/instance_test.exs9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/mix/tasks/pleroma/instance_test.exs b/test/mix/tasks/pleroma/instance_test.exs
index 249689ec6..b1c10e03c 100644
--- a/test/mix/tasks/pleroma/instance_test.exs
+++ b/test/mix/tasks/pleroma/instance_test.exs
@@ -67,7 +67,9 @@ defmodule Mix.Tasks.Pleroma.InstanceTest do
"test/uploads",
"--static-dir",
"./test/../test/instance/static/",
- "--strip-uploads",
+ "--strip-uploads-location",
+ "y",
+ "--read-uploads-description",
"y",
"--dedupe-uploads",
"n",
@@ -91,7 +93,10 @@ defmodule Mix.Tasks.Pleroma.InstanceTest do
assert generated_config =~ "password: \"dbpass\""
assert generated_config =~ "configurable_from_database: true"
assert generated_config =~ "http: [ip: {127, 0, 0, 1}, port: 4000]"
- assert generated_config =~ "filters: [Pleroma.Upload.Filter.Exiftool]"
+
+ assert generated_config =~
+ "filters: [Pleroma.Upload.Filter.Exiftool.StripLocation, Pleroma.Upload.Filter.Exiftool.ReadDescription]"
+
assert File.read!(tmp_path() <> "setup.psql") == generated_setup_psql()
assert File.exists?(Path.expand("./test/instance/static/robots.txt"))
end