def test_get_feed_long(login, password, count): agent = AgentAccount(login, password) data, pointer = agent.feed(count=count) assert (count >= len(data)) Account.clear_cache()
def test_get_feed_pointer(login, password, count): agent = AgentAccount(login, password) pointer = None data = [] for i in range(count): tmp, pointer = agent.feed(pointer=pointer) data.extend(tmp) Account.clear_cache() Media.clear_cache()