~tristan957/harvest-almanac

ref: b19b4d60a13ba5a22d70f179a44f59cf0f5a1cdb harvest-almanac/harvest-glib/tests/user.c -rw-r--r-- 437 bytes
b19b4d60Tristan Partin licensing: Add top level license file to redirect to subproject licenses 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <glib.h>
#include <libsoup/soup.h>

#include "harvest-glib/harvest.h"
#include "init.h"

static HarvestApiClient *CLIENT;

static void
test_harvest_get_me(void)
{
	HarvestResponse *res = harvest_user_get_me(CLIENT);

	g_assert_null(res->err);
}

int
main(int argc, char **argv)
{
	g_test_init(&argc, &argv, NULL);

	CLIENT = initialize_environment();

	g_test_add_func("/user/me", test_harvest_get_me);

	return g_test_run();
}