Tags recieved are different

  1. Describe the issue briefly
    The tags are diffrerent

  2. How much time have you spent debugging this issue?
    (Please spend at least 15 minutes to resolve the issue on your own before posting a new topic here)
    30 mins

  3. What is your hypothesis?

resp = client.post(r’/qeats/v1/tags’, data=json.dumps(body), content_type=‘application/json’)
assert resp.status_code == 200
actual_tag_suggesstion_received = json.loads(resp.content)
expected_tag_suggestion = [‘rice’, ‘meat’, ‘vegetable’, ‘paella’, ‘chicken’, ‘pilaf’, ‘pepper’, ‘saffron’, ‘pork’, ‘fried rice’, ‘curry’, ‘shrimp’, ‘risotto’, ‘seafood’, ‘sauce’, ‘onion’, ‘chili’, ‘chicken curry’, ‘prawn’, ‘cereal’]

    print(actual_tag_suggesstion_received)
    assert type(actual_tag_suggesstion_received) == type([])
  assert expected_tag_suggestion[0:3] == actual_tag_suggesstion_received[0:3]

E AssertionError: assert [‘rice’, ‘meat’, ‘vegetable’] == [‘chocolate’,…eam’, ‘sweet’]
E At index 0 diff: ‘rice’ != ‘chocolate’
E Use -v to get the full diff

tests/test_views.py:157: AssertionError
----------------------------- Captured stdout call -----------------------------
{‘errors’: [{‘id’: ‘’, ‘code’: ‘429’, ‘status’: ‘Too Many Requests’, ‘detail’: ‘Too Many Requests’}]}
[‘chocolate’, ‘cream’, ‘sweet’, ‘milk’, ‘chocolate ice cream’, ‘goody’, ‘coffee’, ‘dairy product’, ‘caramel’, ‘ice’, ‘candy’, ‘relish’, ‘fudge’, ‘sorbet’, ‘chocolate cookie’, ‘wafer’, ‘sundae’, ‘ice cream’, ‘brownie’, ‘syrup’]

The stdout has printed the list.
Postman is working

Hi @RuchVad
Looks like you are facing challenges in the current module.

Below is a link to all the FAQ’s for the current module

Below are a few similar topics raised by other users which you might find usefull

Note - This is a BETA Feature,if you find this helpful, kindly let us know.
Feedback link - https://forms.gle/cmxN5pdTXgnwgC986

Kindly mark this as a solution if this has helped you solve your query

Looks like you have completed module 3, nice work on finishing this ME

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.