Create/update project on compute when variables changes

This commit is contained in:
ziajka committed 2018-05-09 15:29:35 +02:00
1 parent 83445214be
commit 7b3d5ae5e3
9 files changed
+98 -11

No files matched your search

+7
View File
@@ -205,3 +205,10 @@ def test_emit(async_run):
(action, event, context) = async_run(queue.get(0.5))
assert action == "test"
assert context["project_id"] == project.id
def test_update_project(loop):
variables = [{"name": "TEST", "value": "VAL"}]
project = Project(project_id=str(uuid.uuid4()))
loop.run_until_complete(asyncio.async(project.update(variables=variables)))
assert project.variables == variables