diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9027745 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +dist: xenial +language: python +python: +- '3.5' +- '3.6' +- '3.7' +install: +- pip install -r requirements.txt +script: python -m unittest +deploy: + provider: pypi + user: porovozls + password: + secure: qaDiANDKVnMRYdp0tXFzqIuZhAWpU5Ae1ksSKlSfrValDgJfHrbRBp8XNlPaT2PZ++GcdP13gIA3jeSu2+YY8Riu1qDgk23Rlx6kaoevIAHHKHKf5Ffu45w9+tDYG3Ujol/RzdEUEFxd9wi9d/rfv/us8jiBGUS+OBADIWW63y/EtY/D13OEkcfhu4OsVAzyM/Wh8hOQB+IhHDgYGEBpSAFG8GKYWShv03velE4rXTDFKETo2W/H1FqIpdn7k01lSggR+ghM6rPMz2NlZFjbPFs8l6CAPlAbLZId6yXLly543SrD0M/6yPO7I9YDzHeHBL+JV8TCZF/QAm5PA55q5GPFaKjdgW2uZcwdwDDfk1dm5OejP8VzmM/IIFYDH4PQlr9cYQB85ZaIq3+2mQMoIGgl/ffLHWGkAF7C4Ljd8qdWSJ9PEZMrJre5+3Q+A1vXBYuBNhHRBxpCD3XNygruwtR1IkVqZ+8ihCeVODWCKPpVa66Qr8pLyFCd8Xxt72RFNj0xvwQKehLK9zRcuu3/ybAW+MpeY6h4lenmAaYe9nmAjEEzTh0YpXZun+ZStFzUrfXcViaNz9Hpm2V3i72W/iHHVb87jxpSGgA3lljD8ayfpXd3JJb7sWiXsDYcxFCc7hg50cjCZrGOmpxzYuVTHGXxkjES+N18Xrrcm1ZOz04= + on: + repo: parikls/mem_usage_ui + python: '3.7' + tags: true + skip_cleanup: true + skip_existing: true + distributions: sdist diff --git a/README.md b/README.md index 74447fc..3cdcf58 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +mem-usage-ui +============ + +[![Build Status](https://travis-ci.org/parikls/mem_usage_ui.svg?branch=master)](https://travis-ci.org/parikls/mem_usage_ui) +[![PyPI version](https://badge.fury.io/py/mem-usage-ui.svg)](https://badge.fury.io/py/mem-usage-ui) + Disclaimer ========== diff --git a/mem_usage_ui/tests/test_views.py b/mem_usage_ui/tests/test_views.py index 1c7abeb..23c7038 100644 --- a/mem_usage_ui/tests/test_views.py +++ b/mem_usage_ui/tests/test_views.py @@ -3,7 +3,7 @@ from aiohttp.test_utils import AioHTTPTestCase, unittest_run_loop from mem_usage_ui.__main__ import init_app -from mem_usage_ui.snapshot import SUBSCRIBE +from mem_usage_ui.snapshot import SnapshotProcessor class RoutesTestCase(AioHTTPTestCase): @@ -50,7 +50,7 @@ async def test_websocket_subscribe_invalid_process(self): } async with self.client.ws_connect('/ws') as ws: - await ws.send_json({"type": SUBSCRIBE, "pid": -1}) + await ws.send_json({"type": SnapshotProcessor.MESSAGE_SUBSCRIBE, "pid": -1}) async for msg in ws: response = json.loads(msg.data) self.assertDictEqual(expected_response, response)