Exemplo n.º 1
0
    def test_update_master_not_search_category(self):
        cat_i = 0
        test_master = {"test_subreddit": []}
        search_for = 10
        sub = "test_subreddit"

        Basic.GetInput()._update_master(cat_i, test_master, search_for, sub)

        assert test_master == {"test_subreddit": [[0, 10]]}
Exemplo n.º 2
0
    def test_update_master_search_category(self):
        cat_i = 5
        test_master = {"test_subreddit": []}
        search_for = "test string"
        sub = "test_subreddit"

        Basic.GetInput()._update_master(cat_i, test_master, search_for, sub)

        assert test_master == {"test_subreddit": [[5, "test string"]]}
Exemplo n.º 3
0
 def test_get_input_init_method_categories_instance_variable(self):
     assert Basic.GetInput()._categories == Global.categories