branch: elpa/mastodon
commit 6aece0179616de3f496083fa7a05f79de30b474a
Author: marty hiatt <martianhia...@disroot.org>
Commit: marty hiatt <martianhia...@disroot.org>

    http-tests: use our response status fun
---
 test/mastodon-http-tests.el | 4 ++--
 test/mastodon-toot-tests.el | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/mastodon-http-tests.el b/test/mastodon-http-tests.el
index 4bef0eefe7..82497ba174 100644
--- a/test/mastodon-http-tests.el
+++ b/test/mastodon-http-tests.el
@@ -62,7 +62,7 @@ Strict-Transport-Security: max-age=31536000
   (let ((response-buffer
          (get-buffer-create "mastodon-http--triage-buffer")))
     (with-mock
-      (mock (url-http-parse-response) => 200)
+      (mock (mastodon-http--response-status response-buffer) => 200)
       (with-current-buffer response-buffer
         (erase-buffer)
         (insert mastodon-http--example-200))
@@ -78,7 +78,7 @@ Strict-Transport-Security: max-age=31536000
   (let ((response-buffer
          (get-buffer-create "mastodon-http--triage-buffer")))
     (with-mock
-      (mock (url-http-parse-response) => 444)
+      (mock (mastodon-http--response-status response-buffer) => 444)
       (with-current-buffer response-buffer
         (erase-buffer)
         (insert mastodon-http--example-400))
diff --git a/test/mastodon-toot-tests.el b/test/mastodon-toot-tests.el
index 7d5da284e6..2330d80a2a 100644
--- a/test/mastodon-toot-tests.el
+++ b/test/mastodon-toot-tests.el
@@ -209,7 +209,7 @@ mention string."
           (toot mastodon-toot-test-base-toot)
           (id 61208))
       (with-mock
-        (mock (url-http-parse-response) => 200)
+        (mock (mastodon-http--response-status pin-response) => 200)
         (mock (mastodon-tl--property 'base-item-id) => id)
         (mock (mastodon-http--api "statuses/61208/pin")
               => "https://example.space/statuses/61208/pin";)

Reply via email to