Print what() in tests if an exception is thrown.
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
5b387a1c7b
commit
fa3eefdb74
|
@ -55,6 +55,7 @@ SCENARIO ("/api/v1/accounts/:id can be called successfully",
|
|||
catch (const std::exception &e)
|
||||
{
|
||||
exception = true;
|
||||
WARN(e.what());
|
||||
}
|
||||
THEN("No exception is thrown")
|
||||
{
|
||||
|
@ -88,6 +89,7 @@ SCENARIO ("/api/v1/accounts/:id can be called successfully",
|
|||
catch (const std::exception &e)
|
||||
{
|
||||
exception = true;
|
||||
WARN(e.what());
|
||||
}
|
||||
THEN("No exception is thrown")
|
||||
{
|
||||
|
|
|
@ -67,6 +67,7 @@ SCENARIO ("/api/v1/accounts/:id/followers can be called successfully",
|
|||
catch (const std::exception &e)
|
||||
{
|
||||
exception = true;
|
||||
WARN(e.what());
|
||||
}
|
||||
THEN("No exception is thrown")
|
||||
{
|
||||
|
|
|
@ -51,7 +51,7 @@ SCENARIO ("/api/v1/accounts/:id/following can be called successfully",
|
|||
{
|
||||
try
|
||||
{
|
||||
ret = masto.get(API::v1::accounts_id_followers,
|
||||
ret = masto.get(API::v1::accounts_id_following,
|
||||
{
|
||||
{ "id", { user_id } },
|
||||
{ "limit", { "5" } }
|
||||
|
@ -67,6 +67,7 @@ SCENARIO ("/api/v1/accounts/:id/following can be called successfully",
|
|||
catch (const std::exception &e)
|
||||
{
|
||||
exception = true;
|
||||
WARN(e.what());
|
||||
}
|
||||
THEN("No exception is thrown")
|
||||
{
|
||||
|
@ -93,7 +94,7 @@ SCENARIO ("/api/v1/accounts/:id/following can be called successfully",
|
|||
{
|
||||
try
|
||||
{
|
||||
ret = masto.get(API::v1::accounts_id_followers,
|
||||
ret = masto.get(API::v1::accounts_id_following,
|
||||
{
|
||||
{ "id", { user_id } },
|
||||
{ "limit", { "5" } }
|
||||
|
|
|
@ -55,6 +55,7 @@ SCENARIO ("/api/v1/accounts/update_credentials can be called successfully",
|
|||
catch (const std::exception &e)
|
||||
{
|
||||
exception = true;
|
||||
WARN(e.what());
|
||||
}
|
||||
THEN("No exception is thrown")
|
||||
{
|
||||
|
@ -88,6 +89,7 @@ SCENARIO ("/api/v1/accounts/update_credentials can be called successfully",
|
|||
catch (const std::exception &e)
|
||||
{
|
||||
exception = true;
|
||||
WARN(e.what());
|
||||
}
|
||||
THEN("No exception is thrown")
|
||||
{
|
||||
|
|
|
@ -53,6 +53,7 @@ SCENARIO ("/api/v1/accounts/verify_credentials can be called successfully",
|
|||
catch (const std::exception &e)
|
||||
{
|
||||
exception = true;
|
||||
WARN(e.what());
|
||||
}
|
||||
THEN("No exception is thrown")
|
||||
{
|
||||
|
@ -85,6 +86,7 @@ SCENARIO ("/api/v1/accounts/verify_credentials can be called successfully",
|
|||
catch (const std::exception &e)
|
||||
{
|
||||
exception = true;
|
||||
WARN(e.what());
|
||||
}
|
||||
THEN("No exception is thrown")
|
||||
{
|
||||
|
|
|
@ -50,6 +50,7 @@ SCENARIO ("/api/v1/instance can be called successfully",
|
|||
catch (const std::exception &e)
|
||||
{
|
||||
exception = true;
|
||||
WARN(e.what());
|
||||
}
|
||||
THEN("No exception is thrown")
|
||||
{
|
||||
|
@ -82,6 +83,7 @@ SCENARIO ("/api/v1/instance can be called successfully",
|
|||
catch (const std::exception &e)
|
||||
{
|
||||
exception = true;
|
||||
WARN(e.what());
|
||||
}
|
||||
THEN("No exception is thrown")
|
||||
{
|
||||
|
|
Reference in New Issue