https://github.com/mfurquimdev/ml-testing
https://github.com/mfurquimdev/ml-testing
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mfurquimdev/ml-testing
- Owner: mfurquimdev
- Created: 2023-11-25T14:33:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-04T12:17:09.000Z (over 2 years ago)
- Last Synced: 2025-03-03T01:18:18.403Z (over 1 year ago)
- Language: Python
- Size: 85 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testdome
## Using Typer CLI
Make requests with `sample request` command.
Take a look at `sample run_me` command at [src/cli/sample/main.py](src/cli/sample/main.py) for more useful Typer features.
```bash
pdm cli sample --verbose run_me Larissa --lie --network simplE --location src/cli/sample/main.py -e
pdm cli sample request
pdm cli request tracks
```
## Make request on server
The `http` command from [httpie](https://github.com/httpie/cli) is an optional but useful tool for testing.
These GET requests are equivalent:
```bash
curl --request GET "http://localhost:44681/sample/1?name=asd"
http GET :44681/sample/1 name=='asd'
```
As are these POST requests:
```bash
curl --request POST \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"num": 2, "name": "lkj"}' \
"http://localhost:44681/train?name=asd&num=1"
http --json POST :44681/train num==1 name=='asd' num:=2 name="lkj"
```