Compare commits

...
This repository has been archived on 2020-09-24. You can view files and clone it, but cannot push or open issues or pull requests.

2 Commits

Author SHA1 Message Date
Kocsis Richárd 90b09b55ea coverage
continuous-integration/drone/push Build is failing Details
2020-05-14 21:21:41 +02:00
Kovács Bence János d07eb28f58 test with curl
continuous-integration/drone/push Build is passing Details
2020-05-08 22:41:22 +02:00
2 changed files with 12 additions and 3 deletions

View File

@ -35,6 +35,15 @@ steps:
- pip3 install --cache-dir='./.pipcache' -r requirements.txt
- pytest test.py
- name: coverage
image: python:3.8
environment:
PRODUCER_REDIS: cache
commands:
- pip3 install --cache-dir='./.pipcache' -r requirements.txt
- pip3 install --cache-dir='./.pipcache' coverage pytest
- coverage run -m pytest test.py
- coverage report -m
- name: rebuild-cache-with-filesystem
image: meltwater/drone-cache

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
curl --header "Content-Type: application/json" \
--request POST \
--data '{"uuid":"c959ad81-58f9-4445-aab4-8f3d68aee1ad", "ip":"127.1.2.3"}' \
http://localhost:5000/ip
--request POST \
--data '{"uuid":"c959ad81-58f9-4445-aab4-8f3d68aee1ad", "ip":"127.1.2.3"}' \
http://localhost:5000/ip