Moved API tests to tests/api.
This commit is contained in:
parent
761246c03b
commit
e8eab3b947
|
@ -1,5 +1,5 @@
|
||||||
include(CTest)
|
include(CTest)
|
||||||
file(GLOB sources_tests tests/test_*.cpp)
|
file(GLOB sources_tests tests/test_*.cpp tests/*/test_*.cpp)
|
||||||
|
|
||||||
find_package(Catch2)
|
find_package(Catch2)
|
||||||
if(Catch2_FOUND) # Catch 2.x
|
if(Catch2_FOUND) # Catch 2.x
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/token.hpp"
|
#include "easy/entities/token.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/account.hpp"
|
#include "easy/entities/account.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/relationship.hpp"
|
#include "easy/entities/relationship.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/relationship.hpp"
|
#include "easy/entities/relationship.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/account.hpp"
|
#include "easy/entities/account.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/account.hpp"
|
#include "easy/entities/account.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <catch.hpp>
|
#include <catch.hpp>
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/relationship.hpp"
|
#include "easy/entities/relationship.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/status.hpp"
|
#include "easy/entities/status.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/relationship.hpp"
|
#include "easy/entities/relationship.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/relationship.hpp"
|
#include "easy/entities/relationship.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/relationship.hpp"
|
#include "easy/entities/relationship.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/relationship.hpp"
|
#include "easy/entities/relationship.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/account.hpp"
|
#include "easy/entities/account.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/account.hpp"
|
#include "easy/entities/account.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/account.hpp"
|
#include "easy/entities/account.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/application.hpp"
|
#include "easy/entities/application.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/application.hpp"
|
#include "easy/entities/application.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/account.hpp"
|
#include "easy/entities/account.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/emoji.hpp"
|
#include "easy/entities/emoji.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <catch.hpp>
|
#include <catch.hpp>
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/account.hpp"
|
#include "easy/entities/account.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/status.hpp"
|
#include "easy/entities/status.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/filter.hpp"
|
#include "easy/entities/filter.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/filter.hpp"
|
#include "easy/entities/filter.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <catch.hpp>
|
#include <catch.hpp>
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <catch.hpp>
|
#include <catch.hpp>
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <catch.hpp>
|
#include <catch.hpp>
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/instance.hpp"
|
#include "easy/entities/instance.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/list.hpp"
|
#include "easy/entities/list.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/list.hpp"
|
#include "easy/entities/list.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/account.hpp"
|
#include "easy/entities/account.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/attachment.hpp"
|
#include "easy/entities/attachment.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/attachment.hpp"
|
#include "easy/entities/attachment.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/status.hpp"
|
#include "easy/entities/status.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/status.hpp"
|
#include "easy/entities/status.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "easy/entities/account.hpp"
|
#include "easy/entities/account.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <catch.hpp>
|
#include <catch.hpp>
|
||||||
#include "mastodon-cpp.hpp"
|
#include "mastodon-cpp.hpp"
|
||||||
#include "easy/easy.hpp"
|
#include "easy/easy.hpp"
|
||||||
#include "environment_variables.hpp"
|
#include "../environment_variables.hpp"
|
||||||
|
|
||||||
using namespace Mastodon;
|
using namespace Mastodon;
|
||||||
|
|
Reference in New Issue
Block a user