Compare commits

...

2 Commits

Author SHA1 Message Date
ricsik52 90b09b55ea coverage
continuous-integration/drone/push Build is failing
2020-05-14 21:21:41 +02:00
kovacs.bence.janos d07eb28f58 test with curl
continuous-integration/drone/push Build is passing
2020-05-08 22:41:22 +02:00
2 changed files with 12 additions and 3 deletions
+9
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
+3 -3
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