Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1020 Weergaven

Hi guys,

I tried to test my module with an API using Postman, and it works. but, when I try to test it using a method (function) in my Python file, it got an error. 

Odoo.log:

2024-09-05 09:03:08,381 23484 INFO odoo_17 odoo.addons.estate.tests.test_API: Starting TestEstatePropertyTagAPI.test_get_data_by_id ...

2024-09-05 09:03:12,174 18620 INFO odoo_17 odoo.addons.base.models.res_users: Login successful for db:odoo_17 test_API.py", line 52, in test_get_data_by_id

    self.assertEqual(response.status_code, 200)

AssertionError: 400 != 200

...


see this complete my Python file. feel free to correct the code I was mistaken in:

https://photos.app.goo.gl/KbQXFrRwSY9LS4wJ8

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jan. 25
1452
1
sep. 23
2281
Postman Api Opgelost
2
nov. 22
8881
3
apr. 19
3213
5
mei 25
33759