This is an automated email from the ASF dual-hosted git repository.

jiahuili430 pushed a commit to branch fix-elixir-tests-bk
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 42179c02b678546477cb2980a0620b41a006d684
Author: Jiahui Li <[email protected]>
AuthorDate: Thu Dec 11 11:45:49 2025 -0600

    Fix warnings and typos
---
 test/elixir/test/cluster_without_quorum_test.exs | 30 ++++++++++++------------
 test/elixir/test/support/friend_docs.ex          |  2 +-
 test/elixir/test/support/limit_docs.ex           |  2 +-
 test/elixir/test/support/user_docs.ex            |  2 +-
 4 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/test/elixir/test/cluster_without_quorum_test.exs 
b/test/elixir/test/cluster_without_quorum_test.exs
index e0095c351..f80b6ac27 100644
--- a/test/elixir/test/cluster_without_quorum_test.exs
+++ b/test/elixir/test/cluster_without_quorum_test.exs
@@ -7,22 +7,22 @@ defmodule WithoutQuorumTest do
   Test CouchDB API in a cluster without quorum.
   """
   @tag :with_db_name
-  test "Creating/Deleting DB should return 202-Acepted", context do
+  test "Creating/Deleting DB should return 202-Accepted", context do
     db_name = context[:db_name]
     resp = Couch.put("/#{db_name}")
-    msg = "Should return 202-Acepted"
+    msg = "Should return 202-Accepted"
     assert resp.status_code == 202, msg
     resp = Couch.delete("/#{db_name}")
     assert resp.status_code == 202, msg
   end
 
   @tag :with_db_name
-  test "Creating/Updating/Deleting doc should return 202-Acepted", context do
+  test "Creating/Updating/Deleting doc should return 202-Accepted", context do
     db_name = context[:db_name]
     Couch.put("/#{db_name}")
 
     resp = Couch.post("/#{context[:db_name]}", body: %{:_id => "0", :a => 1})
-    msg = "Should return 202-Acepted"
+    msg = "Should return 202-Accepted"
     assert resp.status_code == 202, msg
 
     resp = Couch.get("/#{context[:db_name]}/0")
@@ -31,20 +31,20 @@ defmodule WithoutQuorumTest do
     resp =
       Couch.put("/#{context[:db_name]}/0", body: %{:_id => "0", :_rev => rev, 
:a => 2})
 
-    msg = "Should return 202-Acepted"
+    msg = "Should return 202-Accepted"
     assert resp.status_code == 202, msg
 
     resp = Couch.get("/#{context[:db_name]}/0")
     rev = resp.body["_rev"]
     resp = Couch.delete("/#{context[:db_name]}/0", query: %{:rev => rev})
-    msg = "Should return 202-Acepted"
+    msg = "Should return 202-Accepted"
     assert resp.status_code == 202, msg
 
     Couch.delete("/#{db_name}")
   end
 
   @tag :with_db_name
-  test "Creating-Updating/Deleting doc with overriden quorum should return 
201-Created/200-OK",
+  test "Creating-Updating/Deleting doc with overridden quorum should return 
201-Created/200-OK",
        context do
     db_name = context[:db_name]
     Couch.put("/#{db_name}")
@@ -82,7 +82,7 @@ defmodule WithoutQuorumTest do
   end
 
   @tag :with_db_name
-  test "Copy doc should return 202-Acepted", context do
+  test "Copy doc should return 202-Accepted", context do
     db_name = context[:db_name]
     Couch.put("/#{db_name}")
 
@@ -93,7 +93,7 @@ defmodule WithoutQuorumTest do
 
     headers = [Destination: "1"]
     resp = Couch.request(:copy, "/#{context[:db_name]}/0", headers: headers)
-    msg = "Should return 202-Acepted"
+    msg = "Should return 202-Accepted"
     assert resp.status_code == 202, msg
     Couch.delete("/#{db_name}")
   end
@@ -101,19 +101,19 @@ defmodule WithoutQuorumTest do
   @doc_range 1..5
 
   @tag :with_db_name
-  test "Bulk docs should return 202-Acepted", context do
+  test "Bulk docs should return 202-Accepted", context do
     db_name = context[:db_name]
     Couch.put("/#{db_name}")
     docs = create_docs(@doc_range)
     resp = Couch.post("/#{db_name}/_bulk_docs", body: %{docs: docs})
-    msg = "Should return 202-Acepted"
+    msg = "Should return 202-Accepted"
     assert resp.status_code == 202, msg
 
     Couch.delete("/#{db_name}")
   end
 
   @tag :with_db_name
-  test "Bulk docs overriden quorum should return 201-Created", context do
+  test "Bulk docs overridden quorum should return 201-Created", context do
     db_name = context[:db_name]
     Couch.put("/#{db_name}")
     docs = create_docs(@doc_range)
@@ -125,7 +125,7 @@ defmodule WithoutQuorumTest do
   end
 
   @tag :with_db_name
-  test "Attachments should return 202-Acepted", context do
+  test "Attachments should return 202-Accepted", context do
     db_name = context[:db_name]
     Couch.put("/#{db_name}")
     resp = Couch.post("/#{context[:db_name]}", body: %{:_id => "0"})
@@ -139,7 +139,7 @@ defmodule WithoutQuorumTest do
         headers: ["Content-Type": "text/plain;charset=utf-8"]
       )
 
-    msg = "Should return 202-Acepted"
+    msg = "Should return 202-Accepted"
     assert resp.status_code == 202, msg
 
     rev = resp.body["rev"]
@@ -151,7 +151,7 @@ defmodule WithoutQuorumTest do
   end
 
   @tag :with_db_name
-  test "Attachments overriden quorum should return 201-Created", context do
+  test "Attachments overridden quorum should return 201-Created", context do
     db_name = context[:db_name]
     Couch.put("/#{db_name}")
     resp = Couch.post("/#{context[:db_name]}", body: %{:_id => "0"})
diff --git a/test/elixir/test/support/friend_docs.ex 
b/test/elixir/test/support/friend_docs.ex
index 289bc999d..0e36af806 100644
--- a/test/elixir/test/support/friend_docs.ex
+++ b/test/elixir/test/support/friend_docs.ex
@@ -276,7 +276,7 @@ defmodule FriendDocs do
     :ok
   end
 
-  defp add_view_indexes(db) do
+  defp add_view_indexes(_db) do
     # TODO: this function is not defined in the Python version of this module?
   end
 
diff --git a/test/elixir/test/support/limit_docs.ex 
b/test/elixir/test/support/limit_docs.ex
index 5a474f2dd..4ae9a4c3d 100644
--- a/test/elixir/test/support/limit_docs.ex
+++ b/test/elixir/test/support/limit_docs.ex
@@ -102,7 +102,7 @@ defmodule LimitDocs do
     :ok
   end
 
-  defp add_view_indexes(db) do
+  defp add_view_indexes(_db) do
     # TODO: this function is not defined in the Python version of this module?
   end
 
diff --git a/test/elixir/test/support/user_docs.ex 
b/test/elixir/test/support/user_docs.ex
index eb015cc64..52dbca4ae 100644
--- a/test/elixir/test/support/user_docs.ex
+++ b/test/elixir/test/support/user_docs.ex
@@ -217,7 +217,7 @@ defmodule UserDocs do
       "twitter" => nil,
       "favorites" => ["Lisp", "Erlang", "Python"],
       "exists_array" => ["should", "exist", "array1"],
-      "complex_field_value" => '+-()%{}[]^~&&*||"\\/? =>!',
+      "complex_field_value" => "+-()%{}[]^~&&*||\"\\/? =>!",
       "ordered" => true,
     },
     %{

Reply via email to