Commit 0f6c62c1 authored by Roland Koller's avatar Roland Koller
Browse files

Prepare for package 0.0.1

parent 08643b6f
......@@ -7,3 +7,12 @@ Helper modules for the `ecmind_blue_client` to ease the work with workflows, mod
`pip install ecmind_blue_client_workflow`
## Usage
```python
from ecmind_blue_client.tcp_client import TcpClient as Client
from ecmind_blue_client_workflow import workflow
client = Client(hostname='localhost', port=4000, appname='test', username='root', password='optimal')
print(workflow.get_organisations(client, only_active=True))
```
\ No newline at end of file
from ecmind_blue_client_workflow import *
\ No newline at end of file
......@@ -5,7 +5,7 @@ with open('README.md', 'r') as fh:
setuptools.setup(
name='ecmind_blue_client_workflow',
version='0.0.3',
version='0.0.1',
author='Roland Koller',
author_email='info@ecmind.ch',
description='Helper modules for the `ecmind_blue_client` to ease the work with workflows, models and organisations.',
......
import unittest
from ecmind_blue_client.tcp_client import TcpClient as Client
from ecmind_blue_client_workflow import ecmind_blue_client_workflow as wf
from workflow import workflow
class TestMethods(unittest.TestCase):
client = Client(hostname='enaio-rk-2021', port=4000, appname='unittest', username='root', password='optimal')
def test_get_active_organisations(self):
orgs = wf.get_organisations(self.client, only_active=True)
orgs = workflow.get_organisations(self.client, only_active=True)
self.assertTrue('Organisation' in orgs.values())
if __name__ == '__main__':
unittest.main()
unittest.main()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment