Download tools/morest/test/sequence_generation.py from minhhungg/AutoRestTest-TrackA: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/datasets/minhhungg/AutoRestTest-TrackA/resolve/main/tools/morest/test/sequence_generation.py
- Command line
-
hf download hf://datasets/minhhungg/AutoRestTest-TrackA/tools/morest/test/sequence_generation.py
-
curl -L -o sequence_generation.py https://huggingface.co/datasets/minhhungg/AutoRestTest-TrackA/resolve/main/tools/morest/test/sequence_generation.py
536 Bytes
| import os | |
| from prance import ResolvingParser | |
| from build_graph import parse | |
| from fuzzer.fuzzer import APIFuzzer | |
| def default_reclimit_handler(limit, parsed_url, recursions=()): | |
| """Raise prance.util.url.ResolutionError.""" | |
| return { | |
| "type": "string", | |
| "name": "Recursive Dependency" | |
| } | |
| def main(): | |
| parser = ResolvingParser('../pet.json')#,backend = 'openapi-spec-validator') | |
| apis, odg = parse(parser.specification) | |
| odg.generate_sequence() | |
| # odg.draw() | |
| if __name__ == '__main__': | |
| main() | |