Created
October 28, 2014 23:13
-
-
Save johntron/f7071b153193c2eb3e55 to your computer and use it in GitHub Desktop.
Run a task from the CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/local/pythonenv/bin/python | |
from pyramid.paster import bootstrap | |
import json | |
from axon.testcases.config import ConfigFactory | |
from axon.tasks.reservations import create | |
bootstrap('/local/web/Axon/development.ini') | |
c = """ | |
""" | |
cc = json.loads(c) | |
factory = ConfigFactory() | |
ccc = factory.get_config(cc, 1) | |
res = create(ccc).apply() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment