Skip to content

API tests not working for django based backend #700

@filippomc

Description

@filippomc
Traceback (most recent call last):                                                                                                             
  File "/usr/local/lib/python3.9/site-packages/schemathesis/cli/__init__.py", line 1060, in load_hook                                          
    __import__(module_name)                                                                                                                    
  File "/tools/cloudharness-test/cloudharness_test/apitest_init.py", line 17, in <module>                                                      
    raise Exception(f"Cannot setup api tests: {openapi_uri} not reachable. Check your deployment is up and configuration") from e              
Exception: Cannot setup api tests: https://.../api/openapi.json not reachable. Check your deployment is up and configu
ration  

The reason is for Django-based applications the openapi.json file is in the root

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions