Skip to content
Snippets Groups Projects
Commit 37a42a6e authored by Nathaniel Kofalt's avatar Nathaniel Kofalt Committed by Ryan Sanford
Browse files

Add example test case in python

parent 6640b8de
No related branches found
No related tags found
No related merge requests found
import json
import logging
log = logging.getLogger(__name__)
sh = logging.StreamHandler()
log.addHandler(sh)
def test_gear_add(as_admin):
r = as_admin.post('/gears/test-case-gear', json={
"category" : "converter",
"gear" : {
"inputs" : {
"wat" : {
"base" : "file",
"type" : {
"enum" : [
"wat"
]
}
}
},
"maintainer" : "Example",
"description" : "Example",
"license" : "BSD-2-Clause",
"author" : "Example",
"url" : "https://example.example",
"label" : "wat",
"flywheel" : "0",
"source" : "https://example.example",
"version" : "0.0.1",
"config" : {},
"name" : "test-case-gear"
},
"exchange" : {
"git-commit" : "aex",
"rootfs-hash" : "sha384:oy",
"rootfs-url" : "https://example.example"
}
})
assert r.ok
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment