Created
December 3, 2018 21:25
-
-
Save mikezucc/9df81635672ed7117f3728880a0e5cad to your computer and use it in GitHub Desktop.
Submit assert information to node back end, executed async via Popen
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
# import site | |
# sitepackagessite = site.getsitepackages()[0] | |
# if sitepackagessite not in sys.path: | |
# sys.path[0:0] = ['/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages'] | |
# print sys.path | |
from os.path import expanduser | |
import sys | |
import requests | |
import json | |
home = expanduser("~") | |
with open(home + '/assertion_results', 'r') as results_file: | |
json_string = results_file.read() | |
json_obj = json.loads(json_string) | |
data = {"callstack":json_obj} | |
r = requests.post('http://localhost:3003/assert', json=data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment