Prince Roshan

Results 36 comments of Prince Roshan

No, I am talking about this point, https://github.com/Agent-Hellboy/pyytdata/blob/master/pyytdata/util/querier.py#L35 here you should do all the operations of saving the whole response https://github.com/Agent-Hellboy/pyytdata/blob/master/pyytdata/util/querier.py#L46 in a JSON file if the result is not...

> if I store req in JSON then it will be just that request not the response?? No, you will store both request and response, request as a key in...

>Hey, I am new to this testing field, can you elaborate a little . I can work on this if you permit. you should check the file inside tests, As...

>yes , I got to the source file . So the API responses are the get_links(), get_description() , and others. Am I right? Yes `get_links(), get_description()` these are the APIs...

>not sure bout the body of the function and on what basis I can validate. In the article , they had a list to validate upon. (Sorry for all this...

``` class TestPyYtData(unittest.TestCase): def test_check_env(self): self.assertTrue(os.environ.get("API_KEY") != None) def setUp(self): self.data = PyYtData("flask", 1) self.rslt = self.data.get_videoinfo() def test_get_videoinfo(self): self.assertTrue(len(self.rslt) == 1) ``` Here you can see we are querying...