2019-04-14 04:16:26 +02:00
|
|
|
/* This file is part of mastodon-cpp.
|
|
|
|
* Copyright © 2019 tastytea <tastytea@tastytea.de>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, version 3.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define CATCH_CONFIG_MAIN
|
2019-04-16 03:55:28 +02:00
|
|
|
|
|
|
|
#include <cstdlib>
|
2019-04-14 04:16:26 +02:00
|
|
|
#include <catch.hpp>
|
2019-04-16 03:55:28 +02:00
|
|
|
#include "environment_variables.hpp"
|
|
|
|
|
|
|
|
using std::string;
|
|
|
|
using std::getenv;
|
2019-04-14 04:16:26 +02:00
|
|
|
|
2019-04-16 03:55:28 +02:00
|
|
|
// Declared in environment_variables.hpp
|
|
|
|
const char *env_instance = getenv("MASTODON_CPP_INSTANCE");
|
|
|
|
const string instance = (env_instance ? env_instance : "likeable.space");
|
|
|
|
const char *access_token = getenv("MASTODON_CPP_ACCESS_TOKEN");
|
|
|
|
const char *env_user_id = getenv("MASTODON_CPP_USER_ID");
|
|
|
|
const string user_id = (env_user_id ? env_user_id : "9hnrrVPriLiLVAhfVo");
|
2019-04-19 01:58:57 +02:00
|
|
|
const char *env_status_id = getenv("MASTODON_CPP_STATUS_ID");
|
|
|
|
const string status_id = (env_status_id ? env_status_id : "9hwnuJMq3eTdO4s1PU");
|
2019-04-19 05:35:43 +02:00
|
|
|
const char *env_filter_id = getenv("MASTODON_CPP_FILTER_ID");
|
|
|
|
const string filter_id = (env_filter_id ? env_filter_id : "");
|
2019-04-25 15:39:50 +02:00
|
|
|
const char *env_list_id = getenv("MASTODON_CPP_LIST_ID");
|
2019-04-25 17:25:39 +02:00
|
|
|
const string list_id = (env_list_id ? env_list_id : "2");
|
2019-04-27 22:33:01 +02:00
|
|
|
const char *env_media_id = getenv("MASTODON_CPP_MEDIA_ID");
|
|
|
|
const string media_id = (env_media_id ? env_media_id : "2127742613");
|