Add the task to sync authors from the API.
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-03-19 13:47:28 +02:00
parent da0e5246c7
commit f01a5eda1b
2 changed files with 45 additions and 0 deletions
@@ -0,0 +1,20 @@
defmodule DecentralisedBookIndex.SyncTasks.SyncAuthorsTaskTest do
use DecentralisedBookIndex.DataCase
alias DecentralisedBookIndex.SyncTasks.SyncAuthorsTask
alias DecentralisedBookIndex.Metadata
alias DecentralisedBookIndex.TestEndpoints
@test_server_endpoint TestEndpoints.test_api_endpoint()
describe "sync authors tasks" do
test "sync authors" do
{:ok, author} = Metadata.create_author("Author", "An description")
{:ok, author} = Metadata.create_author("Author2", "An description")
endpoint = @test_server_endpoint
assert endpoint = SyncAuthorsTask.sync(endpoint)
end
end
end