def get_test_page(): config = tb.get_config("config-test.json") limit = 1 offset = 1 return tb.get_posts(config["url"], config["api_key"], limit, offset)
def test_get_config(self): config = tb.get_config("config-dist.json") self.assertEqual("my.tumblr.com", config["url"]) self.assertEqual("myApiKey", config["api_key"]) self.assertEqual("format", config["strip_metadata"][0])