Fixed tests for (un)muting statuses.
This commit is contained in:
parent
667150d18a
commit
d9a1872d1e
|
@ -25,7 +25,7 @@
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
||||||
SCENARIO ("/api/v1/statuses/:id/mute can be called successfully",
|
SCENARIO ("/api/v1/statuses/:id/mute can be called successfully",
|
||||||
"[api][auth][mastodon][glitch-soc]")
|
"[api][auth][mastodon][pleroma][glitch-soc]")
|
||||||
{
|
{
|
||||||
REQUIRE (access_token != nullptr);
|
REQUIRE (access_token != nullptr);
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ SCENARIO ("/api/v1/statuses/:id/mute can be called successfully",
|
||||||
{
|
{
|
||||||
ret = masto.post(API::v1::statuses_id_mute,
|
ret = masto.post(API::v1::statuses_id_mute,
|
||||||
{
|
{
|
||||||
{ "id", { user_id } }
|
{ "id", { status_id } }
|
||||||
});
|
});
|
||||||
status.from_string(ret);
|
status.from_string(ret);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
||||||
SCENARIO ("/api/v1/statuses/:id/unmute can be called successfully",
|
SCENARIO ("/api/v1/statuses/:id/unmute can be called successfully",
|
||||||
"[api][auth][mastodon][glitch-soc]")
|
"[api][auth][mastodon][pleroma][glitch-soc]")
|
||||||
{
|
{
|
||||||
REQUIRE (access_token != nullptr);
|
REQUIRE (access_token != nullptr);
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ SCENARIO ("/api/v1/statuses/:id/unmute can be called successfully",
|
||||||
{
|
{
|
||||||
ret = masto.post(API::v1::statuses_id_unmute,
|
ret = masto.post(API::v1::statuses_id_unmute,
|
||||||
{
|
{
|
||||||
{ "id", { user_id } }
|
{ "id", { status_id } }
|
||||||
});
|
});
|
||||||
status.from_string(ret);
|
status.from_string(ret);
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue