about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-12-25 00:02:18 +0000
committerJames Booth <boothj5@gmail.com>2014-12-25 00:02:18 +0000
commitc47b4261f3e36b10557409c167db5f827ba972be (patch)
tree2cbd966a3ca36483697490bf00b5ec2442e5a594 /tests
parenta871ad800464070f9658439be284364c48b3dbd8 (diff)
downloadprofani-tty-c47b4261f3e36b10557409c167db5f827ba972be.tar.gz
Added cmd_statuses tests
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmd_statuses.c15
-rw-r--r--tests/testsuite.c3
2 files changed, 3 insertions, 15 deletions
diff --git a/tests/test_cmd_statuses.c b/tests/test_cmd_statuses.c
index f15dd820..ed37021a 100644
--- a/tests/test_cmd_statuses.c
+++ b/tests/test_cmd_statuses.c
@@ -9,13 +9,12 @@
 #include "config/preferences.h"
 
 #include "ui/ui.h"
-#include "ui/mock_ui.h"
+#include "ui/stub_ui.h"
 
 #include "command/commands.h"
 
 void cmd_statuses_shows_usage_when_bad_subcmd(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     help->usage = "some usage";
     gchar *args[] = { "badcmd", NULL };
@@ -30,7 +29,6 @@ void cmd_statuses_shows_usage_when_bad_subcmd(void **state)
 
 void cmd_statuses_shows_usage_when_bad_console_setting(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     help->usage = "some usage";
     gchar *args[] = { "console", "badsetting", NULL };
@@ -45,7 +43,6 @@ void cmd_statuses_shows_usage_when_bad_console_setting(void **state)
 
 void cmd_statuses_shows_usage_when_bad_chat_setting(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     help->usage = "some usage";
     gchar *args[] = { "chat", "badsetting", NULL };
@@ -60,7 +57,6 @@ void cmd_statuses_shows_usage_when_bad_chat_setting(void **state)
 
 void cmd_statuses_shows_usage_when_bad_muc_setting(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     help->usage = "some usage";
     gchar *args[] = { "muc", "badsetting", NULL };
@@ -75,7 +71,6 @@ void cmd_statuses_shows_usage_when_bad_muc_setting(void **state)
 
 void cmd_statuses_console_sets_all(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     gchar *args[] = { "console", "all", NULL };
 
@@ -93,7 +88,6 @@ void cmd_statuses_console_sets_all(void **state)
 
 void cmd_statuses_console_sets_online(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     gchar *args[] = { "console", "online", NULL };
 
@@ -111,7 +105,6 @@ void cmd_statuses_console_sets_online(void **state)
 
 void cmd_statuses_console_sets_none(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     gchar *args[] = { "console", "none", NULL };
 
@@ -129,7 +122,6 @@ void cmd_statuses_console_sets_none(void **state)
 
 void cmd_statuses_chat_sets_all(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     gchar *args[] = { "chat", "all", NULL };
 
@@ -147,7 +139,6 @@ void cmd_statuses_chat_sets_all(void **state)
 
 void cmd_statuses_chat_sets_online(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     gchar *args[] = { "chat", "online", NULL };
 
@@ -165,7 +156,6 @@ void cmd_statuses_chat_sets_online(void **state)
 
 void cmd_statuses_chat_sets_none(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     gchar *args[] = { "chat", "none", NULL };
 
@@ -183,7 +173,6 @@ void cmd_statuses_chat_sets_none(void **state)
 
 void cmd_statuses_muc_sets_all(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     gchar *args[] = { "muc", "all", NULL };
 
@@ -201,7 +190,6 @@ void cmd_statuses_muc_sets_all(void **state)
 
 void cmd_statuses_muc_sets_online(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     gchar *args[] = { "muc", "online", NULL };
 
@@ -219,7 +207,6 @@ void cmd_statuses_muc_sets_online(void **state)
 
 void cmd_statuses_muc_sets_none(void **state)
 {
-    mock_cons_show();
     CommandHelp *help = malloc(sizeof(CommandHelp));
     gchar *args[] = { "muc", "none", NULL };
 
diff --git a/tests/testsuite.c b/tests/testsuite.c
index 981d48bb..278a6c93 100644
--- a/tests/testsuite.c
+++ b/tests/testsuite.c
@@ -320,6 +320,7 @@ int main(int argc, char* argv[]) {
         unit_test(contact_available_when_highest_priority_online),
         unit_test(contact_available_when_highest_priority_chat),
 
+*/
         unit_test(cmd_statuses_shows_usage_when_bad_subcmd),
         unit_test(cmd_statuses_shows_usage_when_bad_console_setting),
         unit_test(cmd_statuses_shows_usage_when_bad_chat_setting),
@@ -351,7 +352,7 @@ int main(int argc, char* argv[]) {
         unit_test_setup_teardown(cmd_statuses_muc_sets_none,
             load_preferences,
             close_preferences),
-
+/*
         unit_test_setup_teardown(statuses_console_defaults_to_all,
             load_preferences,
             close_preferences),