diff options
Diffstat (limited to 'tests/test-planner.cpp')
-rw-r--r-- | tests/test-planner.cpp | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/tests/test-planner.cpp b/tests/test-planner.cpp index b476ee8..8f1590c 100644 --- a/tests/test-planner.cpp +++ b/tests/test-planner.cpp @@ -18,19 +18,18 @@ */ #include "glib-fixture.h" +#include "timezone-mock.h" #include <datetime/appointment.h> #include <datetime/clock-mock.h> #include <datetime/date-time.h> #include <datetime/planner.h> -#include <datetime/planner-eds.h> +#include <datetime/planner-range.h> #include <langinfo.h> #include <locale.h> -using unity::indicator::datetime::Appointment; -using unity::indicator::datetime::DateTime; -using unity::indicator::datetime::PlannerEds; +using namespace unity::indicator::datetime; /*** **** @@ -38,22 +37,6 @@ using unity::indicator::datetime::PlannerEds; typedef GlibFixture PlannerFixture; -TEST_F(PlannerFixture, EDS) -{ - PlannerEds planner; - wait_msec(100); - - auto now = g_date_time_new_now_local(); - planner.time.set(DateTime(now)); - wait_msec(2500); - - std::vector<Appointment> this_month = planner.this_month.get(); - std::cerr << this_month.size() << " appointments this month" << std::endl; - for(const auto& a : this_month) - std::cerr << a.summary << std::endl; -} - - TEST_F(PlannerFixture, HelloWorld) { auto halloween = g_date_time_new_local(2020, 10, 31, 18, 30, 59); |